Set price list entries
set_price_list_entriesUpserts up to 1,000 fixed prices on a price list for ERP or spreadsheet imports; each row replaces that product/variant/currency entry and the whole call fails if any row is invalid.
Instructions
Upsert up to 1000 fixed prices on a price list in one call (an ERP or spreadsheet import). Each row is one product (no variantKey) or one variant of a product with variants (variantKey required there), price in minor units of the row's currency (currency omitted = the default currency; an additional currency writes that currency's own row) with optional volume breaks and optional minQuantity / maxQuantity order bounds; a row replaces the whole entry already set for the same product/variant and currency, so bounds it had are cleared unless the row re-sends them (read them with get_price_list); every other entry stays. All or nothing: one invalid row refuses the whole call and the error names every bad row by index. Fixed prices override the list's percentOff. Never removes entries - use remove_price_list_entries for that.
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": {
"priceListId": "<priceListId>",
"entries": "<entries>"
},
"name": "set_price_list_entries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | Up to 1000 fixed prices | |
| priceListId | Yes | The price list's id (from list_price_lists) |