Schedule a Tax Rate Change
Goal: a component's rate changes on a future date, and every document is priced with the rate in force on its own date.
You need: a component, from Split a Tax into Components. Rate history lives on components, so a tax that needs dated rates needs at least one component.
In the app
- Go to Settings > Taxes > Components and open the component.
- Click + Rate change under the rate. A row starting today appears; click its date to pick the day the new rate starts.
- Enter the new rate and click Save.
The rate above it shows when it stops applying ("Before 2027-01-01"). To undo a scheduled change before it starts, remove its row with × and save.
When you edit a saved document, its taxes keep the rates it was saved with. To price it at the rates for its date, click Recalculate taxes under the totals before saving.
With the API
Working in your own language? These samples use plain HTTP. For a typed client in TypeScript, Python, Go, Java or PHP, generate one from the OpenAPI spec.
1. Send the full rate history with the new entry
curl -X PUT $BASE/v1/taxes/components/<component_id> \
-H "$AUTH" -H "$PARTNER" -H "$CT" \
-d '{
"code": "US-CA:sf-transit:district",
"name": "San Francisco transit district",
"kind": "district",
"country_code": "US",
"region": "US-CA",
"rates": [
{ "rate": "1.25" },
{ "rate": "1.50", "effective_from": "2027-01-01" }
]
}'
Endpoint reference: PUT /v1/taxes/components/{id} →
ratesreplaces the stored history. Always send the opening rate and every change you want to keep.- A rate applies from its
effective_fromuntil the next entry. The opening rate (no date) covers everything before the first change. - One rate per date.
effective_fromisYYYY-MM-DD.
The response's rate is the rate in force today; rates is the history, opening rate first, then by date.
2. Nothing to do on the day
Documents are priced by document_issue_date, not by when the request arrives:
| Issue date | District | Tax total (with state 7.25 + county 0.25) |
|---|---|---|
| 2026-12-15 | 1.25% | 8.75% |
| 2027-01-05 | 1.50% | 9.00% |
Every tax using the component follows, and GET /v1/taxes/{id} returns today's combined rate.
What re-prices a saved document
A saved document keeps the rates it was saved with. It's priced again only when:
- its
document_issue_datechanges, - a tax is added to it, or
- the update sends
"recalculate_taxes": true.
Any other edit (description, due date, notes) leaves its tax untouched.
Pitfalls
- Sending only the new rate drops the opening rate and the request fails: exactly one entry must have no
effective_from. - Backdating a change (an
effective_fromin the past) affects documents created or re-priced from now on; documents already saved keep their rates. - Credit notes dated after a change should take the credited invoice's rates: see Credit an Invoice at Its Original Tax Rates.