201Successful Response
Schema: SuccessEnvelope_BusinessResponse_
successbooleanmessagestringcodestringdataBusinessResponse
/api/v1/businessesCreate a new business entity with optional integrations.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: BusinessCreateRequest
accounting_basisstringDefault accounting basis financial reports open on: 'accrual' or 'cash'. Omit for accrual.
namestringrequiredBusiness display name.
default_currencystringDefault currency for the business (USD, CAD, AUD, EUR, or GBP).
tax_year_end_monthintegerMonth when the tax/fiscal year ends (1-12). Default 12 = calendar year.
mailboxstringUnique email prefix for bill forwarding. Auto-generated from the business name when omitted.
user_idstringUUID of the user who will own this business. Optional for admin-created businesses.
coa_template_idstringPre-built chart of accounts template ID. Mutually exclusive with custom_coa_template.
custom_coa_templateCustomCoaTemplateCustom chart of accounts definition. Mutually exclusive with coa_template_id.
entries_startstringDate from which to start importing transactions (YYYY-MM-DD).
firm_idstringAdvisory firm UUID to link this business to.
stripe_account_idstringStripe Connect account ID.
stripe_subscription_idstringStripe subscription ID for billing.
stripe_customer_idstringStripe customer ID (e.g., cus_xxx).
subscription_itemsobjectStripe subscription items/products linked to this business.
accounting_engine_typestringAccounting engine: 'local' (DayZero, default), or null (inherit from firm).
trial_ends_atstring · date-timeUTC expiry of the free trial. Omit for the standard 30-day trial.
billing_statusstringInitial billing state (trialing, active, ...). Omit for trialing.
plan_tierstringPlan tier (free, self_directed, managed, firm_client, grandfathered).
active_addonsarray · stringPaid add-on slugs to enable from day one.
Schema: SuccessEnvelope_BusinessResponse_
successbooleanmessagestringcodestringdataBusinessResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.