Open a credit line

POST/api/v1/credit/lines

Open a line on approval. Terms not supplied inherit the program's defaults.

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

program_idstring

Program to open under. Falls back to the default.

external_line_idstring
external_merchant_idstring
credit_limit_centsintegerrequired

Approved card spend limit.

term_daysinteger

30, 60, or 90. Defaults to the program's first.

rate_bpsinteger
disbursement_fee_bpsinteger
cycle_anchor_dayinteger
start_datestring · date

Shown on the dashboard metadata row (§4.2). The exact definition — approval, countersign, or first draw — is a partner input still open.

linked_account_namestring
linked_account_maskstring
plaid_account_idstring
autopay_enabledboolean

Responses

201Successful Response

successboolean
messagestring
codestring
dataCreditLineResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject