Skip to main content
POST
Predict Transaction Risk

Authorizations

X-API-KEY
string
header
required

Your Revtain API key (format: rev_xxx). Provided during onboarding.

Body

application/json
paymentMethodToken
string
required

Your gateway's payment token. Format varies per gateway — see Supported Gateways for the per-gateway format table covering all 13 supported processors.

Example:

"pm_1234567890"

amount
integer
required

Amount in cents.

Example:

5000

currency
string
default:USD
Example:

"USD"

scheduledDate
string<date-time>

ISO 8601 date for scheduled transactions. Improves prediction accuracy.

Example:

"2026-04-15T10:00:00.000Z"

Response

Risk prediction

success
boolean
Example:

true

prediction
object