Skip to content

Cancel an order

POST
/orders/cancel
curl --request POST \
--url http://localhost:3001/orders/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"order_id":"string","reason":null}'
Media typeapplication/json
object
order_id
required
string
reason
string
nullable

Example generated

{
"order_id": "example",
"reason": "example"
}

Cancel accepted

Invalid UUID

Order not found

Order state version mismatch