Start
Request
The Cortina payment method would send a Start command to Nayax's servers in order to notify them about starting a transaction. The call would be of the following format:
https://lynx.nayax.com/payment/v2/transactions/cortina/(payment method's name)/start
The payload includes the following details:
{
"AppUserID": "19",
"TerminalId": "0456789456789456",
"TransactionId": "123456789qwertyuioasdfghjkl",
"SecretToken": "mrV3U3nsgGFrE3w5-wnBo_WCLPce-pZ1awRvTVTkungMIKThTVbj_fiXdfoGclhn0"
}{
"AppUserID": "19",
"UniQR": "https://qr.nayax.com/v1/rWg_p6pZh1pwjvbkGrmBLy3KgwSz3dq-y63r5FPxk2NOWw2",
"TransactionId": "123456789qwertyuioasdfghjkl",
"SecretToken": "mrV3U3nsgGFrE3w5-wnBo_WCLPce-pZ1awRvTVTkungMIKThTVbj_fiXdfoGclhn0"
}{
"AppUserID": "19",
"UniQR": "https://qr.nayax.com/v1/rWg_p6pZh1pwjvbkGrmBLy3KgwSz3dq-y63r5FPxk2NOWw2",
"TransactionId": "123456789qwertyuioasdfghjkl",
"SecretToken": "mrV3U3nsgGFrE3w5-wnBo_WCLPce-pZ1awRvTVTkungMIKThTVbj_fiXdfoGclhn0"
"Products":
[
{
"Code":2
}
]
}Request Parameters
The following table describes the parameters included in the request body:
| Field | Type | Description |
|---|---|---|
| User & Security Identifiers | ||
AppUserID | String(40) | The consumer's user ID on the 3rd party's app. |
TransactionId | String(40) | The unique identifier for the transaction.
|
SecretToken | String(64) | The unique secret key for your system, provided by Nayax in advance. Must be kept secret. |
Balance | Double | The balance of the user's account. Decimal value (max 3 digits for cents). |
| Machine Identification (One is Required) | ||
TerminalId | String(255) | The Unique Identifier for the vending machine (HW-Serial of the device).
|
UniQR | String | The QR code value linked to the machine.
|
Product Selection (Products Array) | ||
Products Array | *** | The array is optional, but if provided, some inner fields are mandatory. Only relevant for the PreSelection flow. |
Code inside Products | Int(16) | The Code of the selected item.
|
PulseLineNumber inside Products | Int(32) | The pulse line number for remote vend capability.
|
Name inside Products | String(255) | The Product name as defined in the Nayax back office. |
Price inside Products | Double | The original Product price in the machine's currency.
|
UnitOfMeasurement inside Products | String(64) | Product's unit of measurement (e.g., 'unit' or 'Liter'). |
Response
The Start Response that Nayax's servers would send to the payment method.
The payload should look as follows:
{
"Status": {
"Verdict": "Approved",
"StatusMessage": "Cortina V2 Stub Tester"
}
}Response Parameters
The following table describes the fields returned in the API response:
| Field | Type | Description |
|---|---|---|
| Transaction Status & Error Codes | ||
Verdict inside Status | String | The constant string representing the final status of the request:
|
Code inside Status | Int(32) | The Decline Code. Conditional—only present if
|
StatusMessage inside Status | String(255) | A free text field containing the transaction status message or additional varying data regarding the outcome. |
CustomDeclineCode inside Status | String | Used for specifying a custom decline code (e.g., related to Soft Decline or Switch Interface). May reflect the acquirer's response code. |
Updated 17 days ago