Add rate to group
hub_add_tax_rate_to_groupAdd an EXISTING rate to a tax group, or change that rate’s compounding flag within the group. Both ids come from get_taxes. This shares the rate — it does not copy it. The group starts charging the rate’s existing per-outlet percentages, and a later edit to that rate changes this group too. Use create_tax_rate instead when the rate does not exist yet. The rate is appended last in the charging order; use update_tax_group with rateIdsInOrder to move it. CONFIRM WITH THE MERCHANT — this immediately adds tax to every product in the group. Sales already rung up are NOT recalculated — this only affects sales from now on.
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": {
"taxGroupId": "<taxGroupId>",
"taxRateId": "<taxRateId>"
},
"name": "hub_add_tax_rate_to_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taxRateId | Yes | Tax rate id from get_taxes — an existing rate, shared not copied | |
| taxGroupId | Yes | Tax group id from get_taxes | |
| compounding | No | Charge this rate on the running total including the rates above it. Default false |