Update a lending program

PATCH/api/v1/credit/programs/{program_id}

Supplying late_terms, early_payoff_terms, or underwriting_criteria is what settles the corresponding open decision: the guarded code paths stop raising once a rule body exists.

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

Parameters

Path

program_idstringrequired

Request body

display_namestring
statusProgramStatusEnum
lending_modelLendingModel
limit_min_centsinteger
limit_max_centsinteger
allowed_term_daysarray · integer
default_rate_bpsinteger
default_disbursement_fee_bpsinteger
allocation_orderAllocationOrder
loan_orderingLoanOrdering
interest_accrual_startInterestAccrualStart
minimum_payment_centsinteger
due_soon_daysinteger
gl_posting_enabledboolean
gl_funding_ledger_idstring
gl_cash_ledger_idstring
interest_cap_pct_of_principal_bpsinteger
card_managementstring
deferred_fee_recognitionboolean
email_statementsboolean
alert_slack_channelstring
alert_emailsarray · string
allowance_policyobject
interchange_sourcestring
interchange_bpsinteger
issuing_providerstring
statement_balance_modestring
allocation_scopestring
cycle_close_rulestring
cycle_anchor_dayinteger
excess_credit_dispositionstring
collections_policyobject
late_termsobject
early_payoff_termsobject
underwriting_criteriaarray · object
legal_lending_entitystring
statement_brandingobject
covenantsobject
event_delivery_modeEventDeliveryMode
issuing_enabledboolean
ramp_spend_program_idstring
allowed_mcc_codesarray · string
blocked_mcc_codesarray · string

Responses

200Successful Response

successboolean
messagestring
codestring
dataCreditProgramResponse

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.

401Unauthorized - Missing/invalid token or no access to this business

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.

403Forbidden - Insufficient permissions

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.

404Not Found - Resource does not exist

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.