The Delete Order endpoint permanently removes an order document and all of its associatedDocumentation 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 records in a single atomic operation. Because the response carries no body, the success condition is indicated solely by the 204 No Content status code. This action cannot be undone.
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 to delete.
Response
204 No Content
The order and all related order items were successfully deleted. The response body is empty.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. |
Example
204 with no body.