201Successful Response
Schema: SuccessEnvelope_CreditStripeIssuingStatusResponse_
successbooleanmessagestringcodestringdataCreditStripeIssuingStatusResponse
/api/v1/credit/cards/stripe-issuing/setupSubmits missing Stripe Issuing business_profile fields (annual_revenue, estimated_worker_count), records settings.card_issuing.tos_acceptance, requests the card_issuing capability, subscribes /api/v1/webhooks/stripe to all issuing_* events, and optionally creates a default Cardholder (ich_...) on an owned credit program. Live business operator action (an API token receives 403); sandbox businesses are refused before Stripe calls. Defaults to the business connection. Platform access and platform webhook changes require a signed-in superuser.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: CreditStripeIssuingSetupRequest
stripe_account_idstringOwned Stripe account ID (acct_...); defaults to the business's canonical Stripe connection. Other accounts require Stripe metadata proving business and credit-line ownership. platform, or fallback when no business connection exists, requires a signed-in platform superuser; API tokens cannot use it.
annual_revenue_centsintegerPreceding fiscal year gross annual revenue in cents (business_profile.annual_revenue.amount).
annual_revenue_currencystringCurrency code for annual_revenue_cents (business_profile.annual_revenue.currency).
fiscal_year_endstringFiscal year end date (YYYY-MM-DD) for business_profile.annual_revenue.fiscal_year_end; omitted from the Stripe update when not provided.
estimated_worker_countintegerEstimated worker count (business_profile.estimated_worker_count).
accept_tosbooleanRecord acceptance of the Stripe Issuing terms of service (settings.card_issuing.tos_acceptance).
tos_ipstringIP address to record for Issuing ToS acceptance; defaults to the caller's request IP.
request_card_issuingbooleanRequest the card_issuing capability on the Stripe account.
configure_webhooksbooleanSubscribe the platform's enabled /api/v1/webhooks/stripe endpoints to Issuing events. Applied only for signed-in platform superusers; skipped for ordinary business operators.
create_default_cardholderbooleanCreate a default company Cardholder (ich_...) and bind it to program_id.
program_idstringOwned credit program ID to store default_cardholder_id on; required when create_default_cardholder is true. Any supplied program is checked for business ownership before Stripe mutations.
cardholder_namestringDisplay name (up to 24 chars) for the default Stripe Cardholder.
billing_addressobjectBilling address (line1, city, state, postal_code, country) for the created Cardholder.
Schema: SuccessEnvelope_CreditStripeIssuingStatusResponse_
successbooleanmessagestringcodestringdataCreditStripeIssuingStatusResponseSchema: 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.