Skip to content

OR29 - Perform a full cancelation of an order

Request

⚠️ Content-length header

The Content-Length header must be present with value 0, even when there is no request body.

Description
  • for PAY_ON_DELIVERY, PAY_ON_DUE_DATE or PAY_ON_SHIPMENT workflows: shop can only cancel a non-debited order.
  • for NO_CUSTOMER_PAYMENT_CONFIRMATION workflow: shop can only cancel an unshipped order.
Call Frequency
Maximum usage: At each order cancelation
Security
Operator-Bearer-Token or OAuth-2
Path
order_idstringrequired

Order's identifier

curl -i -X PUT \
  'https://your-instance.mirakl.net/api/orders/{order_id}/cancel' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

No Content