201Successful Response
Schema: SuccessEnvelope_UnderwritingAssessmentResponse_
successbooleanmessagestringcodestringdataUnderwritingAssessmentResponse
/api/v1/credit/underwriting/assessmentsReturns 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.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: UnderwritingAssessmentRequest
measurement_source_modestringFrozen measurement path. Aggregate sources require operator-bound source configuration and retain validated summaries only.
One of: ledger, aggregate_sources
credit_line_idstringexternal_application_idstringprogram_idstringcriteria_overridearray · objectEvaluate against these instead of the program's scorecard. The assessment records them as an ad-hoc snapshot rather than a scorecard version.
scorecard_version_idstringAssess against this scorecard version. Defaults to the active version of the program's default scorecard.
requested_limit_centsintegerThe 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_daysintegerThe term being applied for.
subject_business_idstringThe 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_readybooleanWhen 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_approvebooleanWhen 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_idstringYour id for the merchant, used to open the credit line idempotently when auto_approve is true.
merchant_legal_namestringThe merchant's legal business name for automatic line opening.
merchant_emailstringThe merchant's email address for automatic line opening.
merchant_statestringApplication's US state for notice template selection.
merchant_addressMerchantAddressApplication's mailing address for notices.
Schema: SuccessEnvelope_UnderwritingAssessmentResponse_
successbooleanmessagestringcodestringdataUnderwritingAssessmentResponseSchema: 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.
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.