Skip to main content
Welcome to the preview portal — This is an early release of the new Doc Hub experience, with more content coming soon.
PILOT

Transaction Insights


Sending the VPRI Request

This figure shows the workflow for a VPRI request:

Workflow
  1. The customer submits a transaction to the client.
  2. The client's fraud strategy and solution passes the transaction to the client risk service.
  3. The client risk service requests Visa risk insights from Visa Protect Risk Insights.
  4. 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 object

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 object

Includes the card object, the tokenDetails object, and the addedAtCheckout field.

payment.tokenDetails object

Object containing fields regarding token details.

order object

E-commerce order details including line items, billing and shipping addresses, and shipping preferences.

order.shipping object

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 array

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 string

The context in which the request is made.

events array

Indicates the event type associated with the action. For VPRI, accepted values are INSIGHTS and LABELS.

eventTime string

The time that the real-world event occurred.

mode string

Indicates whether the request is a production request or a test. Expected values: live or test.

transaction.amount object

This object contains the amount value and currency fields.

transaction.amount.value string

Transaction amount in the specified currency.

transaction.timestamp string

Local transaction timestamp without time zone.

transaction.transactionId string

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 string

The token expiration month.

Max length: 2

payment.tokenDetails.expirationYear string

The token expiration year.

Max length: 4

payment.tokenDetails.number string

The token number that is replacing the PAN.

Max length: 64

payment.tokenDetails.providerType string

Token provider type: network_token or merchant_token.

These fields are optional for a VPRI request:

Optional Fields for Transaction Insights
customer object

Customer identity, profile information, account history, and personal identification documents.

customer.customerId string

A unique identifier for the customer.

Note: This field should be considered required for the payments solution, but not otherwise.

customer.personalIdentification object

Contains all PI related to the customer.

customer.personalIdentification.email string

The customer's email address.

Max length: 254

customer.personalIdentification.firstName string

The customer's first name.

Max length: 50

customer.personalIdentification.lastName string

The customer's last name.

Max length: 50

customer.personalIdentification.phoneNumber string

The customer's mobile or primary phone number used for contact or SMS-based verification, preferably in E.164 format (for example, +15551234567).

device object

Device hardware, network information, location data, and point-of-sale context.

device.deviceFingerprintVendor string

Name of the third-party vendor providing device fingerprinting services for this transaction (for example, ThreatMetrix, InAuth, or Kount).

device.deviceId string

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 string

IPv4 or IPv6 address observed for the customer's device during the session.

Max length: 45

device.ipAddressV4 string

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 string

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

Object containing billing information of the cardholder for the specified order.

order.billing.addressLine1 string

Payment card billing street address as it appears on the credit card issuer's records.

Max length: 60

order.billing.addressLine2 string

Payment card billing street address as it appears on the credit card issuer's records.

Max length: 60

order.billing.administrativeArea string

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 string

Payment card billing country. Use the two-character ISO Standard Country Codes.

Max length: 2

order.billing.locality string

Payment card billing city.

Max length: 50

order.billing.postalCode string

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 string

Email address of the recipient or shipping contact for order confirmation, dispatch notifications, and delivery tracking.

order.shipping.administrativeArea string

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 string

Country of the shipping address. Use the two-character ISO Standard Country Codes.

Max length: 2

order.shipping.deliveryType string

Delivery or fulfillment method.

order.shipping.locality string

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 string

Phone number associated with the shipping address.

Max length: 16

order.shipping.postalCode string

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 string

Shipping method for the product. Possible values:

  • lowcost: lowest-cost service
  • sameday: courier or same-day service
  • oneday: next-day or overnight service
  • twoday: two-day service
payment.card string

Object that contains all the fields related to card details during a card-not-present checkout.

payment.card.addedAtCheckout boolean

Whether the card was newly entered during checkout.

payment.card.bin string

Bank identification number (first 6 digits). Only needs to be sent when not sending the full PAN.

