For AI agents: the complete documentation index is at https://webshop-docs.acmewebshop.com/llms.txt. Every page is also available as Markdown by appending index.md to its URL or by sending Accept: text/markdown.
Acme Webshop API
POST

/orders/{orderId}/cancel

Cancel an order

POST /orders/{orderId}/cancel

Cancels an order that has not shipped yet.

Parameters

Name In Type Required Description
orderId path string (uuid) yes Public ID of the order.

Responses

200 — Cancelled

Property Type Required Description
id string (uuid) yes Public ID of the order.
status OrderStatus yes
items OrderItem[] yes The ordered line items.
subtotal number (double) yes Sum of all line items in EUR.
shippingCost number (double) yes Shipping cost in EUR.
total number (double) yes Grand total in EUR — subtotal plus shipping.
createdAt string (date-time) yes When the order was placed.

409 — Order already shipped

Property Type Required Description
code string yes Stable, machine-readable error code — branch on this, not on the message.
message string yes Human-readable explanation, intended for logs and debugging.