Sales tax
Sales tax rates.
Paths are relative to https://evenbooks.org/api/v1. How keys, errors, paging and versions work is in the guide; the whole reference is also an OpenAPI 3.1 document.
Administrator key marks endpoints that need a key with the admin role, Write access those a read-only key can’t call, and Idempotent those that accept an idempotency key.
List sales tax rates
/tax-ratesBy name. Archived rates are left out unless includeInactive=true. withUsage=true adds usage: how many active items default to each rate and how many issued, unpaid invoices carry it.
Parameters
includeInactiveboolean · QueryBooleanquerywithUsageboolean · QueryBooleanquery
Response 200
array of TaxRateDto
Errors 400 · 401 · 403 · 404 · 409 · 429
Create a sales tax rate
/tax-ratesAdministrators only. rate is a fraction (0.0825 for 8.25%). Tax charged at this rate posts to the Sales Tax Payable account (liabilityAccountId).
Request body
CreateTaxRateInput
namestringrequiredratestringrequiredagencystring or null
Response 200
TaxRateDto (fields under Schemas)
Errors 400 · 401 · 403 · 404 · 409 · 429
Change a sales tax rate
/tax-rates/{id}Administrators only. Omitted fields stay as they are; isActive: false archives the rate. Issued invoices keep the rate they were issued with. Needs version from the last read (409 version_conflict otherwise).
Parameters
idstring (uuid)path · required
Request body
UpdateTaxRateInput
versionintegerrequirednamestringratestringagencystring or nullisActiveboolean
Response 200
TaxRateDto (fields under Schemas)
Errors 400 · 401 · 403 · 404 · 409 · 429
Schemas
The types these endpoints take or return, by name. Type names above link here.
QueryBoolean
boolean
TaxRateDto
idstringnamestringratestringagencystring or nullliabilityAccountIdstringisActivebooleanversionintegerusageobjectoptionalShow 2 fields
itemsintegeropenInvoicesinteger