v53

OpenAPI 3.1.0raw.githubusercontent.com2026-07-3128260917.5 KB
Orders

Cancel an order

Cancels an order. Cancellation of an order results in an automatic rollback of all payments made in the order, either by canceling or refunding the payment, depending on the type of payment method.

post/orders/cancel

Headers

Idempotency-Keystring

A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).

Request body

merchantAccountstring required

The merchant account identifier that orderData belongs to.

Response

OK - the request has succeeded.

pspReferencestring required

A unique reference of the cancellation request.

resultCode'Received' required

The result of the cancellation request.

Possible values:

  • Received – Indicates the cancellation has successfully been received by Adyen, and will be processed.