201Successful Response
Schema: SuccessEnvelope_CoaGenerateResponse_
successbooleanmessagestringcodestringdataCoaGenerateResponse
/api/v1/businesses/generate-coaUses AI to generate a complete chart of accounts template based on a business description.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: CoaGenerateRequest
business_descriptionstringrequiredDescription of the business including industry, size, and accounting needs. E.g. 'Small e-commerce business selling handmade jewelry, accrual basis, US-based'
accounting_basisstringPreferred accounting basis. If omitted, the AI will choose based on business description.
currencystringPrimary currency (USD, CAD, AUD, EUR, or GBP).
include_inventorybooleanWhether to include inventory-related accounts (COGS, inventory assets, etc.).
Schema: SuccessEnvelope_CoaGenerateResponse_
successbooleanmessagestringcodestringdataCoaGenerateResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject