The Get Order Items endpoint retrieves everyDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/floriansalvi/HEIG-VD_Ocha-api/llms.txt
Use this file to discover all available pages before exploring further.
OrderItem document associated with the specified order. Each item captures a snapshot of the product at the time the order was placed — including product_name, base_price_chf, any size-based extra_chf, and the computed final_price_chf. The product_id field is populated with the full product document.
This endpoint requires a valid user JWT passed in the
Authorization header.HTTP method and path
Request parameters
Headers
Bearer token for the authenticated user. Format:
Bearer <token>.Path
MongoDB ObjectId of the order whose items you want to retrieve.
Response fields
200 OK
Human-readable confirmation. Value:
"List of items in the order".Array of order item documents. Empty array if the order has no items.
Error codes
| Status | Meaning |
|---|---|
400 | The provided id is not a valid MongoDB ObjectId. |
401 | Missing or invalid JWT token. |
404 | No order exists with the given id. |
500 | Unexpected server error. |