Overview /
Stock & supply /
Apply a stock count
Apply a stock count
post
https://api.flactrum.com/v1/stock-counts/{count}/apply
Writes the counted quantities into branch stock, producing a movement for every difference, and closes the count. Lines with no counted value are skipped — an uncounted item does not mean "found zero". This cannot be undone.
| Required scope | stock_counts.write |
| Success status | 200 |
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 POST 'https://api.flactrum.com/v1/stock-counts/01m43mzkdkbkwyhs2hr4p08xv1/apply' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": {
"applied": 1,
"changed": 1
},
"meta": {
"stock_count_id": "01m43mzkdkbkwyhs2hr4p08xv1",
"status": "completed"
}
}