Deletes a sale.
v1/orders/delete.php
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| order_id | int | Yes | Sale ID |
Deletion cannot be undone. To keep the sale in history but remove its effect on stock, move it to the Canceled status with v1/orders/update_status.
Example request
{
"order_id": 43727
}
Example response
{
"success": true
}
Errors
| Error | Reason |
|---|---|
| No order_id in input | order_id is missing |
| Order not found or access denied | Sale not found or already deleted |