payment.card.cardNetwork string

Card network. Possible values include VISA, MASTERCARD, and AMEX.

payment.card.expirationMonth string

Card expiration month.

Max length: 2

payment.card.expirationYear string

Card expiration year.

Max length: 4

payment.card.last4 string

Last four digits of the card.

Max length: 4

payment.card.name string

Cardholder name.

payment.card.number string

Full PAN. Tokenized or masked card number.

Max length: 20

payment.card.type string

Card type. Possible values include CREDIT, DEBIT, and PREPAID.

payment.tokenDetails.bin string

BIN from underlying card.

payment.tokenDetails.last4 string

Last four digits of the card.

Max length: 4

Send when card data is not available.

transaction.amount.currency string

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 (*).

FieldDescriptionBenefit
VPRI MID nameThe merchant identification nameEnsures correct routing of the transaction
Reference NumberUnique reference number for the transactionMatches VPRI response to internal systems for analysis and reporting
Response codeIndicates success, error, or timeoutShows real-time processing status
Transaction submit date/timeTimestamp of when the transaction was submittedSupports analysis and reporting
Local timeLocal time of the transactionSupports analysis and reporting
*ScoreRisk score (0-99)Delivers AI-based summary of transaction validity (0) to risk (99)
*InsightsString 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
*CardBINCountryCountry of the payment card BINSupports risk cohort analysis and segmentation using provided insights.
*CardIssuerIssuer of the payment cardSupports risk cohort analysis and segmentation using provided insights.
*CardSchemeScheme of the payment card (for example, Visa, Mastercard)Supports risk cohort analysis and segmentation using provided insights.
*CardTypeType of the payment card (for example, credit, debit)Supports risk cohort analysis and segmentation using provided insights.
*CardBINBank identification number (BIN) of the payment cardSupports risk cohort analysis and segmentation using provided insights.
*IssuerBINPayment card issuer's bank identification numberSupports 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 string

UTC timestamp indicating when the risk assessment request was received and submitted for processing.

results object

Results for each action executed, keyed by action name. Only RISK_INSIGHTS is present for VPRI requests.

VISA_PROTECT_RISK_INSIGHTS object · Required

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 object

Client-provided identifiers echoed back for end-to-end correlation.

client.eventTimestamp string

The event timestamp submitted by the client, representing when the transaction originally occurred.

client.referenceId string

The transaction identifier (transactionId) provided by the client in the request, for end-to-end correlation.

packages object

Collection of risk assessment packages returned by VPRI, each representing a distinct analytical perspective on the transaction.

packages.transactionInsights object

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 string

Unique identifier of the VPRI package.

packages.transactionInsights.insights string
packages.transactionInsights.insights.codes array

Machine-readable error code identifying the error category.

packages.transactionInsights.name string

Human-readable display name of the VPRI package.

packages.transactionInsights.score integer

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 string

Category of the VPRI package indicating the type of assessment performed.

packages.transactionInsights.additionalData object

Supplementary data enriching the transaction risk assessment, such as card BIN metadata.

packages.transactionInsights.additionalData.cardBinData object

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 string

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 string

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 string

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 string

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 string

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 string

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 string

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 string

Full name of the card-issuing bank or financial institution.

packages.transactionInsights.additionalData.cardBinData.status string

Result status of the BIN lookup. Indicates whether the BIN was successfully matched in the lookup service.

packages.additionalData.warnings array

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 string

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 string

Human-readable explanation of the warning, providing context on why the warning was raised and its potential impact on the risk assessment result.

processingTimeMs integer

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 string

Echoes the unique request identifier submitted in the original VPRI request, enabling clients to correlate responses with their outbound calls.

responseTimestamp string

ISO 8601 timestamp indicating when the VPRI response was generated by the service.

status string

Overall processing status of the VPRI response.

Last published: December 2, 2026

Not available for your audience

This page isn't available for your current audience selection.