Create Tax

Create a new tax rate that can be applied to transactions.

Endpoint

POST /api/taxes

Request Body

ParameterTypeRequiredDescription
namestringYesTax name
ratenumberYesTax rate (as percentage)
typestringYesTax type (VAT, GST, sales_tax)
countrystringNoCountry code
regionstringNoState/region

Response

Returns the created tax object.
{
  "id": "tax_123456789",
  "name": "VAT 20%",
  "rate": 20.0,
  "type": "VAT",
  "country": "GB",
  "region": null,
  "created_at": "2023-01-01T00:00:00Z"
}