pricebook.importPrices

Import dated prices into the price book from CSV text (owner or office, needs see_prices, and see_costs when the file has a cost). Columns: sku or name, price, and optionally cost and effective_date (defaults to the shop's today). A supplier list (sku, description, unit cost) needs markup_percent from the shop, which turns unit cost into the price. Matches an existing item by sku (the task code), then by exact name. create_missing adds a service item when a named row matches nothing. dry_run defaults to true and writes nothing. A real run keeps every earlier price and sets the item's price only when the date is today or earlier.

WhoAgents can call this
RESTPOST /v1/pricebook/prices/import
MCP toolpricebook_importPrices
Writesyes, send an Idempotency-Key
AreaQuotes (unlimited)

When to use it

Import dated prices into the price book from CSV text (owner or office, needs see_prices, and see_costs when the file has a cost). Columns: sku or name, price, and optionally cost and effective_date (defaults to the shop's today).

What to tell the owner

Say what you did in plain words and what happens next.

Input

FieldTypeRequired
shop_idstring (uuid)yes
csvstringyes
sourcestringyes
markup_percentnumberno
create_missingbooleanno
dry_runbooleanno

Example

POST https://doingwork.work/v1/pricebook/prices/import
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "csv": "...",
  "source": "..."
}

Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.

Errors

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