POST
/
api
/
v0
/
taxes
Create a new tax
curl --request POST \
  --url https://api.devdraft.ai/api/v0/taxes \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "name": "Sales Tax",
  "description": "Standard sales tax for retail transactions",
  "percentage": 8.5,
  "active": true,
  "appIds": [
    "app_123e4567-e89b-12d3-a456-426614174000"
  ]
}'
{
  "id": "tax_123e4567-e89b-12d3-a456-426614174000",
  "name": "Sales Tax",
  "description": "Standard sales tax for retail transactions",
  "percentage": 8.5,
  "active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-client-secret
string
header
required

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

Body

application/json

Tax creation data

The body is of type object.

Response

201
application/json

Tax created successfully

The response is of type object.