Overview /
Stock & supply /
Delete a stock count
Delete a stock count
delete
https://api.flactrum.com/v1/stock-counts/{count}
An applied count cannot be deleted; it is the record behind the movements it produced.
| Required scope | stock_counts.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| count * | 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/stock-counts/01m43mzksj2j7pbm7yjbb4c1am' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/stock-counts/01m43mzkj3mdsf0jw1qejvby28' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "An applied count cannot be deleted; it is the record behind past stock movements."
}
}