201Successful Response
Schema: SuccessEnvelope_CreditStripeLineConnectResponse_
successbooleanmessagestringcodestringdataCreditStripeLineConnectResponse
/api/v1/credit/lines/{credit_line_id}/cards/stripe-issuing/connectCreates or updates a Stripe Custom connected account (card_issuing + transfers + optional funding_credit) for a merchant credit line, generates an account_onboarding link when return_url and refresh_url are supplied, and optionally activates a Stripe Issuing Credit CreditPolicy or records a FundingObligation repayment. Accounts must belong to the business and per-line accounts must match this line. Omitted accounts reuse an existing line account or create one idempotently. Onboarding URLs must use the configured app origin. Live business operator action (an API token receives 403); sandbox businesses are refused before Stripe calls.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
credit_line_idstringrequiredCredit line UUID to bind the Stripe Connect account to.
Schema: CreditStripeLineConnectRequest
stripe_account_idstringOwned connected Stripe account ID (acct_...). Per-line accounts require Stripe metadata matching this business and this line. Omit to reuse a verified existing line account, recover one after a failed save, or create a Custom account with a stable per-business/per-line idempotency key. Editable issuer_config alone is not ownership proof; platform is refused.
countrystringTwo-letter country code for a newly created connected account.
enable_funding_creditbooleanAlso request the funding_credit capability (Charge Card beta) on the connected account.
return_urlstringReturn URL for Stripe-hosted onboarding. Supply with refresh_url; both must use the configured product-app origin (scheme, host and port), without credentials or fragments. Validated before Stripe mutations.
refresh_urlstringRefresh URL for Stripe-hosted onboarding. Supply with return_url; both must use the configured product-app origin (scheme, host and port), without credentials or fragments. Validated before Stripe mutations.
activate_credit_policybooleanConfigure and activate the connected account's CreditPolicy (POST /v1/issuing/credit_policy).
credit_limit_centsintegerOverride credit limit in cents for CreditPolicy; defaults to the credit line's limit.
days_until_dueintegerDays until due after the credit period ends on the CreditPolicy.
funding_obligation_idstringOptional FundingObligation ID (ifo_...) to record a repayment against.
pay_amount_centsintegerRepayment amount in cents to record on funding_obligation_id (/pay).
Schema: SuccessEnvelope_CreditStripeLineConnectResponse_
successbooleanmessagestringcodestringdataCreditStripeLineConnectResponseSchema: 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.