pricebook.stalePrices

Price book items whose current price was set more than the shop's stale window ago (owner or office, needs see_prices). The window defaults to 365 days. An item with no dated price is stale. Archived items are left out.

WhoAgents can call this
RESTGET /v1/pricebook/prices/stale
MCP toolpricebook_stalePrices
Writesno
AreaQuotes (unlimited)

When to use it

Price book items whose current price was set more than the shop's stale window ago (owner or office, needs see_prices). The window defaults to 365 days.

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
older_than_daysintegerno

Example

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

Output

FieldTypeAlways there
shop_idstring (uuid)yes
stale_daysintegeryes
todaystring (date)yes
itemsarrayyes
items[].item_idstring (uuid)yes
items[].namestringyes
items[].sku['string', 'null']yes
items[].price_minorintegeryes
items[].effective_date['string', 'null', ' ', '(', 'd', 'a', 't', 'e', ')']yes
items[].source['string', 'null']yes
items[].age_days['integer', 'null']yes
items[].stalebooleanyes
{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "stale_days": 1,
  "today": "...",
  "items": [
    {
      "item_id": "00000000-0000-4000-8000-000000000000",
      "name": "Ruiz Plumbing",
      "sku": "...",
      "price_minor": 50000,
      "effective_date": "...",
      "source": "...",
      "age_days": "...",
      "stale": true
    }
  ]
}

Errors

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