v12

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-3161451.5 KB
General

Voids a transaction.

Voids the referenced stored value transaction.

post/voidTransaction

Request body

merchantAccountstring required

The merchant account identifier, with which you want to process the transaction.

originalReferencestring required

The original pspReference of the payment to modify.

referencestring

Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters.

storestring

The physical store, for which this payment is processed.

tenderReferencestring

The reference of the tender.

uniqueTerminalIdstring

The unique ID of a POS terminal.

Response

OK - the request has succeeded.

pspReferencestring

Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.

refusalReasonstring

If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error.

When a transaction fails, the authorisation response includes resultCode and refusalReason values.

resultCode'Success' | 'Refused' | 'Error' | 'NotEnoughBalance'

The result of the payment. Possible values:

  • Success – The operation has been completed successfully.
  • Refused – The operation was refused. The reason is given in the refusalReason field.
  • Error – There was an error when the operation was processed. The reason is given in the refusalReason field.
  • NotEnoughBalance – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks.
thirdPartyRefusalReasonstring

Raw refusal reason received from the third party, where available