AccountTax

Replace the tax rules

PUT
/v1/account/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.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Request Body

application/json
  1. body
rules*array<>
Itemsitems <= 50

Response Body

Success

application/json
  1. 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    }  ]}