v1

latestOpenAPI 3.0.12026-07-26181265484.9 KB
Transactions

CancelTransaction

post/CancelTransaction

Request body

NayaxTransactionIdinteger

The unique transaction ID assigned by Nayax, provided in the /TransactionCallback.

SparkTransactionIdstring

The unique session ID from the initial /StartAuthentication request.

SiteIdinteger

The ID of the site where the transaction occurred.

MachineAuTimestring

The timestamp of the cancellation from the device in its local timezone. The format is yyyyMMddHHmmssSSS.

TerminalIdstring

The serial or external ID of the terminal used.

TerminalIdTypeinteger

Defines the type of ID used for the TerminalId parameter. Use 1 for the HW Serial or 2 for the Nayax Machine ID.

CancellationTypeinteger

Indicates which cancellation flow is being implemented. Use 1 for a Pre-Authorization Cancel or 2 for a Pre-Selection Void.

ReasonCodeinteger

The internal code explaining the reason for the cancellation.

ReasonTextstring nullable

A human-readable explanation of the cancellation reason. This parameter is optional.

CancelAmountnumber double

The amount to be canceled in major currency units (e.g., dollars or euros).

Response

Success. The transaction has been successfully canceled.

SparkTransactionIdstring nullable

The ID of the canceled session.

CardBrandstring nullable

The brand of the card used for the transaction (e.g., "Visa", "MasterCard").

CardLast4Digitsstring nullable

The last four digits of the card used.

AuthCodestring nullable

The authorization code for the cancellation.

MachineAuTimestring nullable

The timestamp of the cancellation from the device, in the format yyyyMMddHHmmssSSS.

AuTimestring nullable

The timestamp from the authorization server.

CancelTimestring nullable

The server timestamp of the cancellation confirmation, in the format yyyyMMddHHmmssSSS.

CurrencyCodestring nullable

The ISO currency code (e.g., "EUR").

CurrencyNumericstring nullable

The ISO numeric currency code (e.g., "978" for EUR).

FiscalRrnstring nullable

The fiscal reference number for the receipt or audit trail.

NayaxRRNstring nullable

The Nayax reference number of the transaction.