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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | CSV text. Header row required. | |
| source | Yes | Where these prices came from, like csv: ferguson-2026-11.csv | |
| dry_run | No | Default true. When true, nothing is written. | |
| shop_id | Yes | ||
| create_missing | No | Add a service item for a named row that matches nothing. Default false. A supplier list never creates items. | |
| markup_percent | No | Supplier lists only. Price = unit cost times (1 + markup/100), rounded to the cent. Leave out unless the shop gave it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||