Apply the antifraud final decision
Applies the final decision of the client’s antifraud partner on a payment it sent to review (REVIEW). The partner calls it, not the payer.
How it works
- It follows the Lerian antifraud resolve contract (v1), shared with the other Lerian transactional plugins. The body is
AntifraudResolveRequest. - Only the partner’s machine credential can call it: an application the tenant lists as its antifraud partner, with the
antifraud-partnerrole.editorusers and the client’s own applications get403. - Requires the
paymentsxresolvepermission, held only by theantifraud-partnerrole. - The partner application gets
403on every other route. It never creates, cancels or reads a payment. - No
X-Organization-Id: the analysis is found byanalysisIdin the token’s tenant. X-Idempotencyis<analysisId>:<decision>. The same key returns the first outcome. Repeat a5xxunder the same key.ALLOW: the slip is consulted again with the stored data, and the capability and limit checks run again. If accepted, the payment moves toUNCONFIRMEDwith the amount of the new consult (the informed amount, when one was stored) and follows the normal payment flow. If refused, it endsREJECTEDwith the consult’s reason.DENY: the payment endsREJECTEDwithANTIFRAUD_DENIED.- Both send
PAYMENT_REJECTEDwhen the payment endsREJECTED. The outcome later goes back to the partner as feedback. - Lerian sets up the tenant’s antifraud (on or off, the partner’s credential and address, the review window) and the partner’s applications at onboarding. No client endpoint reads or changes them.
Encabezados
Cuerpo
The partner's final decision on an analysis, as defined by the Lerian antifraud resolve contract (v1). Body capped at 16 KiB. Only analysisId, decision and the body size can refuse the request (422 PBP-0219); reasons never does: a bad entry is dropped, and the reasons after the first 50 kept are discarded with a warning in the log (P-23).
Respuesta
OK. The decision was applied, whatever happened to the payment. Read the outcome on the payment. On ALLOW, if the source no longer accepts the informed amount, the payment ends REJECTED with PBP-0217.

