Customer Ordering API
REST contract of the customer-ordering bounded context of the retail network, derived from the retail-network model (warehouse-docs network/model/model.yaml, contexts[customer-ordering].rest) and adjusted by the final cross-context decisions (contracts-delta E7, E9, E11 and Gap Register G7, G10, G12, G25, and the storefront extension NG1-NG3: saved addresses, checkout by saved address, shopper by e-mail and the order history). It turns a shopper's cart into a customer order: checkout promises and confirms every shipment group at delivery-promise before the order is placed, the order carries the ship-to address (synthetic PII, held only here), the tracking view is fed by events, and a customer cancellation is a request that order-sourcing decides. One restricted in-organization route, GET /orders/{orderId}/ship-to, is called only by shipping-and-tracking to print a label and is the only route that returns the address. There is no authentication anywhere in the network; "restricted" means the route is not exposed through the storefront edge. Errors are RFC 9457 problem details (application/problem+json) whose type is /problems/<slug>. The shared problem types are not-found (404), illegal-transition (409), concurrent-update (409) and validation-failed (422). A POST or PUT retried under the same Idempotency-Key is answered from the store only when its first answer is final for the request; see the Idempotency-Key parameter for the refusals that are not stored. Optional fields are omitted when absent, never null. The one exception is the read-only analytics reports (tag reports, ADR 0018): served by cmd/co-reports on its own port (per-path server) from the separate analytical database, snake_case, with explicit nulls where a figure has no defined value.
Contact customer-ordering maintainers: