younifyd
Menu

Cancel an order

Cancel an order

POST/orders/cancel

Use it in a workflow

  1. Add a step and choose the Adyen connector.
  2. Pick the Cancel an order action (under Orders).
  3. Fill in the fields below, then reference the result from later steps as {{cancelAnOrder.response.data}}.

Request

Headers

Idempotency-Keystring

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

Request body

Enter the body as JSON in the step's Body field.

merchantAccountstringrequired

The merchant account identifier that orderData belongs to.

orderobjectrequired
orderDatastringrequired

The encrypted order data.

pspReferencestringrequired

The `pspReference` that belongs to the order.

json
{
  "merchantAccount": "string",
  "order": {
    "orderData": "string",
    "pspReference": "string"
  }
}

Response

Returns 200 with an object. Read it in later steps with {{cancelAnOrder.response.data.<field>}}.

pspReferencestring

A unique reference of the cancellation request.

resultCodestring

The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed.

One ofReceived

json
{
  "pspReference": "string",
  "resultCode": "Received"
}

Need more? See the Adyen guide for connection setup and behaviour shared by every action.