Domain Model
Tax Agency
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| name | string | Yes | — | Name |
| code | string | No | — | Code |
| jurisdictionType | enum(state, county, city, special_district) | Yes | — | Jurisdiction type |
| rate | number | Yes | — | Rate |
| description | string | No | — | Description |
| isActive | boolean | Yes | — | Is active |
| taxableCategories | string[] | Yes | — | Taxable categories |
| workspaceId | string | Yes | — | ID of the associated workspace |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | Yes | — | Name |
| code | string | No | — | Code |
| jurisdictionType | enum(state, county, city, special_district) | Yes | — | Jurisdiction type |
| rate | number | Yes | — | Rate |
| description | string | No | — | Description |
| isActive | boolean | Yes | true | Is active |
| taxableCategories | string[] | Yes | ["material","subcontract","other"] | Taxable categories |
| workspaceId | string | No | — | ID of the associated workspace |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | No | — | Name |
| code | string | No | — | Code |
| jurisdictionType | enum(state, county, city, special_district) | No | — | Jurisdiction type |
| rate | number | No | — | Rate |
| description | string | No | — | Description |
| isActive | boolean | No | true | Is active |
| taxableCategories | string[] | No | ["material","subcontract","other"] | Taxable categories |