Cancel command to notify the integrator in order to initiate the cancellation process with the Cortina payment provider whenever one of the below scenarios takes place:
- Getting a failed
AuthorizationResponse (either due to timeout or having an error code in theAuthorizationResponse). - Issues during product selection- inactivity of the consumer/Cancel button being pressed/invalid product selection by the consumer.
- Vend failure (issue with product dispensing/service providing) by the machine
Note: This command is relevant for PreAuthorization only. Its equivalent in the PreSelection flow is the
Void command.Request
Nayax’s servers send a POST request to your configuredCancel endpoint, which would be of the following format:
(customer's URL)/Cortina/PrePaid/Cancel
The payload includes the full result of the card scan operation:
Request Parameters
The following table describes the parameters included in the request body:Reference Fields
Reference Fields
| Field | Type | Description |
|---|---|---|
ReasonCode | Int(16) | The valid cancellation or decline code:
|
ReasonText | String | The verbal explanation corresponding to the ReasonCode. |
TransactionId | String(36) | The unique identifier for this transaction.
|
NayaxTransactionId | Int(64) | The Nayax internal unique ID for the transaction, echoed in further requests. |
Amount | Double | The payment amount (Decimal with max 3 digits for cents).
|
CurrencyCode | String(3) | The currency code in ISO 4217 Alpha-3 format. |
CurrencyNumeric | String(3) | The currency code in ISO 4217 Numeric-3 format. |
SiteId | Int(16) | The identifier for the Nayax server region. |
MachineAuTime | String | The Machine Authorization Timestamp. |
TimeoutMS | Int(32) | Nayax Server Timeout configuration in milliseconds. |
IsProductSelected | Bool | Indication if the product was pre-selected before the payment process. |
HwSerial | String | Nayax Device Hardware serial number. |
FWVersion | String | Device Firmware version. |
Type | String | Nayax Device Type. |
Id | Int(64) | Machine entity unique ID allocated in Nayax’s back office. |
Name | String(255) | Machine Name as defined in Nayax’s back office. |
TerminalId | String(255) | Terminal identifier. Contact Nayax TPOC to define. |
DecimalPlace | Int(64) | The decimal point location for amounts used on this machine.
|
Offset | String(255) | UTC timezone offset. |
GroupId | String | For Nayax internal use only. |
OperatorId | String(255) | Merchant ID as defined in Nayax’s back office (String format). |
Region | String(255) | Region as defined in Nayax’s back office. |
City | String(255) | Machine City as defined in Nayax’s back office. |
ZipCode | String(255) | Machine Zip Code as defined in Nayax’s back office. |
Name | String | Country Full Name. |
NumericCode | String(3) | ISO-3166-1 Numeric-3 code. |
Alpha2Code | String(2) | ISO-3166-1 Alpha-2 code. |
Alpha3Code | String(3) | ISO-3166-1 Alpha-3 code. |
State | String | Actor geo state code. |
City | String(255) | Actor geo City. |
CountryCode | String | Actor geo Country code (ISO3). |
ZipCode | String(255) | Actor geo Zip code. |
Address | String(255) | Actor geo Address. |
Longitude | String | Machine Location Longitude. |
Latitude | String | Machine Location Latitude. |
Id | Int(64) | Actor ID (Direct Merchant/Operator). |
Name | String(255) | Direct Merchant name. |
OperatorId | Int(64) | Merchant operator ID (Integer format). |
OperatorName | String | Merchant operator name. |
MerchantId | Int(64) | Merchant ID. Contact Nayax TPOC to define. |
Name | String | Country Full Name. |
NumericCode | String(3) | ISO-3166-1 Numeric-3 code. |
Alpha2Code | String(2) | ISO-3166-1 Alpha-2 code. |
Alpha3Code | String(3) | ISO-3166-1 Alpha-3 code. |
State | String | Actor geo state code. |
City | String(255) | Actor geo City. |
CountryCode | String | Actor geo Country code (ISO3). |
ZipCode | String(255) | Actor geo Zip code. |
Address | String(255) | Actor geo Address. |
Latitude | String | Machine Location Latitude. |
Longitude | String | Machine Location Longitude. |
DirectActor | String | Direct actor custom data (String in JSON format). |
Operator | String | Operator custom data (String in JSON format). |
Distributor | String | Distributor custom data (String in JSON format). |
Actor | String | Actor custom data (String in JSON format). |
Machine | String | Machine custom data (String in JSON format). |
CardNumber | String | Card details provided based on transaction type:
|
EntryMode | String(4) | How the card details were read:
|
ExpYear | String | Card expiration year (YY format). Conditional (only when Interface is 1 or 10). |
ExpMonth | String | Card expiration month (MM format). Conditional (only when Interface is 1 or 10). |
EMVData | String | EMV tags data in TLV (Tag-Length-Value) format. |
IDNumber | String | Cardholder ID Number. |
RandomNumber | String | Further information is unavailable. |
PrimaryId | String | Primary Brand ID. |
PrimaryDescription | String | Primary Brand Description. |
SecondaryId | String | Secondary Brand ID. |
SecondaryDescription | String | Secondary Brand Description. |
CardHolderName | String | Card Holder Name. |
SrvTranId | String | The Integrator’s internal transaction ID.
|
AuthCode | String(40) | External Authorization Code (usually from the Card Issuer’s bank). |
AuthAmount | Double | The original amount requested in the /Authorization request. |
SettAmount | Double | The original amount requested in the /Settlement or /Sale process. Irrelevant for Authorization. |
RRN | String | Reference Retrieval Number. Highly recommended to be visible to the end consumer/Card holder. |
Token | String(256) | A unique token for the transaction. For Nayax Internal use only. |
AuthDateTime | String | The date and time string when the /Authorization took place. Format:ddMMyyHHmmss. |
SettDateTime | Double | The Settlement Date/Time. Irrelevant for Authorization. |
TraceNumber | String | The Trace number. For Nayax Internal use only. |
AuthSource | String(5) | For Nayax Internal use only. |
AdditionalData | String | Additional data string in JSON format. Contact Nayax TPOC to define. |
IsGatewayTimeout | Bool | Indicates if a gateway timeout occurred (valid in the response). |
Response
The Cancel 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:Reference Fields
Reference Fields
| Field | Type | Description |
|---|---|---|
Verdict | String | The final status of the request. Must be one of the constant string values:
|
Code | Int(32) | The Decline Code. Conditional—only present if Verdict is ‘Declined’. Valid decline codes include:
|
StatusMessage | String(255) | A free text field containing the transaction status message or additional varying data regarding the outcome. |
RegularCreditType | Int(32) | Defines the unit of measure for RegularCredit (Enum values):
|
RegularCredit | Double | The regular credit value (amount or transaction count) based on the RegularCreditType. Uses Decimal place 2. |
RevalueCredit | Int(32) | The revalue credit amount.
|