Tax Rates#

Tax Rates define the tax percentage to apply to invoice line items. You can create multiple tax rates for different jurisdictions and tax types.

The Tax Rate object#

AttributeTypeDescription
idstringUnique identifier with txr_ prefix
objectstringAlways "tax_rate"
display_namestringDisplay name for the tax rate
descriptionstringDescription
percentagenumberTax percentage (e.g., 19.0 for 19%)
inclusivebooleanWhether tax is included in the price
jurisdictionstringTax jurisdiction (e.g., DE, GB)
tax_typeenumvat, sales_tax, gst, other
activebooleanWhether the tax rate is active
metadatahashKey-value pairs
createdtimestampTime at which the object was created
{
  "id": "txr_vat_de",
  "object": "tax_rate",
  "display_name": "VAT",
  "description": "German Value Added Tax",
  "percentage": 19.0,
  "inclusive": false,
  "jurisdiction": "DE",
  "tax_type": "vat",
  "active": true,
  "created": 1706140800
}

Create a Tax Rate#

POST /v1/tax_rates

curl https://api.casapay.com/v1/tax_rates \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc" \
  -H "Content-Type: application/json" \
  -d '{
    "display_name": "VAT",
    "percentage": 19.0,
    "inclusive": false,
    "jurisdiction": "DE",
    "tax_type": "vat"
  }'

Retrieve, Update, List#

GET /v1/tax_rates/:id

POST /v1/tax_rates/:id

GET /v1/tax_rates