Assess transaction risk
Scores a transaction or session in real time and returns a decision (approve, review, challenge, or decline). Call this before you capture a payment or complete a sensitive action. Authenticate with a secret API key (clm_sk_...); a publishable key (clm_pub_...) may be used from the browser SDK.
Field requirements by organization segment (comercio, psp, banco): always amount + currency; PSP requires explicit submerchant_id; merchant recommends order_id, device.ip (server), payer identity. See GET /api/v1/assess → field_requirements_by_segment and docs MERCHANT_INTEGRATION.md#assess-fields-by-segment. Missing recommended fields may appear in field_warnings without failing the request.
Payment gateways: Clausum does not POST decisions to Stripe or other PSPs. Your backend calls assess, then your backend calls the PSP capture API.
Authorizations
Partner secret or publishable key, e.g. clm_sk_... or clm_pub_... (assess only).
Body
Preferred: decimal major units (e.g. 139.98). Legacy: integer without amount_unit interpreted as minor (cents).
x >= 0"MXN"
Reuse a session id returned by the browser SDK to merge behavioral signals.
Merchant order / checkout reference.
PSP or payment-ledger charge id (e.g. Stripe pi_*).
Disambiguates integer amounts.
major, minor Explicit amount in minor units (cents).
payment, transfer, withdrawal, etc.
"payment"
Your internal customer identifier.
Required for PSP (organization_type=psp). Child merchant id.
Response
Assessment completed
approve, review, challenge, decline 0 <= x <= 100Codes of the signals that fired.
Reason when the transaction was hard-blocked.
payin, payout Present on payout assess responses.
"payout"
Present when recommended segment fields were omitted; assess still succeeds.