202Successful Response
Schema: SuccessEnvelope_ScorecardBacktestResponse_
successbooleanmessagestringcodestringdataScorecardBacktestResponse
/api/v1/credit/scorecard-versions/{version_id}/backtestConsole operators only. Queues a run of the version over up to 500 businesses and returns the job; poll GET /credit/scorecard-backtests/{id} until status is completed or failed. Each business is measured once and scored; pass compare_version_id to score it under a second version too and learn which businesses come out differently. Measures only: no assessment is created and no event is emitted.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
version_idstringrequiredSchema: ScorecardBacktestRequest
business_idsarray · stringThe cohort, explicitly. Each must be accessible to the caller.
firm_idstringOr: every business the caller can access in this firm (workspace). Ignored when business_ids is given.
limit_modestringWhere each business's requested limit comes from. fixed: requested_limit_cents for all. line_limit: the business's existing credit line on this operator. per_business: requested_limits_cents. none: no limit is supplied.
One of: fixed, line_limit, per_business, none
requested_limit_centsintegerrequested_limits_centsobjectBusiness id to requested limit, in cents.
requested_term_daysintegeras_ofstring · datecompare_version_idstringAlso run this version and report which businesses come out differently.
Schema: SuccessEnvelope_ScorecardBacktestResponse_
successbooleanmessagestringcodestringdataScorecardBacktestResponseSchema: 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.