These endpoints return orders scoped strictly to the authenticated user. Authentication via a valid session cookie is required for both routes — unauthenticated requests are rejected withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ItsJhonAlex/Ecommerce/llms.txt
Use this file to discover all available pages before exploring further.
401. Orders created as guest checkouts (with userId: null) are not accessible through this API; only orders linked to an authenticated account are returned.
List orders
Returns all orders belonging to the authenticated user, sorted bycreatedAt descending (most recent first). Each order includes its line items and payment records.
requireSession middleware).
Response
All orders belonging to the authenticated user, ordered newest-first.
200 OK
401 Unauthorized
Get a single order
Returns one order by its UUID, but only if it belongs to the authenticated user. If the order exists but belongs to a different user, it returns404 — not 403 — to avoid leaking existence information.
The single-order response also includes statusHistory: a chronological audit trail of every status transition the order has undergone.
requireSession middleware).
Path parameters
The unique identifier of the order to retrieve. Only orders belonging to the authenticated user are returned — all others yield
404.Response
The matching order with items, payments, and full status history.
200 OK
| HTTP | Condition |
|---|---|
401 | No valid session cookie present. |
404 | Order does not exist, or belongs to a different user. |