Skip to content

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. Moving a live program to active from another status is refused (CREDIT_660) while a blocking launch check fails, unless the patch carries force_activate with a reason. Operator action: an API token receives 403.

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
underwriting_wait_daysinteger

Days the nightly sweep leaves a new underwriting assessment pending while the merchant's data lands.

auto_approve_defaultboolean

What an assessment request that omits auto_approve asks for: true opens the line automatically when the gate passes.

gl_posting_enabledboolean
gl_posting_reviewboolean

Hold each journal entry as a draft an operator posts.

gl_funding_ledger_idstring

Ledger credited at origination: an active asset or liability ledger of this business (CREDIT_910 otherwise). Point it at the Brex feed ledger so a card charge is booked once. Null is the default (Card Issuer Payable).

gl_cash_ledger_idstring

Ledger debited on repayment: an active asset ledger of this business (CREDIT_910 otherwise). Point it at the Payliance feed ledger so a collected debit is booked once. Null is the default (Cash).

interest_cap_pct_of_principal_bpsinteger

Ceiling on total interest per loan as a share of principal (2000 = 20%); null is uncapped. At the ceiling the loan's interest stops growing, statements bill no further interest, and the loan stays past_due. Reaches loans originated after the change only.

card_managementstring
deferred_fee_recognitionboolean
email_statementsboolean
marketplace_listedboolean

Offer the program on the capital marketplace. Only an active program may be listed (CREDIT_840 otherwise).

marketplace_blurbstring

What the marketplace card says about the offer; null clears it.

noticesCreditNoticeSettings
complianceCompliancePolicy

Compliance policy. Replaces the stored one whole; null clears it.

bank_settlement_matchingboolean
alert_slack_channelstring
alert_emailsarray · string
allowance_policyobject
borrowing_base_policyBorrowingBasePolicy

Replaces the whole policy; fields left out take their defaults.

interchange_sourcestring
interchange_bpsinteger
issuing_providerstring

Card issuer adapter: ramp, brex, stripe_issuing, lithic, external or mock.

custom_terms_enabledboolean

Allow custom payback terms (1-365 days) and limit envelopes ($100-$50,000,000) outside the default FRD range.

issuer_configobject

Provider-agnostic card issuer configuration. Replaces the stored object; null clears it.

bank_feed_configobject

Per-program bank feed configuration (provider, data_project, dataset_template). Replaces the stored object; null clears it.

portal_frame_ancestorsarray · string

HTTPS origins permitted to embed the hosted borrower portal (/p/credit/{token}?embed=1). Replaces the stored list; null clears it.

payment_collection_configPaymentCollectionConfigInput

Embeddable borrower payment iframe settings. Replaces stored settings (preserving an existing Payliance Card access key when omitted); null clears it.

statement_balance_modestring
allocation_scopestring
cycle_close_rulestring
cycle_anchor_dayinteger
excess_credit_dispositionstring
collections_policyobject
monitoring_policyMonitoringPolicy

Observation-only monitoring; send null to disable.

limit_review_policyLimitReviewPolicy

Dynamic limit reviews. Send null to turn them off.

limit_change_policystring

direct, approval_required or console_only. Leaving direct is refused while the limit-review policy says apply: direct.

late_termsobject
early_payoff_termsobject
underwriting_decision_policyUnderwritingDecisionPolicy

Optional lender-owned evidence expiry and decline-reason requirements.

underwriting_criteriaarray · object
legal_lending_entitystring
statement_brandingobject
covenantsobject
event_delivery_modeEventDeliveryMode
bank_link_redirect_urisarray · string

The URLs a merchant's hosted bank Link may return to (see the create request). Replaces the stored list; null clears it.

event_delivery_lockedboolean

True holds event_delivery_mode where the operator set it; the partner's PUT /credit/programs/{id}/event-delivery is then refused.

sandbox_email_recipientsarray · string

Sandbox only. Merchant addresses an email from this sandbox may be sent to, besides DayZero's own allow-list: an exact address or @domain for every address there; at most 25. A sent email's subject starts [Sandbox]. Ignored on a live business. Replaces the stored list; null clears it.

sandbox_email_redirect_tostring

Sandbox only. One address every merchant email from this sandbox goes to instead of the line's merchant_email, whatever the recipient list says. The subject starts [Sandbox] and names the merchant address it was meant for. Null sends to the merchant when allowed. Ignored on a live business. Null or blank clears it.

issuing_enabledboolean
ramp_spend_program_idstring
issuer_timezonestring

The issuer's posting-date timezone (see the create request). Reaches settlements recorded after the change only.

ramp_cardholder_user_idstring

The issuing identity (see the create request). Verified as a user on the connected Ramp account when set; null clears it.

allowed_mcc_codesarray · string
blocked_mcc_codesarray · string
force_activateForceActivateRequest

Operator console only. With status: active on a live program that fails a blocking launch check, makes it active anyway; the reason, who and when are recorded as activation_override. Without it that change is refused (CREDIT_660); an API token cannot send it (CREDIT_661).

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 or expired token, an MCP OAuth token used against the REST API, 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.