Transaction Insights
Sending the VPRI Request
This figure shows the workflow for a VPRI request:
- The customer submits a transaction to the client.
- The client's fraud strategy and solution passes the transaction to the client risk service.
- The client risk service requests Visa risk insights from Visa Protect Risk Insights.
- Visa Protect Risk Insights returns risk insights generated by AI to the client risk service.
Visa Protect Risk Insights performs best when clients provide all required and recommended data elements. For full product efficacy, provide all fields. Missing key data elements such as email address, payment details, or customer identity information can materially reduce Visa Protect Risk Insights performance.
VPRI provides ignorable values for any unavailable request data.
VPRI requires these general data elements:
Client reference number
Payment account details, such as primary account number (PAN), payment token, or bank account number
Bank identification number (BIN)
Transaction amount and currency
Name (customer or business)
- Primary identity or business, such as billing
- Secondary identity or business, such as shipping
Physical address
- Address 1, such as billing address
- Address 2, such as shipping address
Phone number
Email address
IP address
Endpoint
POST /unifiedrisk
POST /unifiedrisk
Example
This example shows a VPRI transaction insights request and its response.
{ "actions": [ "VISA_PROTECT_RISK_INSIGHTS" ], "events": [ "INSIGHTS" ], "transaction": { "transactionId": "txn_1234567890", "timestamp": "2024-06-10T14:30:00Z", "amount": { "value": "199.99", "currency": "USD" } }, "eventTime": "2024-06-10T14:30:00Z", "context": "rt_ecom", "mode": "test", "payment": { "card": { "name": "Jane Doe", "number": "4111111111111111", "cardNetwork": "VISA", "type": "VISA", "bin": "411111", "expirationMonth": "12", "expirationYear": "2026", "last4": "1111", "tokenDetails": { "providerType": "ApplePay", "number": "9999887776666", "expirationMonth": "12", "expirationYear": "2026", "bin": "411111", "last4": "1111" }, "addedAtCheckout": true } }, "order": { "shipping": { "administrativeArea": "CA", "address1": "somestring", "address2": "somestring", "country": "US", "locality": "San Francisco", "phoneNumber": "+14155552671", "postalCode": "94101", "deliveryType": "HomeDelivery", "shippingMethod": "Express" }, "billing": { "administrativeArea": "CA", "address1": "somestring", "address2": "somestring", "country": "US", "locality": "San Francisco", "postalCode": "94101" } }, "customer": { "customerId": "cust_001", "personalIdentification": { "firstName": "Jane", "lastName": "Doe", "email": "[email protected]", "phoneNumber": "+14155552671" } }, "device": { "ipAddress": "203.0.113.42", "deviceId": "device_abc123", "ipAddressV4": "203.0.113.42", "deviceFingerprintVendor": "DevicePrintCo" }}{ "submitTimeUtc": "2026-08-04T17:34:41Z", "results": { "VISA_PROTECT_RISK_INSIGHTS": { "client": { "eventTimestamp": "2026-08-04T17:34:41.947Z", "referenceId": "txn_1234567890" }, "packages": { "transactionInsights": { "additionalData": { "cardBinData": { "cardBin": "411111", "cardBrand": "001", "cardFundingSource": "DEBIT", "cardProductDescription": "Visa Classic", "cardProductID": "Visa Classic", "issuerBin": "411111", "issuerBinCountry": "PL", "issuerName": "CONOTOXIA SP. Z O.O", "status": "matched", "warnings": [] } }, "id": "VPRI_Transaction_Insights", "insights": { "codes": [ "BEH-PIEM-1Y-NOHISTORY", "BEH-PIIP-1Y-NOHISTORY", "BEH-PI-1Y-NOHISTORY", "BEH-EMIP-1Y-NOHISTORY", "BEH-EMPH-1Y-NOHISTORY", "BEH-EM-1Y-NEG", "OBS-BABIN-CT-RT-MM", "RSK-EMPI-CHG-6M", "RSK-PHPI-CHG-6M", "RSK-PI-VEL-15M", "RSK-PI-VEL-1H", "RSK-PHBA-CHG-6M", "RSK-BABIN-VAL-RT", "RSK-PHEM-CHG-6M", "RSK-EM-CHG-6M", "RSK-EM-VEL-1W", "RSK-GEOEM-VAL-RT", "RSK-IP-VEL-1W", "RSK-EMIP-CHG-6M", "RSK-EMPH-CHG-6M", "RSK-PH-CHG-6M", "RSK-EMSA-CHG-6M" ], "signals": { "OBS-PH-VEL-1W": "1" } }, "name": "VPRI Transaction Insights", "score": 98, "type": "TRANSACTION" } }, "processingTimeMs": "82", "requestId": "7858648818766374504807", "responseTimestamp": "2026-08-04T17:34:42.043648+00:00", "status": "COMPLETED" } }}Request Fields
These tables include a portion of the technical specification of VPRI.
These objects group the request fields:
Request Objects for Transaction Insights
transaction
Financial transaction metadata including amounts, status, type, channel, and recurring payment details. This object contains all transaction data fields, including transactionId, timestamp, and amount.
Note: This object definition only includes VPRI-specific fields.
payment
Includes the card object, the tokenDetails object, and the addedAtCheckout field.
payment.tokenDetails
Object containing fields regarding token details.
order
E-commerce order details including line items, billing and shipping addresses, and shipping preferences.
order.shipping
Sub-object of the order object containing all relevant shipping information for the order indicated in the order object.
These fields are required for a VPRI request:
Required Fields for Transaction Insights
actions
Identifies the product or solution being used during a unified API transaction. For VPRI, the only value that should be passed is VISA_PROTECT_RISK_INSIGHTS.
context
The context in which the request is made.
events
Indicates the event type associated with the action. For VPRI, accepted values are INSIGHTS and LABELS.
eventTime
The time that the real-world event occurred.
mode
Indicates whether the request is a production request or a test. Expected values: live or test.
transaction.amount
This object contains the amount value and currency fields.
transaction.amount.value
Transaction amount in the specified currency.
transaction.timestamp
Local transaction timestamp without time zone.
transaction.transactionId
Unique identifier for the transaction being assessed.
Send these token fields when card data is not available:
Token-Specific Fields for Transaction Insights
payment.tokenDetails.expirationMonth
The token expiration month.
Max length: 2
payment.tokenDetails.expirationYear
The token expiration year.
Max length: 4
payment.tokenDetails.number
The token number that is replacing the PAN.
Max length: 64
payment.tokenDetails.providerType
Token provider type: network_token or merchant_token.
These fields are optional for a VPRI request:
Optional Fields for Transaction Insights
customer
Customer identity, profile information, account history, and personal identification documents.
customer.customerId
A unique identifier for the customer.
Note: This field should be considered required for the payments solution, but not otherwise.
customer.personalIdentification
Contains all PI related to the customer.
customer.personalIdentification.email
The customer's email address.
Max length: 254
customer.personalIdentification.firstName
The customer's first name.
Max length: 50
customer.personalIdentification.lastName
The customer's last name.
Max length: 50
customer.personalIdentification.phoneNumber
The customer's mobile or primary phone number used for contact or SMS-based verification, preferably in E.164 format (for example, +15551234567).
device
Device hardware, network information, location data, and point-of-sale context.
device.deviceFingerprintVendor
Name of the third-party vendor providing device fingerprinting services for this transaction (for example, ThreatMetrix, InAuth, or Kount).
device.deviceId
A unique identifier of the device performing the event, such as the laptop or mobile phone used to log in to the online banking.
device.ipAddress
IPv4 or IPv6 address observed for the customer's device during the session.
Max length: 45
device.ipAddressV4
IPv4 address of the customer's device captured during the session (for example, 192.0.2.1). Used for geolocation, anonymizer detection, and IP-based risk signals.
device.ipAddressV6
IPv6 address of the customer's device captured during the session (for example, 2001:db8::1). Used for geolocation and risk analysis in IPv6-enabled environments.
order.billing
Object containing billing information of the cardholder for the specified order.
order.billing.addressLine1
Payment card billing street address as it appears on the credit card issuer's records.
Max length: 60
order.billing.addressLine2
Payment card billing street address as it appears on the credit card issuer's records.
Max length: 60
order.billing.administrativeArea
State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada.
For Payouts: this field can be sent only for FDC Compass.
Visa Platform Connect: credit card networks cannot process transactions that contain non-ASCII characters. Visa Platform Connect accepts and stores non-ASCII characters correctly and displays them correctly.
Max length: 50
order.billing.country
Payment card billing country. Use the two-character ISO Standard Country Codes.
Max length: 2
order.billing.locality
Payment card billing city.
Max length: 50
order.billing.postalCode
Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the US, the 9-digit postal code must follow this format: [5 digits][dash][4 digits]
Max length: 10
order.email
Email address of the recipient or shipping contact for order confirmation, dispatch notifications, and delivery tracking.
order.shipping.administrativeArea
First line of the shipping address.
Required field for authorization if any shipping address information is included in the request; otherwise, optional.
Tax Calculation: optional field for US and Canadian taxes. Not applicable to international and value added taxes. Billing address objects are used to determine the cardholder's location when shipTo objects are not present.
Max length: 60
order.shipping.country
Country of the shipping address. Use the two-character ISO Standard Country Codes.
Max length: 2
order.shipping.deliveryType
Delivery or fulfillment method.
order.shipping.locality
City of the shipping address.
Required field for authorization if any shipping address information is included in the request and shipping to the US or Canada; otherwise, optional.
Tax Calculation: optional field for US and Canadian taxes. Not applicable to international and value added taxes. Billing address objects are used to determine the cardholder's location when shipTo objects are not present.
order.shipping.phoneNumber
Phone number associated with the shipping address.
Max length: 16
order.shipping.postalCode
Postal code for the shipping address. The postal code must consist of 5 to 9 digits.
Required field for authorization if any shipping address information is included in the request and shipping to the US or Canada; otherwise, optional. When the billing country is the US, the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example: 12345-6789. When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric]
Max length: 32
order.shipping.shippingMethod
Shipping method for the product. Possible values:
lowcost: lowest-cost servicesameday: courier or same-day serviceoneday: next-day or overnight servicetwoday: two-day service
payment.card
Object that contains all the fields related to card details during a card-not-present checkout.
payment.card.addedAtCheckout
Whether the card was newly entered during checkout.
payment.card.bin
Bank identification number (first 6 digits). Only needs to be sent when not sending the full PAN.
payment.card.cardNetwork
Card network. Possible values include VISA, MASTERCARD, and AMEX.
payment.card.expirationMonth
Card expiration month.
Max length: 2
payment.card.expirationYear
Card expiration year.
Max length: 4
payment.card.last4
Last four digits of the card.
Max length: 4
payment.card.name
Cardholder name.
payment.card.number
Full PAN. Tokenized or masked card number.
Max length: 20
payment.card.type
Card type. Possible values include CREDIT, DEBIT, and PREPAID.
payment.tokenDetails.bin
BIN from underlying card.
payment.tokenDetails.last4
Last four digits of the card.
Max length: 4
Send when card data is not available.
transaction.amount.currency
ISO 4217 3-letter currency code.
VPRI API Response
VPRI provides several high-level items:
- Risk score: AI-generated score indicating predicted transaction risk, where 1 represents the lowest risk and 99 represents the highest risk.
- The most meaningful score ranges depend on the client, transaction type, fraud type, and internal risk tolerance.
- Clients should support scores from 0 to 99, where 0 indicates the score could not be generated or is invalid.
- The score is intended to be used alongside VPRI insights and internal data sources as part of a broader transaction risk assessment.
- Scores can be interpreted this way:
- 0: Error or invalid output
- 1 to 9: Likely valid
- 10 to 19: Medium-high validity
- 70 to 85: High risk
- 86 to 99: Very high risk
- Insights: these are an elaboration on the VPRI risk score. They provide greater visibility into customer behavior and risk. Insights can be used to enrich existing fraud management and acceptance strategies. For definitions of each insight code, see the Data Dictionary.
- BIN properties: additional details about the payment card issuer, card scheme, and card type.
- Transaction ID: client-defined transaction identifier used to support analysis, reporting, and correlation with internal systems and records.
The specific fields contained in the API response are shown in this table. The most impactful fields for enriching a fraud strategy are marked with an asterisk (*).
| Field | Description | Benefit |
|---|---|---|
| VPRI MID name | The merchant identification name | Ensures correct routing of the transaction |
| Reference Number | Unique reference number for the transaction | Matches VPRI response to internal systems for analysis and reporting |
| Response code | Indicates success, error, or timeout | Shows real-time processing status |
| Transaction submit date/time | Timestamp of when the transaction was submitted | Supports analysis and reporting |
| Local time | Local time of the transaction | Supports analysis and reporting |
| *Score | Risk score (0-99) | Delivers AI-based summary of transaction validity (0) to risk (99) |
| *Insights | String containing information codes. All available insights are included for each transaction. Includes Identity Behavior Analysis (IBA) codes. | Enriches existing fraud strategy, solution, or model with expanded visibility across the agnostic Visa network |
| *CardBINCountry | Country of the payment card BIN | Supports risk cohort analysis and segmentation using provided insights. |
| *CardIssuer | Issuer of the payment card | Supports risk cohort analysis and segmentation using provided insights. |
| *CardScheme | Scheme of the payment card (for example, Visa, Mastercard) | Supports risk cohort analysis and segmentation using provided insights. |
| *CardType | Type of the payment card (for example, credit, debit) | Supports risk cohort analysis and segmentation using provided insights. |
| *CardBIN | Bank identification number (BIN) of the payment card | Supports risk cohort analysis and segmentation using provided insights. |
| *IssuerBIN | Payment card issuer's bank identification number | Supports risk cohort analysis and segmentation using provided insights. |
Response Fields
Fields indicated as required are specifically required for VPRI.
Top-Level Response Fields for Transaction Insights
submitTimeUtc
UTC timestamp indicating when the risk assessment request was received and submitted for processing.
results
Results for each action executed, keyed by action name. Only RISK_INSIGHTS is present for VPRI requests.
VISA_PROTECT_RISK_INSIGHTS
Response from the Visa Protect Risk Insights (VPRI) service, containing the risk score, insight codes, behavioral signals, and supplementary card BIN data for the evaluated transaction.
The VISA_PROTECT_RISK_INSIGHTS object contains these fields:
VISA_PROTECT_RISK_INSIGHTS Object Fields
client
Client-provided identifiers echoed back for end-to-end correlation.
client.eventTimestamp
The event timestamp submitted by the client, representing when the transaction originally occurred.
client.referenceId
The transaction identifier (transactionId) provided by the client in the request, for end-to-end correlation.
packages
Collection of risk assessment packages returned by VPRI, each representing a distinct analytical perspective on the transaction.
packages.transactionInsights
Transaction-level risk package produced by the AIP (AI Platform) engine, containing the risk score, insight codes, behavioral signals, and supplementary card BIN data.
packages.transactionInsights.id
Unique identifier of the VPRI package.
packages.transactionInsights.insights
packages.transactionInsights.insights.codes
Machine-readable error code identifying the error category.
packages.transactionInsights.name
Human-readable display name of the VPRI package.
packages.transactionInsights.score
Risk score produced by the AIP engine, ranging from 0 (lowest risk) to 100 (highest risk). Absent when the AIP service was not invoked.
packages.transactionInsights.type
Category of the VPRI package indicating the type of assessment performed.
packages.transactionInsights.additionalData
Supplementary data enriching the transaction risk assessment, such as card BIN metadata.
packages.transactionInsights.additionalData.cardBinData
Card BIN (bank identification number) metadata returned by the BIN lookup service. Present when BIN lookup succeeds; absent on no-match or lookup error.
packages.transactionInsights.additionalData.cardBinData.cardBin
Resolved card BIN returned by the lookup service, which might differ from issuerBin in certain co-branded or affiliated card scenarios.
Max length: 8
packages.transactionInsights.additionalData.cardBinData.cardBrand
Card network brand code (for example, 001 for Visa, 002 for Mastercard). Used for brand-specific fraud rule application.
Max length: 20
packages.transactionInsights.additionalData.cardBinData.cardFundingSource
Funding source type of the card indicating how transactions are funded (for example, CREDIT, DEBIT, or PREPAID). Used for risk segmentation by payment method.
Max length: 20
packages.transactionInsights.additionalData.cardBinData.cardProductDescription
Human-readable description of the card product. Useful for client-facing displays or product-level fraud analysis.
Max length: 100
packages.transactionInsights.additionalData.cardBinData.cardProductID
Product identifier for the card product issued. Might be an alphanumeric code or a product name depending on the issuer.
Max length: 100
packages.transactionInsights.additionalData.cardBinData.issuerBin
The BIN submitted for lookup, consisting of the first 6 or 8 digits of the card number, identifying the issuing institution.
Max length: 8
packages.transactionInsights.additionalData.cardBinData.issuerBinCountry
ISO 3166-1 alpha-2 country code of the card-issuing institution. Useful for detecting geographic mismatches between issuer and transaction origin.
Max length: 2
packages.transactionInsights.additionalData.cardBinData.issuerName
Full name of the card-issuing bank or financial institution.
packages.transactionInsights.additionalData.cardBinData.status
Result status of the BIN lookup. Indicates whether the BIN was successfully matched in the lookup service.
packages.additionalData.warnings
Human-readable explanation of the warning, providing context on why the warning was raised and its potential impact on the risk assessment result.
packages.additionalData.warnings.code
Machine-readable warning code identifier (for example, SCORE-01, BIN-01, CARD-01, or EMAIL-01). Use this code for programmatic handling and filtering of specific warning categories.
Max length: 20
packages.additionalData.warnings.description
Human-readable explanation of the warning, providing context on why the warning was raised and its potential impact on the risk assessment result.
processingTimeMs
Server-side processing time in milliseconds from request receipt to response dispatch. Useful for latency monitoring and SLA tracking. Might be null if processing time was not recorded.
requestId
Echoes the unique request identifier submitted in the original VPRI request, enabling clients to correlate responses with their outbound calls.
responseTimestamp
ISO 8601 timestamp indicating when the VPRI response was generated by the service.
status
Overall processing status of the VPRI response.
Thanks for your feedback!
Last published: December 2, 2026