PUT
/
api
/
v0
/
taxes
/
{id}
Update a tax
curl --request PUT \
  --url https://api.devdraft.ai/api/v0/taxes/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "name": "Updated Sales Tax",
  "description": "Updated description for retail sales tax",
  "percentage": 9.5,
  "active": false,
  "appIds": [
    "app_123e4567-e89b-12d3-a456-426614174000"
  ]
}'

Authorizations

x-client-secret
string
header
required

Your secret API key. Keep this secure and never expose it in client-side code.

Path Parameters

id
string<uuid>
required

Tax unique identifier (UUID)

Example:

"tax_123e4567-e89b-12d3-a456-426614174000"

Body

application/json

Tax update data - only include fields you want to update

The body is of type object.

Response

200

Successfully updated tax