Read stock in an Area

GET /areas/{area}/stock

Read the Items and their stock in one Area. This is the Area's operational Item list, not the account-wide Stock report. Both routes below require Locations:READ_STOCK permission for the Area.

List stock entries

GET /areas/{area}/stock returns total matching Items and an entries array. Each entry has an item and may have stock with a quantity queue and summary. An entry without a stock record can have missing: true; do not treat that as a counted quantity of zero.

Optional query parameters:

  • search_term: Search for matching Items.
  • status: ACTIVE, INACTIVE or PENDING_DELETE.
  • supplier: Numeric Supplier ID.
  • category: Product group ID.
  • scope: Omit it for Items in the Area; use account for account Items or favorites for the Area's favourites. Items outside the Area may have missing: true.
  • list: Inspection list ID or none.
  • offset, limit: Page offset and size; defaults are 0 and 25.

A 202 response with empty entries, total: 0 and cache_status means the Item index is being prepared. Retry after a short delay; it does not mean the Area has no Items.

Look up specific Items

POST /areas/{area}/item-stock

Despite its method, this is a read-only lookup. Send { "item_ids": ["ITEM_ID"] } as JSON. The response contains entries in the requested order, including missing: true for an Item without a stock record in that Area. It does not create Items or change stock.

curl 'https://app.yourbarmate.com/api/areas/AREA_ID/item-stock' \
  --request POST \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'authorization: token YOUR_API_TOKEN' \
  --data '{"item_ids":["ITEM_ID"]}'

Status codes

  • 200 on success, including an empty result.
  • 202 while the Item index is being prepared for the list request.
  • 400 for invalid query parameters or an invalid lookup body.
  • 403 if the token lacks stock-read permission for the Area.