Remove an Order: /orders/{order_id}
Purpose
This endpoint permanently delete a specific order from the system using its unique identifier. Once deleted, the order and all its associated details will be removed and cannot be restored.
Use Case
The endpoint is used in scenarios where an order needs to be permanently removed from the system. This might be necessary if the order was created by mistake, is a duplicate, or part of a test run. For instance, during QA testing or system resets, test orders may be deleted to maintain a clean and accurate dataset. This endpoint ensures that no residual data remains for deleted orders.
Path Parameters
Parameter | Type | Description |
---|---|---|
order_id | String | Unique identifier of the order to delete. |
Query Parameters
No query parameters required for this endpoint.
Request Body
No request body is required for this endpoint.
Response Description
This endpoint does not return a response body. Upon successful execution, the order is deleted and an HTTP 204 No Content status code is returned.