Seed default tax codes

POST /api/v1/tax/codes/seed-defaults

Seed default tax codes for the business (if none exist).

Operation ID: seed_default_codes_api_v1_tax_codes_seed_defaults_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.

Responses

200 Successful Response

items array · TaxCodeResponse requiredTaxCodeResponse

List of items

9 fields
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

total integer

Total number of items (null when not calculated for performance)

limit integer

Pagination limit

next_cursor string

Cursor for next page

prev_cursor string

Cursor for previous page

has_next boolean required

Whether there are more items

has_prev boolean required

Whether there are previous items

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

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