Append Item-Priced Rows
append_item_priced_rowsAppend rows to a DRAFT price book that prices by ITEM rather than by spec — the plain per-SKU list a supplier sends as a one-page PDF or CSV (their SKU, a description, a unit price, sometimes a case quantity). Max 500 rows per call, and re-sending a chunk OVERWRITES its rows rather than failing, so an interrupted import resumes by re-sending. Each supplier SKU is matched to an internal item as the rows are written — first against purchase SKUs recorded for this book's supplier, then the tenant's own item SKU, then UPC — and the response reports which SKUs found nothing, or matched several items, so you can resolve them without another call. Rows that never match price nothing until they are linked to an item. A chunk is validated against the book as it stands when the write reaches it, so if another caller published the book while your chunk was in flight you get a VALIDATION_ERROR saying so rather than rows landing in a live book — stop appending and resolve remaining rows with link_price_book_row_to_item. Use append_price_book_breaks instead for a book keyed on spec attributes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bookId": "<bookId>",
"rows": "<rows>"
},
"name": "append_item_priced_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Rows to add (max 500): supplierSku (required, exactly as the list prints it), minimumQuantity (0 for a flat price), unitCost, setupCost, isActive. Pass itemId only to override matching with an item you have already identified. | |
| bookId | Yes | The DRAFT price book id (GUID). Must have been created to price by item. | |
| expectedTotalRows | No | Optional total rows expected in the finished list. Supply it on every chunk to receive remainingRows, progressPercent, and an exact next-tool recommendation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| added | No | ||
| bookId | No | ||
| matched | No | ||
| updated | No | ||
| totalRows | No | ||
| unmatched | No | ||
| nextAction | No | ||
| remainingRows | No | ||
| unmatchedSkus | No | ||
| maxRowsPerChunk | No | ||
| progressPercent | No | ||
| processedInChunk | No | ||
| expectedTotalRows | No | ||
| recommendedNextTool | No |