List tax rates
Lists the taxes your account charges, such as a sales tax or VAT. Deleted tax rates are left out.
This is where you turn a tax name into the id a pricing table row
takes in tax_rate_ids.
Reading tax rates takes the same access as in Bonsai: company admin, or permission to create invoices.
Query Parameters
- Type: integerpage[number]min:1
Page to return, starting at 1.
- Type: integerpage[size]min:1max:100
Records per page. Defaults to 25; anything above 100 is reduced to 100.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/public-api/v1/tax_rates
curl https://app.hellobonsai.com/public-api/v1/tax_rates \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"data": [
{
"id": 12,
"name": "Sales tax",
"rate": "8.25",
"default": false
}
],
"meta": {
"request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e",
"pagination": {
"page": 1,
"page_size": 25,
"has_more": true
}
}
}