Skip to content

Create Stripe Checkout session for onboarding

POST/api/v1/onboarding/prepare-checkout

Collects 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.

Operation ID: prepare_checkout·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

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_namestringrequired
mailboxstring
personal_plan_tierstring

Personal Finance plan tier when account_type is 'personal' ('personal_core' or 'personal_plus', defaults to 'personal_core').

monthly_income_target_centsinteger

Optional monthly take-home income target in cents for personal finance workspaces.

default_currencystring

Default business currency. Supported out of the box: USD, CAD, AUD, EUR, GBP.

tax_year_end_monthinteger
selected_addonsarray · string

Optional list of addon slugs to include on the Stripe Checkout. Capped at 50 entries.

trial_agreedbooleanrequired

User has agreed to the 30-day free trial terms

billing_intervalstring

Billing cadence for the subscription. 'year' resolves the discounted annual catalog prices; defaults to 'month'.

One of: month, year

hidden_nav_idsarray · string

Optional nav catalog ids to hide on initial workspace creation (e.g. 'workspace:inventory', 'books-section:Projects & Time').

nav_focus_presetstring

Optional focus preset chosen during onboarding: essentials, services, ecommerce, saas_b2b, full, or custom.

nav_focus_summarystring

Optional short description of the chosen workspace focus.

firm_namestring
firm_plan_tierstring

Graduated firm plan tier (defaults to firm_starter). firm_enterprise starts with a free pilot and is refused here with VALIDATION_912.

einstring
logo_urlstring

Either the S3 key returned by /onboarding/upload-url (onboarding/{user_id}/{uuid}.{ext}) or a public https URL.

addressstring
num_full_time_accountantsinteger
num_part_time_accountantsinteger
current_toolsarray · string
referral_sourcestring

Self-reported acquisition channel: referral, accountant, search, social, ads, event, marketplace, other.

referred_by_emailstring

Email of whoever referred this user. Free text — not resolved against existing accounts.

utm_sourcestring
utm_mediumstring
utm_campaignstring
utm_termstring
utm_contentstring
gclidstring
fbclidstring
li_fat_idstring
msclkidstring
ga_client_idstring
referral_codestring
promo_codestring
landing_pagestring
referrerstring
success_pathstring

Optional path-only override (no host) to land on after Stripe Checkout. Defaults to /onboarding/complete.

cancel_pathstring

Optional path-only override (no host) for cancelled checkout. Defaults to /welcome.

Responses

201Successful Response

successboolean
messagestring
codestring
dataPrepareCheckoutResponse

400Bad Request - Invalid input

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

409Conflict - Resource already exists or is in an incompatible state

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

422Validation Error

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

429Too Many Requests - Rate limit exceeded; back off and retry

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

503Service Unavailable

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.