Overview /
Stock & supply /
Delete a receipt
Delete a receipt
delete
https://api.flactrum.com/v1/goods-receipts/{receipt}
A posted receipt cannot be deleted.
| Required scope | goods_receipts.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| receipt * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/goods-receipts/01m43mzmh1gseynqngwqbxj1ag' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/goods-receipts/01m43mzmdbk7rjw6y16107r6a9' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "A posted receipt cannot be deleted; it is the record behind stock movements."
}
}