Create tax code

POST /api/v1/tax/codes

Create a new tax code.

Operation ID: create_tax_code_api_v1_tax_codes_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

code string required

Tax code (e.g., 'TAXABLE', 'EXEMPT')

name string required

Display name

description string

Description

is_taxable boolean

Whether items are taxable

Responses

201 Successful Response

id string required

Tax code UUID

business_id string required

Business UUID

code string required

Tax code

name string required

Display name

description string

Description

is_taxable boolean required

Is taxable

is_active boolean required

Is active

created_at string · date-time required

Creation timestamp

updated_at string · date-time required

Last update timestamp

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

409 Conflict - Resource already exists

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object