Skip to main content
Cortina Prepaid uses the Authorization command to notify about the result of a card tap to initiate the authorization process with the Cortina payment provider. This command is essential for proceeding to transaction confirmation or rejection handling.

Request

Nayax’s servers send a POST request to your configured Authorization endpoint, which would be of the following format: (customer's URL)/Cortina/PrePaid/Authorization The payload includes the full result of the card scan operation:

Request Parameters

The following table describes the parameters included in the request body:
FieldTypeDescription
TransactionIdString(36)The unique identifier for this transaction.
  • If /StartSession was used, this echoes the ID encrypted in ‘TranIDCipher’.
  • If /StartSession was not used, the Nayax Engine generates this value.
NayaxTransactionIdInt(64)The Nayax internal unique identifier for the transaction. This ID is echoed in further related requests.
AmountDoubleThe payment amount (Decimal with max 3 digits for cents).
  • Example: 1 cent = 0.01, 20 cents = 0.20.
  • Note: Currencies with no decimal places (e.g., JYN) are still represented as a double, e.g., 234 JYN = 234.0.
CurrencyCodeString(3)The currency represented by its ISO 4217 Alpha-3 code (e.g., USD, EUR).
CurrencyNumericString(3)The currency represented by its ISO 4217 Numeric-3 code (e.g., 840 for USD).
SiteIdInt(16)The identifier for the Nayax server region hosting the transaction.
MachineAuTimeStringThe Machine Authorization Timestamp.
TimeoutMSInt(32)The Nayax Server Timeout configuration, specified in milliseconds.
IsProductSelectedBoolIndication of whether the product was pre-selected before the payment process began.
PaymentMethodIDInt(32)The Nayax identifier for the specific payment provider used.
BillingProviderIdInt(32)The Nayax identifier for the associated billing provider.
AuditNumberInt(64)Field reserved for Nayax internal use only.
NayaxRRNStringA Reference Number used as an External Transaction Identification for external parties.
  • Recommendation: This ID should be visible to the end consumer and their bank/service provider.
  • This value must be repeated in the subsequent /Inquiry request.
IsDeferredAuthorizationBoolBoolean indicator. Further information is unavailable.
AgeLimitationInt(16)The minimum age required to permit the transaction.
IsSoftDeclineCompletionBoolBoolean indicator. Further information is unavailable.
TransitTransactionTypeInt(32)The transaction type for transit payments (Enum values):
  • 1: Prefunded
  • 2: Realtime Authorization
  • 3: Post-Authorization (Aggregated Transaction)
  • 7: Debt Recovery
DenyListIndicationInt(32)Indicates the effect on the consumer’s Deny List status (Enum values):
  • 0: unknown/no effect
  • 1: Decline will cause the consumer to be added to the deny list.
  • 2: Approval shall cause the consumer to be removed from the deny list.
HwSerialStringThe Nayax Device Hardware serial number.
FWVersionStringThe device Firmware version number.
TypeStringThe Nayax Device Type.
IdInt(64)The unique machine entity ID allocated in Nayax’s back office system.
NameString(255)The Machine Name as configured in Nayax’s back office.
ExternalIdString(200)The Machine External ID (Machine number - operator) provided by the operator in Nayax’s back office.
TypeString(50)The Machine Type as defined in Nayax’s back office.
TerminalIdString(255)The Terminal identifier. Contact Nayax TPOC for definition.
DecimalPlaceInt(64)The decimal point location for amounts used on this machine.
  • Example: Value of 2 means amounts like 123.45.
  • Example: Value of 0 means amounts like 12345 (integer representation).
OffsetString(255)The UTC timezone offset for the machine’s location.
GroupIdStringField reserved for Nayax internal use only.
OperatorIdString(255)The Merchant ID as defined in Nayax’s back office.
RegionString(255)The Region as defined in Nayax’s back office.
CityString(255)The machine’s City as defined in Nayax’s back office.
ZipCodeString(255)The machine’s Zip Code as defined in Nayax’s back office.
NameStringThe Country Full Name.
NumericCodeString(3)The ISO-3166-1 Numeric-3 code for the country (e.g., 840).
Alpha2CodeString(2)The ISO-3166-1 Alpha-2 code for the country (e.g., US).
Alpha3CodeString(3)The ISO-3166-1 Alpha-3 code for the country (e.g., USA).
IntraStringThe Intra Region for geographical diversification.
StateStringThe Actor geo state code.
CityString(255)The City associated with the actor.
CountryCodeStringThe Country code (ISO3).
ZipCodeString(255)The Zip Code associated with the actor.
AddressString(255)The Address associated with the actor.
LatitudeStringThe Machine Location Latitude.
LongitudeStringThe Machine Location Longitude.
IdInt(64)The Actor ID.
NameString(255)The Direct Merchant Name.
OperatorIdInt(64)The Merchant Operator ID.
OperatorNameStringThe Merchant Operator Name.
MerchantIdInt(64)The Merchant ID. Contact Nayax TPOC to define.
DynamicURLStringThe Actor level URL configuration.
NameStringThe Country Full Name.
NumericCodeString(3)The ISO-3166-1 Numeric-3 code.
Alpha2CodeString(2)The ISO-3166-1 Alpha-2 code.
Alpha3CodeString(3)The ISO-3166-1 Alpha-3 code.
IntraStringThe Intra Region for geographical diversification.
StateStringThe Actor geo state code.
CityString(255)The City associated with the actor.
CountryCodeStringThe Country code (ISO3).
ZipCodeString(255)The Zip Code associated with the actor.
AddressString(255)The Address associated with the actor.
LatitudeStringThe Machine Location Latitude.
LongitudeStringThe Machine Location Longitude.
MCCInt(32)Merchant Category Code. Used to classify merchants by the type of goods or services provided.
SubMerchantIdString(255)The Sub Merchant identifier. Contact Nayax TPOC to define.
DirectActorStringCustom data for the Direct Actor in JSON format.
OperatorStringCustom data for the Operator in JSON format.
DistributorStringCustom data for the Distributor in JSON format.
ActorStringCustom data for the Actor in JSON format.
MachineStringCustom data for the Machine in JSON format.
SoftDeclineStringCustom data related to a Soft Decline in JSON format.
CardNumberStringCard details sent based on transaction type:
  • For Card Present Authorization/Sale: The full Track2 data.
  • For other transactions: The card PAN only.
EntryModeString(4)Indicates how the card details were read. Common values include:
  • MCR: Magnetic Stripe Read (swipe).
  • CON: Contact Chip Read (insert).
  • CLS: Contactless Chip Read (tap).
  • NFC: Phone/Mobile device contactless read.
  • QR: Card number read from a QR code.
ExpYearStringThe card’s expiration year (YY format). Conditional: Only sent when Interface is 1 or 10.
ExpMonthStringThe card’s expiration month (MM format). Conditional: Only sent when Interface is 1 or 10.
EMVDataStringA string containing EMV tags in TLV (Tag-Length-Value) format.
CVV2StringThe Card Verification Value 2 (CVV2).
IDNumberStringThe ID Number associated with the cardholder or transaction.
RandomNumberStringFurther information is unavailable.
PrimaryIdStringThe Primary Brand Id.
PrimaryDescriptionStringThe Primary Brand Description.
SecondaryIdStringThe Secondary Brand Id (if applicable).
SecondaryDescriptionStringThe Secondary Brand Description (if applicable).
CardHolderNameStringThe Card Holder Name.
IsDebitCardBoolIndication if card is a Debit or Prepaid card.
SrvTranIdStringThe Integrator’s internal transaction ID.
  • Conditional: Only mandatory if /StartSession was not used.
  • If /StartSession was used, this should be empty or echo the main Transaction ID.
AuthCodeString(40)The External Authorization Code (usually from the Card Issuer’s bank).
AuthAmountDoubleThe original amount requested in the /Authorization request.
SettAmountDoubleThe original amount requested in the /Settlement or /Sale process. Irrelevant for Authorization.
RRNStringReference Retrieval Number. Highly recommended to be visible to the end consumer/card holder.
TokenString(256)A unique token for the transaction. For Nayax Internal use only.
AuthDateTimeStringThe date and time string when the /Authorization took place. Format:ddMMyyHHmmss.
SettDateTimeDoubleThe Settlement Date/Time. Irrelevant for Authorization.
TraceNumberStringThe Trace Number. For Nayax Internal use only.
AuthSourceString(5)For Nayax Internal use only.
AdditionalDataStringAdditional data sent as a JSON format string.
IsGatewayTimeoutBoolIndication of whether a gateway timeout occurred.
ProviderExternalDataStringExternal data from the provider in JSON format string.
InitiateTranReferenceInt(64)Conditional. Reflects the original Nayax Transaction ID for prepaid loyalty card re-attempts.
IsRevalueCardBoolIndication of whether the card is allowed to be revalued.

Response

The Authorization Response that the customer’s payment method would send to Nayax’s servers. The payload should look as follows:

Response Parameters

The following table describes the fields returned in the API response:
FieldTypeDescription
VerdictStringThe constant string status of the request:
  • Approved
  • Declined
CodeInt(32)Conditional: Only returned if Verdict is Declined. The mandatory decline codes:
  • 1: Insufficient funds
  • 2: Transaction ID unknown
  • 3: Cardholder exceeded daily / weekly / monthly transaction count limit
  • 4: Cardholder exceeded transaction amount limit
  • 5: Suspected Fraud
  • 6: General system failure
  • 7: Invalid amount
  • 8: Request cannot be parsed (format error)
  • 9: Transaction not allowed to cardholder
  • 40: For Nayax internal use only.
  • 990: CertificateFileName not found
  • 991: Failed to decipher message body
  • 992: Timeout exception
  • 994: Card Brand not supported
  • 996: Transaction ID Unknown / Duplicate Transaction ID (Start Session Error)
  • 997: Missing mandatory parameters
  • 998: Validation / request cannot be parsed
  • 999: General exception
  • 1010: Public Key Certificate not found
  • 1011: Method not Implemented
StatusMessageString(255)The transaction status message, provided as a free text field or for additional varying data.
CustomDeclineCodeStringUsed to specify a custom decline code (e.g., for Soft Decline or Switch Interface). This value may be the acquirer’s response code or composed of other data.
SrvTranIdStringThe Integrator’s internal transaction ID.
  • Conditional: Only mandatory if /StartSession was not used.
  • If /StartSession was used, this should be empty or echo the Transaction ID sent in the request.
AuthCodeString(40)The External Authorization Code (usually from the Card Issuer’s bank).
AuthAmountDoubleThe original amount requested in the /Authorization Request.
SettAmountDoubleThe original amount requested in the /Settlement or /Sale process. Irrelevant for Authorization.
RRNStringReference Retrieval Number. Highly recommended to be visible to the end consumer/card holder for support.
TokenString(256)A unique token for the transaction. For Nayax Internal use only.
AuthDateTimeStringThe date and time string when the /Authorization took place. Format:ddMMyyHHmmss.
SettDateTimeDoubleThe Settlement Date/Time. Irrelevant for Authorization.
TraceNumberStringThe Trace Number. For Nayax Internal use only.
AuthSourceString(5)For Nayax Internal use only.
AdditionalDataStringAdditional data sent as a JSON format string. Contact Nayax TPOC to define.
IsGatewayTimeoutBoolIndication (valid in response) of whether a gateway timeout occurred.
ProviderExternalDataStringExternal data from the provider in JSON format string.
InitiateTranReferenceInt(64)Conditional: Reflects the original Nayax Transaction ID for prepaid loyalty card re-attempts.
IsRevalueCardBoolIndication of whether the card is allowed to be revalued (have funds added).
RegularCreditTypeInt(32)Defines what the RegularCredit field represents (Enum values):
  • 0: The credit is counted in transactions.
  • 1: The credit is counted as an amount.
RegularCreditDoubleThe Regular Credit amount or number of transactions based on RegularCreditType. Decimal place 2.
RevalueCreditInt(32)The Revalue Credit amount. Only available if the card is configured as revalue-able. Decimal place 2.