Skip to main content
Cortina Prepaid uses the Settlement command to notify the integrator about the result of a settlement process on the device’s end (meaning a product has been vended) in order to initiate the settlement 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 Settlement endpoint, which would be of the following format: (customer's URL)/Cortina/PrePaid/Settlement 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
Transaction Identifiers & Status
TransactionIdString(36)The unique identifier for this transaction.
  • Echoes the encrypted ID from /StartSession if used.
  • Otherwise, the Nayax Engine generates the value.
NayaxTransactionIdInt(64)The Nayax internal unique ID for the transaction, echoed in subsequent requests.
SrvTranIdStringThe Integrator’s internal transaction ID.
  • Conditional: Required if /StartSession was not used.
  • If used, it should be empty or echo the Transaction ID from the request.
RRNStringReference Retrieval Number (RRN).
  • Used as the external transaction ID for third parties (e.g., Card Schemes).
  • Recommended to be visible to the consumer/cardholder.
TokenString(256)A unique transaction token. For Nayax internal use only.
TraceNumberStringThe Trace number. For Nayax internal use only.
AuthSourceString(5)For Nayax internal use only.
Financial Details & Amounts
AmountDoubleThe payment amount.
  • Decimal value (max 3 digits for cents).
  • Currencies without decimals (e.g., JYN) are still represented as a double (e.g., 234.0).
AuthAmountDoubleThe original amount requested in the /Authorization request. Conditional on /Authorization response.
SettAmountDoubleThe original amount requested in the /Settlement or /Sale process. Irrelevant for the Authorization command.
CurrencyCodeString(3)The currency code in ISO 4217 Alpha-3 format (e.g., USD, EUR).
CurrencyNumericString(3)The currency code in ISO 4217 Numeric-3 format.
DecimalPlaceInt(64)The decimal point location for amounts on this machine.
  • Example: 2 means amounts like 123.45.
  • Example: 0 means amounts like 12345 (integer representation).
AuthCodeString(40)The External Authorization Code (usually from the Card Issuer).
Timestamps & Flags
MachineAuTimeStringThe Machine Authorization Timestamp.
TimeoutMSInt(32)Nayax Server Timeout configuration in milliseconds.
OffsetString(255)UTC timezone offset for the machine’s location.
AuthDateTimeStringThe date and time the /Authorization took place. Format:ddMMyyHHmmss.
SettDateTimeDoubleThe Settlement Date/Time. Relevant only for Settlement-related commands. Irrelevant for Authorization.
IsGatewayTimeoutBoolIndicates if a gateway timeout occurred (valid in the response).
Card & Payment Details
CardNumberStringCard details provided based on transaction type:
  • Full Track 2 for card-present Authorizations/Sales.
  • Card PAN only for other transaction types (e.g., Refund, Settlement).
EntryModeString(4)How the card details were read:
  • MCR: Magstripe (Swipe)
  • CON: Contact Chip (Insert)
  • CLS: Contactless Chip (Tap)
  • NFC: Phone Tap
  • QR: QR code read
ExpYearStringCard expiration year (YY format). Conditional (only when Interface is 1 or 10).
ExpMonthStringCard expiration month (MM format). Conditional (only when Interface is 1 or 10).
EMVDataStringEMV tags data in TLV (Tag-Length-Value) format.
IDNumberStringCardholder ID/identification number.
RandomNumberStringFurther information is unavailable.
PrimaryIdStringPrimary Brand ID (e.g., Visa, Mastercard).
PrimaryDescriptionStringPrimary Brand Description.
SecondaryIdStringSecondary Brand ID (if applicable).
CardHolderNameStringName of the cardholder.
Product/Item Details
IsProductSelectedBoolIndicates if the product was pre-selected before the payment process.
CodeInt(16)The code of the selected item as defined in Nayax’s back office or the vending machine.
CatalogProductIdString(100)The external unique identifier of the selected item (the product catalog number).
NameString(255)The Product name as defined in the Nayax back office.
PriceDoubleThe original Product Price in the machine’s currency. Note: Amount is the final billing price after adjustments.
UnitOfMeasurementString(64)Product’s unit of measurement (e.g., ‘unit’ or ‘Liter’).
MeasurementDoubleProduct’s quantity in the specified unit of measurement.
GroupString(255)Product’s group name as defined in the product map.
ProductGroupIdString(255)Product’s group code as defined in the product map.
PulseLineNumberInt(32)Used to support multiple machines via pulse for remote vend capability. Must be a positive integer (0)(\ge 0).
Machine & Device Information
HwSerialStringNayax Device Hardware serial number.
FWVersionStringDevice Firmware Version.
TypeStringNayax Device Type.
IdInt(64)Machine Entity Unique ID allocated in Nayax’s back office.
NameString(255)Machine Name as defined in Nayax’s back office.
TerminalIdString(255)Terminal identifier as defined in Nayax’s back office.
Machine Location
SiteIdInt(16)Region of the Nayax server hosting the machine data.
RegionString(255)Machine Region as defined in Nayax’s back office.
CityString(255)Machine City as defined in Nayax’s back office.
ZipCodeString(255)Machine Zip Code as defined in Nayax’s back office.
LatitudeStringMachine Location Latitude.
LongitudeStringMachine Location Longitude.
Actor (Merchant/Operator) Details
IdInt(64)Actor ID (Direct Merchant/Operator) defined in Nayax’s back office.
NameString(255)Direct Merchant Name as defined in Nayax’s back office.
OperatorIdString(255)Merchant ID (Operator ID - String version) as defined in Nayax’s back office.
OperatorIdInt(64)Merchant Operator ID (integer version).
OperatorNameStringMerchant Operator Name.
MerchantIdInt(64)Merchant ID as defined in Nayax’s back office.
DynamicURLStringActor-level URL configuration.
StateStringActor geo state code.
CityString(255)Actor geo city.
CountryCodeStringActor geo country code (ISO-3).
ZipCodeString(255)Actor geo zip code.
AddressString(255)Actor geo address.
Country Information (ISO 3166-1)
NameStringCountry Full Name.
NumericCodeString(3)Country code in ISO 3166-1 Numeric-3 format.
Alpha2CodeString(2)Country code in ISO 3166-1 Alpha-2 format.
Alpha3CodeString(3)Country code in ISO 3166-1 Alpha-3 format.
IntraStringThe Intra Region (e.g., ‘European Union’) used for geographical diversification across countries.
Custom Data (JSON Strings)
GroupIdStringFor Nayax internal use only.
DirectActorStringDirect actor custom data (String in JSON format).
OperatorStringOperator custom data (String in JSON format).
DistributorStringDistributor custom data (String in JSON format).
ActorStringActor custom data (String in JSON format).
MachineStringMachine custom data (String in JSON format).
AdditionalDataStringGeneral custom data string in JSON format.

Response

The Settlement 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
Transaction Status & Errors
VerdictStringThe final status of the request. Must be one of the constant string values:
  • Approved
  • Declined
CodeInt(32)The Decline Code. Conditional—only present if Verdict is ‘Declined’. Common codes include:
  • 1: Insufficient funds
  • 5: Suspected Fraud
  • 6: General system failure
  • 7: Invalid amount
  • 8 / 998: Format/parsing error
  • 992: Timeout exception
  • 997: Missing mandatory parameters
  • 999: General exception
StatusMessageString(255)A free text field containing the transaction status message or additional varying data regarding the outcome.
CustomDeclineCodeStringUsed for specifying a custom decline code.
  • Often related to Soft Decline or interface switching.
  • May reflect the acquirer’s response code or custom data.
Loyalty & Credit Information
RegularCreditTypeInt(32)Defines the unit of measure for RegularCredit (Enum values):
  • 0: Credit is counted in transactions (count).
  • 1: Credit is counted as an amount (currency).
RegularCreditDoubleThe regular credit value (amount or transaction count) based on the RegularCreditType. Uses Decimal place 2.
RevalueCreditInt(32)The revalue credit amount.
  • Only present if the associated card is configured as revalue-able.
  • Uses Decimal place 2.