stock.moves

Stock history for one tracked material, newest first: every count, receipt, use, return, loss and adjustment with who and when.

WhoAgents can call this
RESTGET /v1/stock/moves
MCP toolstock_moves
Writesno
AreaShop

When to use it

Stock history for one tracked material, newest first: every count, receipt, use, return, loss and adjustment with who and when.

What to tell the owner

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

Input

FieldTypeRequired
pricebook_item_idstring (uuid)yes
limitintegerno

Example

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

Output

FieldTypeAlways there
itemobjectyes
item.pricebook_item_idstring (uuid)yes
item.shop_idstring (uuid)yes
item.namestringyes
item.unitstringyes
item.on_handnumberyes
item.low_at['number', 'null']yes
item.lowbooleanyes
item.archivedbooleanyes
item.updated_by['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')']yes
item.updated_atstring (date-time)yes
movesarrayyes
moves[].move_idstring (uuid)yes
moves[].pricebook_item_idstring (uuid)yes
moves[].kindstringyes
moves[].deltanumberyes
moves[].on_hand_afternumberyes
moves[].job_id['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')']yes
moves[].note['string', 'null']yes
moves[].created_by['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')']yes
moves[].created_by_name['string', 'null']yes
moves[].created_atstring (date-time)yes
{
  "item": {
    "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": "..."
  },
  "moves": [
    {
      "move_id": "00000000-0000-4000-8000-000000000000",
      "pricebook_item_id": "00000000-0000-4000-8000-000000000000",
      "kind": "...",
      "delta": "...",
      "on_hand_after": "...",
      "job_id": "00000000-0000-4000-8000-000000000000",
      "note": "...",
      "created_by": "00000000-0000-4000-8000-000000000000",
      "created_by_name": "...",
      "created_at": "..."
    }
  ]
}

Errors

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