Cancel an order
Cancel an order in the loyalty system.
POST
/v1/orders/cancelauthorization<token>
To get an API key, please contact us. We'll be happy to help you.
In: header
loyaltyOrderIdstring
Loyalty external Order id
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:4010/v1/orders/cancel" \ -H "Content-Type: application/json" \ -d '{ "loyaltyOrderId": "loyalty_order_123456" }'{
"success": true
}{
"code": "CUSTOMER_NOT_FOUND",
"message": "Customer not found."
}{
"code": "UNEXPECTED_ERROR",
"message": "Failed to cancel order"
}