Skip to main content
Cortina Prepaid uses the Refund command to notify the integrator about the refund request in order to initiate the authorization process with the Cortina payment provider.
Said request would be triggered via either of the following options:
  • Nayax’s Dynamic Transaction Monitor by selecting the relevant transaction, right-clicking on it and then selecting “Request Refund”.
  • Nayax’s Lynx API- via the Refund command

Request

Nayax’s servers send a POST request to your configured Refund 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:
FieldTypeDescription
Transaction Status & Cancellation Codes
ReasonCodeInt(16)The valid cancellation or decline code:
  • 1: Insufficient funds
  • 2: Transaction ID unknown
  • 3: Cardholder exceeded daily/weekly/monthly transaction count limit
  • 4: Cardholder exceeded transaction amount limit
  • 5: Suspected Fraud
  • 6: General system failure
  • 7: Invalid amount
  • 8 / 998: Request cannot be parsed (format error) / Validation error
  • 9: Transaction not allowed to cardholder
  • 40: For Nayax internal use only.
  • 992: Timeout exception
  • 997: Missing mandatory parameters
  • 999: General exception
  • See full list for other status and technical errors (e.g., 990, 994, 1010).
ReasonTextStringThe verbal explanation corresponding to the ReasonCode.
Core Identifiers & Financial Details
TransactionIdString(36)The unique identifier for this transaction.
  • Echoes the encrypted ID from /StartSession if used.
  • Otherwise, the Nayax Engine generates this value.
NayaxTransactionIdInt(64)The Nayax internal unique ID for the transaction, echoed in further 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.
AmountDoubleThe payment amount (Decimal with max 3 digits for cents).
  • Example: 1 cent = 0.01.
  • Note: Currencies with no decimal places are still represented as a double (e.g., 234 JYN = 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.
AuthCodeString(40)External Authorization Code (usually from the Card Issuer’s bank).
RRNStringReference Retrieval Number (RRN). Highly recommended to be visible to the consumer/card holder for support.
TokenString(256)A unique transaction token. For Nayax internal use only.
TraceNumberStringTrace number. For Nayax internal use only.
AuthSourceString(5)For Nayax internal use only.
Timestamp & System Details
AuthDateTimeStringThe date and time the /Authorization took place. Format:ddMMyyHHmmss.
SettDateTimeDoubleThe Settlement Date/Time. Irrelevant for the Authorization command.
MachineAuTimeStringMachine Authorization Timestamp.
TimeoutMSInt(32)Nayax Server Timeout configuration in milliseconds.
IsGatewayTimeoutBoolIndicates if a gateway timeout occurred (valid in the response).
AdditionalDataStringAdditional data string in JSON format. Contact Nayax TPOC to define.
SiteIdInt(16)Region of the Nayax server.
IsProductSelectedBoolIndication if the product was pre-selected.
Machine & Location Details
HwSerialStringNayax Device Hardware serial number.
FWVersionStringDevice Firmware version.
TypeStringNayax Device Type.
IdInt(64)Machine entity unique ID.
NameString(255)Machine Name.
TerminalIdString(255)Terminal identifier. Contact Nayax TPOC to define.
DecimalPlaceInt(64)Decimal point location for amounts.
OffsetString(255)UTC timezone offset.
GroupIdStringFor Nayax internal use only.
OperatorIdString(255)Merchant ID.
RegionString(255)Machine Region.
CityString(255)Machine City.
ZipCodeString(255)Machine Zip Code.
NameStringCountry Full Name (for machine location).
NumericCodeString(3)ISO-3166-1 Numeric-3 code.
Alpha2CodeString(2)ISO-3166-1 Alpha-2 code.
Alpha3CodeString(3)ISO-3166-1 Alpha-3 code.
StateStringActor geo state code.
CityString(255)Actor geo City.
CountryCodeStringActor geo Country code (ISO3).
ZipCodeString(255)Actor geo Zip code.
AddressString(255)Actor geo Address.
LongitudeStringMachine Location Longitude.
LatitudeStringMachine Location Latitude.
IdInt(64)Actor ID.
NameString(255)Direct Merchant name.
OperatorIdInt(64)Merchant operator ID (Integer format).
OperatorNameStringMerchant operator name.
MerchantIdInt(64)Merchant ID. Contact Nayax TPOC to define.
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).

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:
FieldTypeDescription
Transaction Status & Error Codes
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’. Valid decline codes include:
  • 1: Insufficient funds
  • 5: Suspected Fraud
  • 6: General system failure
  • 7: Invalid amount
  • 8 / 998: Format/parsing error or Validation error
  • 992: Timeout exception
  • 997: Missing mandatory parameters
  • 999: General exception
  • See full documentation for the complete list of error codes.
StatusMessageString(255)A free text field containing the transaction status message or additional varying data regarding the outcome.
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.