201Successful Response
Schema: SuccessEnvelope_CreditLineResponse_
successbooleanmessagestringcodestringdataCreditLineResponse
/api/v1/credit/linesOpen a line on approval. Terms not supplied inherit the program's defaults. Idempotent on external_line_id: a repeat returns the line already open under it, as it stands, and writes nothing. Send card to issue the merchant's card with the line on a program whose cards DayZero issues: the response carries card, or card_issue_error when the issuer refused it (the line is open either way).
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: CreditLineCreateRequest
program_idstringProgram to open under. Falls back to the default.
external_line_idstringYour id for the line, unique within your business. An open that repeats one already in use returns that line as it stands and writes nothing, so a timed-out open can be sent again.
external_merchant_idstringmerchant_business_idstringThe borrower's own DayZero business, when it keeps its books here. An underwriting assessment for the line measures this business. Must be a business the caller can access.
credit_limit_centsintegerrequiredApproved card spend limit.
term_daysinteger30, 45, 60, or 90 (D-03). Applies to each transaction from its own posting date. Defaults to the program's first option.
rate_bpsintegerdisbursement_fee_bpsinteger0-500 bps (0%-5%). Inherits the program default when omitted.
cycle_anchor_dayintegerstart_datestring · dateThe signing date: the effective date named in the merchant's Credit Agreement. Not the approval date, the countersign date, or the first draw (D-18). Shown on the dashboard metadata row.
linked_account_namestringDisplay name of the merchant's repayment account.
linked_account_maskstringLast digits of the repayment account.
plaid_account_idstringThe merchant's Plaid account the repayments leave from; bank-matched settlement watches it and AutoPay needs it.
autopay_enabledbooleanEmit credit.autopay.due once for each loan when it falls due, or on the next sweep for a loan already past due (the partner debits).
merchant_emailstringWhere statements and borrower notices go. None sends nothing.
merchant_legal_namestringThe merchant's legal entity name, as printed on disclosures. Required at open when the program's compliance.enabled is true.
merchant_statestringTwo-letter US state, DC or territory code of the merchant. Selects the disclosure template. Required at open when the program's compliance.enabled is true.
merchant_addressMerchantAddressThe merchant's registered address. Required at open when the program's compliance.enabled is true.
cardLineOpenCardRequestIssue a card with the line. Only under a program with card_management: dayzero and issuing_enabled: true (else 400 CREDIT_551, and no line is opened). Once the line is open DayZero issues the card as POST /credit/cards would, with the program's MCC allow list; the response carries card, or card_issue_error when the issuer refused it, in which case the line stays open and the card can be issued later with POST /credit/cards.
Schema: SuccessEnvelope_CreditLineResponse_
successbooleanmessagestringcodestringdataCreditLineResponseSchema: 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.