stock.list

Tracked materials with the count on hand and low point. low_only lists only those at or below their low point (a reorder list).

WhoAgents can call this
RESTGET /v1/stock
MCP toolstock_list
Writesno
AreaShop

When to use it

Tracked materials with the count on hand and low point. low_only lists only those at or below their low point (a reorder list).

What to tell the owner

Tell them what you found in plain words. Don't read back raw fields.

Input

FieldTypeRequired
shop_idstring (uuid)yes
low_onlybooleanno
include_archivedbooleanno

Example

GET https://doingwork.work/v1/stock?shop_id=00000000-0000-4000-8000-000000000000

Output

FieldTypeAlways there
itemsarrayyes
items[].pricebook_item_idstring (uuid)yes
items[].shop_idstring (uuid)yes
items[].namestringyes
items[].unitstringyes
items[].on_handnumberyes
items[].low_at['number', 'null']yes
items[].lowbooleanyes
items[].archivedbooleanyes
items[].updated_by['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')']yes
items[].updated_atstring (date-time)yes
low_countintegeryes
{
  "items": [
    {
      "pricebook_item_id": "00000000-0000-4000-8000-000000000000",
      "shop_id": "00000000-0000-4000-8000-000000000000",
      "name": "Ruiz Plumbing",
      "unit": "...",
      "on_hand": "...",
      "low_at": "...",
      "low": true,
      "archived": true,
      "updated_by": "00000000-0000-4000-8000-000000000000",
      "updated_at": "..."
    }
  ],
  "low_count": 1
}

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.