201Successful Response
Schema: SuccessEnvelope_PrepareCheckoutResponse_
successbooleanmessagestringcodestringdataPrepareCheckoutResponse
/api/v1/onboarding/prepare-checkoutCollects plan and add-on selections, creates a Stripe Checkout session with a 30-day free trial. Business is NOT created until /complete is called. Fully Managed (dz-managed) and Firm Enterprise start with a free pilot and are refused with 400 VALIDATION_912.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: PrepareCheckoutRequest
account_typestringrequired'self-managed', 'dz-managed', 'advisory-firm', or 'personal'. 'dz-managed' (Fully Managed) starts with a free pilot and is refused here with VALIDATION_912.
business_namestringrequiredmailboxstringpersonal_plan_tierstringPersonal Finance plan tier when account_type is 'personal' ('personal_core' or 'personal_plus', defaults to 'personal_core').
monthly_income_target_centsintegerOptional monthly take-home income target in cents for personal finance workspaces.
default_currencystringDefault business currency. Supported out of the box: USD, CAD, AUD, EUR, GBP.
tax_year_end_monthintegerselected_addonsarray · stringOptional list of addon slugs to include on the Stripe Checkout. Capped at 50 entries.
trial_agreedbooleanrequiredUser has agreed to the 30-day free trial terms
billing_intervalstringBilling cadence for the subscription. 'year' resolves the discounted annual catalog prices; defaults to 'month'.
One of: month, year
hidden_nav_idsarray · stringOptional nav catalog ids to hide on initial workspace creation (e.g. 'workspace:inventory', 'books-section:Projects & Time').
nav_focus_presetstringOptional focus preset chosen during onboarding: essentials, services, ecommerce, saas_b2b, full, or custom.
nav_focus_summarystringOptional short description of the chosen workspace focus.
firm_namestringfirm_plan_tierstringGraduated firm plan tier (defaults to firm_starter). firm_enterprise starts with a free pilot and is refused here with VALIDATION_912.
einstringlogo_urlstringEither the S3 key returned by /onboarding/upload-url (onboarding/{user_id}/{uuid}.{ext}) or a public https URL.
addressstringnum_full_time_accountantsintegernum_part_time_accountantsintegercurrent_toolsarray · stringreferral_sourcestringSelf-reported acquisition channel: referral, accountant, search, social, ads, event, marketplace, other.
referred_by_emailstringEmail of whoever referred this user. Free text — not resolved against existing accounts.
utm_sourcestringutm_mediumstringutm_campaignstringutm_termstringutm_contentstringgclidstringfbclidstringli_fat_idstringmsclkidstringga_client_idstringreferral_codestringpromo_codestringlanding_pagestringreferrerstringsuccess_pathstringOptional path-only override (no host) to land on after Stripe Checkout. Defaults to /onboarding/complete.
cancel_pathstringOptional path-only override (no host) for cancelled checkout. Defaults to /welcome.
Schema: SuccessEnvelope_PrepareCheckoutResponse_
successbooleanmessagestringcodestringdataPrepareCheckoutResponseSchema: 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.