Admin APIInventory
Get a stock count
The sheet and its lines (up to 2000, by name), optionally only the
variances, only the uncounted lines, or those matching a search. To find
the line for a scanned barcode, pass it as search.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
store_id*string
Store id
Format
uuidcount_id*string
Stock count id
Format
uuidQuery Parameters
filter?string
Which lines of a count sheet to return.
Value in
"all" | "variance" | "uncounted"search?string
Matches SKU, barcode or name.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/stock-counts/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"counted_count": 0,
"created_at": "2019-08-24T14:15:22Z",
"created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
"created_by_name": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"item_count": 0,
"location_id": "46910cc3-ab41-4b80-b4a7-94dab9f1b795",
"location_name": "string",
"name": "string",
"note": "string",
"posted_at": "2019-08-24T14:15:22Z",
"posted_by": "55350649-6a2e-43fa-bf14-794387254dc5",
"status": "draft",
"store_id": "7fe87115-950c-4ae8-bd7e-970406bc9ac0",
"variance_count": 0,
"items": [
{
"barcode": "string",
"counted_qty": 0,
"current_qty": 0,
"expected_qty": 0,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"item_id": "4d8cd62e-a579-4dae-af8c-3172f96f8f7c",
"name": "string",
"sku": "string"
}
]
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}