Skip to main content
POST
Simulate a score without saving

Authorizations

Authorization
string
header
required

API key created in the console. Scopes: kyc:extract, kyc:verify, kyc:eid; kyb:onboard, kyb:ice; statements:read; webhooks:manage; requests:read, requests:write; bank:read, bank:write (Growth plan, enabled per workspace by Sahl); registry:read; cases:read; scoring:read, scoring:write; policy:read, policy:write; usage:read. The Sandbox specimen routes, GET /v1/partner/me and GET /v1/partner/errors need any valid key.

Headers

X-Sahl-Environment
string | null

sandbox (default) or production. Same meaning as the environment parameter; if both are sent they must agree.

Body

application/json
reference
string
required

Your reference for the case.

Required string length: 1 - 64
environment
string | null

sandbox or production; must agree with X-Sahl-Environment if both are sent.

inputs
WhatIfInputs · object

Loan request overrides.

weights
Weights · object | null

Factor weights to try (keys of the policy's factor catalogue, >= 0). Merged over the active policy's and re-normalised to sum to 1.

approve_threshold
integer | null

Approve at or above.

Required range: 0 <= x <= 1000
refuse_threshold
integer | null

Refuse at or below.

Required range: 0 <= x <= 1000

Response

OK

current
WhatIfCurrent · object
required

The case as stored.

hypothetical
PartnerScore · object
required

The score under the overrides.

decision
string | null
required

What the automatic decision would be: approved, manual_review, refused, or null when not assessable.

applied
WhatIfApplied · object
required

The settings the hypothetical score ran under.

persisted
boolean
default:false

Always false: nothing was stored.