The Get Order endpoint fetches a single order record by its unique identifier. The response includes a fully populated order object: theDocumentation 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.
store_id and user_id fields are resolved to their respective documents, giving you store details and the user’s email and display_name alongside the order data.
This endpoint requires a valid user JWT. Users can access their own orders. Pass the token 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 to retrieve.
Response fields
200 OK
Human-readable confirmation. Value:
"Order found".The requested order document.
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. |