Replace the tax rules
Replaces the whole list, in the order they are tried. There is no id to patch one rule by: send every rule you want to keep. Turns the tax rules engine on for new invoices from now on, ahead of the older defaultTaxBps, even when sent empty.
apiKeyAuthorizationBearer <token>An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.
application/json- body
rules*array<>items <= 50Success
application/json- response
Success
data*array<>curl -X PUT "https://example.com/v1/account/tax/rules" \ -H "Content-Type: application/json" \ -d '{ "rules": [ { "components": [ { "name": "VAT", "rateBps": 2000 } ] } ] }'{ "data": [ { "country": "DE", "region": "Karnataka", "business": "required", "components": [ { "name": "VAT", "rateBps": 2000 } ], "reverseCharge": true } ]}Get the tax rules GET
Your own tax rules (issue #341): the first rule whose country, region and business all match a customer decides what a new invoice bills them. Rules are tried in this order. Empty is a valid, intentional configuration: every invoice carries no tax until you add one.
Apply a tax rules preset POST
A one-click starting point for the tax rules engine (issue #341), built from your home country and home state or region (`PATCH /account/billing`); set those first. Replaces the whole rule list. A starting point, not tax advice: check it with whoever handles your tax before relying on it.