Delete Order
This endpoint deletes an order. Only draft or cancelled orders can be deleted.
DELETE
Path Parameters
The unique identifier of the order to delete
Query Parameters
Force deletion even if there are related records (requires admin permission)
Archive the order instead of deleting it (recommended for audit trail)
Response
The ID of the deleted order
Indicates whether the order was successfully deleted
Indicates if the order was archived instead of deleted
Summary of related records affected
Timestamp when the order was deleted
User who deleted the order
Error Responses
Error object containing details about what went wrong