Resolve Customer Price
resolve_customer_priceWhat a customer pays for some lines on a day, and why, exactly as the order form and POST /api/v1/pricing/resolve price them: the customer's own lists, then its groups', then the tenant default list, each line at its own quantity and unit, then the best discount (none on a net list). Name the customer by customerId, customerEmail or exact customerName, or omit all three to price a sale with no customer. day is YYYY-MM-DD in the tenant's calendar; omit it for the tenant's today. Up to 500 lines, each an item (id or SKU), a quantity (default 1) and an optional uomId. Each line returns unitPrice, the discount, netUnitPrice and its source: the list and break it came from, or the item's own price. Read-only. Requires an operator (unpinned) credential and a User.
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": {
"lines": "<lines>"
},
"name": "resolve_customer_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | Optional day to price on, YYYY-MM-DD in the tenant's calendar; omit for today. | |
| lines | Yes | The lines to price, 1 to 500. | |
| customerId | No | Optional customer id (GUID). | |
| customerName | No | Optional customer name (exact, case-insensitive). | |
| customerEmail | No | Optional customer email (exact, case-insensitive). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | ||
| lines | No | ||
| customerId | No | ||
| customerName | No |