Carts & CheckoutCustomer
Request a cancellation
The customer asks to cancel an order that hasn't shipped yet. The store approves it by cancelling the order or declines it.
Path Parameters
orderId*string
Identifier of the order.
Header Parameters
x-Store-Domain*string
Slug of the store or one of its configured domains, such as my-store.
Length
1 <= length <= 253X-Customer-Session?string
Customer session from POST /v1/customer/sessions. Send it instead of Authorization, never both.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://storefront.ecomiq.pe/v1/customer/orders/7204558912004325350/cancellation-request" \ -H "Authorization: Bearer <token>" \ -H "x-Store-Domain: my-store" \ -H "X-Customer-Session: <session-id>" \ -H "Content-Type: application/json" \ -d '{ "reason": "Reposición de stock.", "comment": "Entregar después de las 18:00." }'Empty