Cancel one of my orders before it ships
The authenticated customer cancels their OWN order (same ownership rule as GET /orders/{orderId}: another customer's order is a 404). The order becomes cancelled with the chosen reason, a « Client » event is added to its timeline, the customer receives the cancellation e-mail, reserved stock is released and every vendor on the order is notified.
Allowed only from pending, confirmed or processing AND while no vendor's part has shipped — otherwise 409 ORDER_NOT_CANCELLABLE with the current status. An order with any recorded payment or refund is refused with 409 ORDER_PAID_CONTACT_SUPPORT (money is handled by the marketplace). Already cancelled → 200 with the current order (idempotent).
Auth: Bearer JWT required; allowed realms: customer.
Authorizations
Jeton client obtenu par POST /auth/login (ou /auth/register), renouvelé par POST /auth/refresh.
Parameters
Path Parameters
Request Body
Responses
Order cancelled (or already cancelled) — the current order detail.