Deletes a purchase.
v1/purchases/delete.php
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| purchase_id | int | Yes | Purchase ID |
Deletion cannot be undone. Material prices and product costs updated by the purchase are not reverted to their previous values.
Example request
{
"purchase_id": 29645
}
Example response
{
"success": true
}
Errors
| Error | Reason |
|---|---|
| No purchase_id in input | purchase_id is missing |
| Purchase not found or access denied | Purchase not found or already deleted |