Refund command to notify the integrator about a refund request, so the integrator can start the refund with the Cortina payment provider.
How a refund is triggered
You can trigger the refund request in two ways:- From the Dynamic Transaction Monitor in Nayax Core.
- Through the Lynx API.
From the Dynamic Transaction Monitor
1
Request the refund
Right-click the relevant transaction and select Request Refund.

2
Approve the refund
Right-click the same transaction again and select Approve/Decline Refund.

Refund command to your endpoint, as described below.
Through the Lynx API
Call the Request a Payment Refund endpoint, then the Approve Payment Refund endpoint.Request
Nayax’s servers send a POST request to your configuredRefund endpoint, which would be of the following format:
(customer's URL)/Cortina/PrePaid/Refund
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 |
|---|---|---|
| Transaction Status & Cancellation Codes | ||
ReasonCode | Int(16) | The valid cancellation or decline code:
|
ReasonText | String | The verbal explanation corresponding to the ReasonCode. |
| Core Identifiers & Financial Details | ||
TransactionId | String(36) | The unique identifier for this transaction.
|
NayaxTransactionId | Int(64) | The Nayax internal unique ID for the transaction, echoed in further requests. |
SrvTranId | String | The Integrator’s internal transaction ID.
|
Amount | Double | The payment amount (Decimal with max 3 digits for cents).
|
AuthAmount | Double | The original amount requested in the /Authorization request. Conditional on /Authorization response. |
SettAmount | Double | The original amount requested in the /Settlement or /Sale process. Irrelevant for the Authorization command. |
AuthCode | String(40) | External Authorization Code (usually from the Card Issuer’s bank). |
RRN | String | Reference Retrieval Number (RRN). Highly recommended to be visible to the consumer/card holder for support. |
Token | String(256) | A unique transaction token. For Nayax internal use only. |
TraceNumber | String | Trace number. For Nayax internal use only. |
AuthSource | String(5) | For Nayax internal use only. |
| Timestamp & System Details | ||
AuthDateTime | String | The date and time the /Authorization took place. Format:ddMMyyHHmmss. |
SettDateTime | Double | The Settlement Date/Time. Irrelevant for the Authorization command. |
MachineAuTime | String | Machine Authorization Timestamp. |
TimeoutMS | Int(32) | Nayax Server Timeout configuration in milliseconds. |
IsGatewayTimeout | Bool | Indicates if a gateway timeout occurred (valid in the response). |
AdditionalData | String | Additional data string in JSON format. Contact Nayax TPOC to define. |
SiteId | Int(16) | Region of the Nayax server. |
IsProductSelected | Bool | Indication if the product was pre-selected. |
| Machine & Location Details | ||
HwSerial | String | Nayax Device Hardware serial number. |
FWVersion | String | Device Firmware version. |
Type | String | Nayax Device Type. |
Id | Int(64) | Machine entity unique ID. |
Name | String(255) | Machine Name. |
TerminalId | String(255) | Terminal identifier. Contact Nayax TPOC to define. |
DecimalPlace | Int(64) | Decimal point location for amounts. |
Offset | String(255) | UTC timezone offset. |
GroupId | String | For Nayax internal use only. |
OperatorId | String(255) | Merchant ID. |
Region | String(255) | Machine Region. |
City | String(255) | Machine City. |
ZipCode | String(255) | Machine Zip Code. |
Name | String | Country Full Name (for machine location). |
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. |
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. |
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). |
Response
The Refund 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 |
|---|---|---|
| Transaction Status & Error Codes | ||
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. |
| Loyalty & Credit Information | ||
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.
|