Generate a COA template using AI

POST/api/v1/businesses/generate-coa

Uses AI to generate a complete chart of accounts template based on a business description.

Operation ID: generate_coa_template_api_v1_businesses_generate_coa_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

business_descriptionstringrequired

Description of the business including industry, size, and accounting needs. E.g. 'Small e-commerce business selling handmade jewelry, accrual basis, US-based'

accounting_basisstring

Preferred accounting basis. If omitted, the AI will choose based on business description.

currencystring

Primary currency (USD, CAD, AUD, EUR, or GBP).

include_inventoryboolean

Whether to include inventory-related accounts (COGS, inventory assets, etc.).

Responses

201Successful Response

successboolean
messagestring
codestring
dataCoaGenerateResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject