Skip to main content
PUT
/
admin
/
taxes
/
{tax_id}
Update Tax
curl --request PUT \
  --url https://api.decodahealth.com/admin/taxes/{tax_id} \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "name": "<string>",
  "percentage": 50
}
'
{
  "id": "<string>",
  "name": "<string>",
  "percentage": 123,
  "location_id": "<string>"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

tax_id
string
required

Body

application/json

Schema for updating an existing tax.

name
string | null

Name of the tax

percentage
number | null

Tax percentage (e.g., 8.25 for 8.25%)

Required range: 0 <= x <= 100

Response

Successful Response

Detailed tax information.

id
string
required

Unique identifier for the tax

name
string
required

Name of the tax (e.g., 'Sales Tax', 'VAT')

percentage
number
required

Tax percentage (e.g., 8.25 for 8.25%)

location_id
string
required

Location this tax applies to