Overview /
Stock & supply /
Load system quantities
Load system quantities
post
https://api.flactrum.com/v1/stock-counts/{count}/snapshot
Freezes the branch's current balances as the theoretical quantities. Counted values already entered are left alone, so this is safe to repeat.
| 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/snapshot' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": {
"lines": 1
},
"meta": {
"stock_count_id": "01m43mzkdkbkwyhs2hr4p08xv1"
}
}