Cancel an order
POST {{baseUrl}}/orders/cancel
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.
Request Body
{"order"=>{"pspReference"=>"8815517812932012", "orderData"=>"823fh892f8f18f4...148f13f9f3f"}, "merchantAccount"=>"{{YOUR_MERCHANT_ACCOUNT}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string | ||
Idempotency-Key | null | A unique identifier for the message with a maximum of 64 characters (we recommend a UUID). |
RESPONSES
status: OK
{"pspReference":"8816178914079738","resultCode":"Received"}