List tax rates
GET
/api/v1/tax-rates
const url = 'https://digize.com/api/v1/tax-rates';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/tax-rates \ --header 'x-api-key: <x-api-key>'The workspace’s tax rates, active first, each with its rate in basis points, region and how many lines use it. Quotes, invoices and the store charge them.
Needs the crm:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
rows
required
Array<object>
object
id
required
string
name
required
string
rate
required
Basis points: 825 is 8.25%.
number
label
required
“8.25%”.
string
region
required
Where it applies: “US”, “US-TX”, or null for anywhere.
string | null
isDefault
required
Whether new lines start with it.
boolean
archived
required
boolean
uses
required
Lines that use it.
number
total
required
number
Example generated
{ "rows": [ { "id": "example", "name": "example", "rate": 1, "label": "example", "region": "example", "isDefault": true, "archived": true, "uses": 1 } ], "total": 1}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}