Start Session
Cortina uses the Start Sessioncommand to notify the integrator about the initialization of the transaction request with the Cortina payment provider.
Important: For Cortina Static QR (SQR), the
Startcommand is being used instead of StartSession, andStartis sent from the Cortina payment provider to Nayax, not the other way around (as mentioned in here).
More on that in Static QR- Start.
Request
Nayax's servers send a POST request to your configured StartSessionendpoint, which would be of the following format:
(customer's URL)/Cortina/StartSession
The payload includes the following details:
{
"TokenId": "123456",
"RandomNumber": "123456789qwertyuioasdfghjkl",
"DynamicURL": "string",
"CustomData": {
"DirectActor": "String",
"Operator": "String",
"Distributor": "String",
"Actor": "String",
"Machine": "String",
"SoftDecline": "String"
}
}Request Parameters
The following table describes all the parameters of the request:
| Field | Type | Required | Description |
|---|---|---|---|
TokenId | String | Yes | The 3rd party Secret Token reference number. |
RandomNumber | String | Yes | A unique 27-character random number generated by Nayax. |
DynamicURL | String(255) | No | The Actor-level URL configuration. Supports routing to different URLs. |
| Custom Data Fields (String in JSON format) | |||
DirectActor Inside CustomData | String | No | Custom data for the Direct Actor in JSON format. Contact Nayax TPOC for definition. |
Operator Inside CustomData | String | No | Custom data for the Operator in JSON format. Contact Nayax TPOC for definition. |
Distributor Inside CustomData | String | No | Custom data for the Distributor in JSON format. Contact Nayax TPOC for definition. |
Actor Inside CustomData | String | No | Custom data for the Actor in JSON format. Contact Nayax TPOC for definition. |
Machine Inside CustomData | String | No | Custom data for the Machine in JSON format. Contact Nayax TPOC for definition. |
SoftDecline Inside CustomData | String | No | Custom data related to a Soft Decline in JSON format. Contact Nayax TPOC for definition. |
Response
The StartSession Response that the customer's payment method would send to Nayax's servers.
The payload should look as follows:
{
"TranIDCipher": "a0Qnxm4fWMskzFXiMivn8BDiQVSL6be/NXIICC9HBoAiry6DUdKYPQh/YS1G8nObE6/0o9N4MFuYA7CTAxAnphuNJwBEjgBzKhhgpJ5ggnw=",
"Status": {
"Verdict": "Approved",
"Code": 0,
"StatusMessage": "string",
"CustomDeclineCode": "string"
}
}Request Parameters
The following table describes all the parameters of the request:
| Field | Type | Required | Description |
|---|---|---|---|
TranIDCipher | String(36) | Yes | The encrypted transaction ID used for authentication in the
|
Verdict inside Status | String | Yes | Constant string representing the final status of the request:
|
Code inside Status | Int(32) | No | The Decline Code. Conditionalāonly present if
|
StatusMessage inside Status | String(255) | No | A free text field containing the transaction status message or additional varying data regarding the outcome. |
CustomDeclineCode inside Status | String | No | Used for specifying a custom decline code (e.g., related to Soft Decline or Switch Interface). May reflect the acquirer's response code. |
Updated 13 days ago