Skip to content

Request an underwriting assessment

POST/api/v1/credit/underwriting/assessments

Returns a pending assessment. Bank backfill, categorisation, and trailing-ratio history can take up to three days, so callers must not assume a synchronous answer — poll the get endpoint or subscribe to the completion event. While it waits, waiting_on names the data still landing and wait_deadline when the sweep completes it regardless. The result is evidence: approve or decline the completed assessment with POST /credit/underwriting/assessments/{assessment_id}/decision. The assessment is measured against the active version of the program's scorecard unless scorecard_version_id names another, and records which one. Send requested_limit_cents: rules written as a multiple of the limit report unmeasured without it. An unknown program_id is 404; a program with no active scorecard (and no scorecard_version_id or criteria_override in the request) is 409 CREDIT_POLICY_UNDECIDED.

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

measurement_source_modestring

Frozen measurement path. Aggregate sources require operator-bound source configuration and retain validated summaries only.

One of: ledger, aggregate_sources

credit_line_idstring
external_application_idstring
program_idstring
criteria_overridearray · object

Evaluate against these instead of the program's scorecard. The assessment records them as an ad-hoc snapshot rather than a scorecard version.

scorecard_version_idstring

Assess against this scorecard version. Defaults to the active version of the program's default scorecard.

requested_limit_centsinteger

The limit being applied for, in cents. Rules written as a multiple of the limit, or that apply only in a limit band, report unmeasured (requested_limit_missing) without it.

requested_term_daysinteger

The term being applied for.

subject_business_idstring

The business whose data is measured. Defaults to the line's merchant_business_id, else the business in x-business-id. Must be a business the caller can access.

evaluate_if_readyboolean

When true and the merchant's data is already complete (waiting_on is empty), measure and complete the assessment immediately instead of waiting for the nightly sweep.

auto_approveboolean

When true and the completed assessment passes every required rule with zero failed criteria, automatically open the merchant's credit line for the requested limit and term. Sent true or false it wins; omitted, the program's auto_approve_default decides (a partner application on a sandbox auto-approves either way unless false is sent). auto_approval.source says which applied.

external_merchant_idstring

Your id for the merchant, used to open the credit line idempotently when auto_approve is true.

merchant_legal_namestring

The merchant's legal business name for automatic line opening.

merchant_emailstring

The merchant's email address for automatic line opening.

merchant_statestring

Application's US state for notice template selection.

merchant_addressMerchantAddress

Application's mailing address for notices.

Responses

201Successful Response

successboolean
messagestring
codestring
dataUnderwritingAssessmentResponse

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.

409Conflict - Resource already exists or is in an incompatible state

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.