Set company tax rounding
set_company_tax_roundingSet VAT rounding for net-price buyers of a company record to per_line, per_rate, or null to inherit the workspace default; applies only to new carts.
Instructions
Set how VAT is rounded for the net-price buyers of a company record: per_line or per_rate; null falls back to the workspace's companyTaxRounding (update_cart_config). Gross-price buyers and consumers are always rounded per_line. Applies to carts started after the change; existing carts and orders keep the method they were priced with. Refused for a record that is not a company (a model with the Company capability). Returns the record id with its priceDisplayMode and taxRoundingMethod.
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": {
"recordId": "<recordId>",
"method": "<method>"
},
"name": "set_company_tax_rounding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | per_line rounds VAT on each line, per_rate once per rate; null falls back to the workspace's companyTaxRounding | |
| recordId | Yes | The company record's id (a record of a model with the Company capability; a customer's company.id) |