# Payment Account Validation

The Payment Account Validation API allows applications to run validations of the payment account before processing a transaction ensuring greater probability of success and allowing for a more seamless transaction flow.

## Card Validation  v1 - Latest

Perform validations of the payment account

### Request

##### Request Body schema:     application/json                   application/json  application/xml

Request body for Card Validation

|     |     |
| --- | --- |
| acquirerCountryCode<br>required | string 3 characters <br>The clients must provide a 3-digit numeric ISO country code in this field.<br>Requests that do not contain a valid Acquirer Country Code will be rejected beginning 1 April 2025.<br>Example: "string" |
| acquiringBin<br>required | string [ 6 .. 11 ] characters <br>This field must contain an acquiring BIN. This requirement applies to all users of this API.<br>- Clients who are unsure of their BIN should contact their Visa representative for assistance.<br>- Visa internal applications submitting the requests in support of Visa services may contact the product office for assistance.<br>Requests that do not contain a valid Acquirer BIN will be rejected beginning [1 April 2025] |
| accountType | string<br>This is used to identify the account type of the primaryAccountNumber in the request. Below are the possible values.<br>00-Not applicable<br>10-Savings Account<br>20-Checking account<br>30-Credit card account<br>40-Universal account<br>Default is set to 00 if not provided. |
| addressVerificationResults | object<br>Contains the address of the cardholder to be verified with the card issuer. |
| postalCode<br>required | string [ 1 .. 9 ] characters <br>**Note: Required when addressVerificationResults object is present in the request.**<br>Postal Code provided by the account holder for the primaryAccountNumber in the request. |
| street | string [ 1 .. 40 ] characters <br>Address provided by the account holder for the primaryAccountNumber in the request. | |
| cardAcceptor | object<br>The cardAcceptor is the merchant, funds transfer originator or Visa internal application submitting the Payment Account Validation request.<br>All users must provide card acceptor information for reporting purposes At a minimum, idCode and name are required. |
| idCode<br>required | string [ 1 .. 15 ] characters <br>**Note: Required when CardAcceptor object is present in the request.**<br>This field must contain an identifier for the card acceptor (Funds Transfer Originator or merchant).<br>- This value should be unique for each originator for whom you are sending transactions and must not contain all zero’s.<br>- If the card acceptor does not have an idCode, the client’s 8 digit Business Identifier (BID) + 3-digit numeric country code may be used in this field.<br>- For requests originated by Visa on behalf of clients that use a Visa-owned Acquiring BIN, this field should contain the business ID of the client requesting the service.<br>- Clients who are unsure of their BID should contact their Visa representative for assistance.<br>Requests that do not contain an idCode will be rejected beginning [1 April 2025]. |
| name<br>required | string [ 1 .. 25 ] characters <br>**Note: Required when CardAcceptor object is present in the request.**<br>Name of the cardAcceptor<br>- This field must contain the name of the cardAcceptor (Funds Transfer Originator or merchant) as known to the cardholder. <br>- For requests originated by Visa on behalf of clients, this field should contain the name of the service as known to the client requesting the service.<br>Requests that do not contain a card acceptor name will be rejected. beginning [1 April 2025] |  
| address | object<br>Contains the physical address, URL or telephone number for the merchant or funds transfer originator/operator requesting the Account Validation. |
| addressLine | string [ 0 .. 99 ] characters <br>Optional. When provided together with masterCardMerchantPaymentGatewayId (MPGID), it is used to meet Mastercard processing requirements<br>Example: "string" |
| city | string [ 1 .. 13 ] characters <br>City of the merchant or the funds transfer originator/operator.<br>Example: "string" |
| country | string [ 2 .. 3 ] characters <br>This field must contain the 3-character alpha country code for the country of the merchant or the originator or the funds transfer operator. Refer to [ISO Codes](https://developer.visa.com/request_response_codes#iso_country_codes)<br>Example: "string" |
| county | string 3 characters <br>County of the funds transfer operator/originator<br>Example: "string" |
| state | string 2 characters <br>Use a 2-character abbreviated states code or territory code as the state value. Make sure to give a valid state code for given country.<br>Example: "string" |
| zipCode | string [ 5 .. 9 ] characters <br>Zip/Postal code of the merchant or the funds transfer operator/originator.<br>Example: "string" | |
| terminalId | string [ 1 .. 8 ] characters <br>The identifier for the terminal at a card acceptor location. If sending transactions from a card not present context, the same value may be used for all transactions . | |
| cardCurrencyCode | string 3 characters <br>Use a 3-character alpha or numeric currency code for the currency of the card. <br>Refer to [ISO Codes](https://developer.visa.com/request_response_codes#iso_country_and_currency_codes)<br>Example: "string" |
| cardCvv2Value | string [ 3 .. 4 ] characters <br>The cvv2Value value provided by the account holder for the primaryAccountNumber in the request.<br>**Note**:dtvv as a token cryptogram can be placed in the request in cardCvv2value.<br>Example: "string" |
| cardExpiryDate | string 7 characters <br>This field must contain the expiration date for the primaryAccountNumber in the request. The date is in yymm numeric format, where yy = year (00-99) and mm = month (01-12). The date should not be a past date.<br>Required for all Visa branded transactions.<br>Example: "string" |
| cardHolderEmailAddress | string [ 1 .. 99 ] characters <br>Card holder Email Address verified with the issuer.<br>Example: "string" |
| cardHolderLocalLanguageNameVerification | object<br>API calls have to be MLE enabled to be able to send in this data. |
| languageCode<br>required | string 3 characters <br>This field identifies the 3-character ISO language code for the local language. |
| lastName<br>required | string [ 1 .. 35 ] characters <br>This field identifies the last name of the account or entity in the local language. Must not contain: All spaces, All zeros, All numerics, Any question mark |
| localLanguageEncoding<br>required | string 2 characters <br>This field identifies the 2-character encoding type for the local language. |
| firstName | string [ 1 .. 35 ] characters <br>This field identifies the first name of the account or entity in the local language. Must not contain: All spaces, All zeros, All numerics, Any question mark |
| middleName | string [ 1 .. 35 ] characters <br>This field identifies the middle name of the account or entity in the local language. Must not contain: All spaces, All zeros, All numerics, Any question mark | |
| cardHolderNameVerification | object<br>API calls have to be MLE enabled to be able to send in this data. |
| lastName<br>required | string [ 1 .. 35 ] characters <br>**Note: Required when CardHolderNameVerificationRequest object is present in the request.**<br>This field identifies last name of account or entity. Must not contain: <br>All spaces <br>All zeros <br>All numerics <br>Any question mark<br>Example: "string" |
| firstName | string [ 1 .. 35 ] characters <br>This field identifies first name of account or entity. Must not contain: <br>All spaces <br>All zeros <br>All numerics <br>Any question mark<br>Example: "string" |
| middleName | string [ 1 .. 35 ] characters <br>This field identifies middle name of account or entity. Must not contain: <br>All spaces <br>All zeros <br>All numerics <br>Any question mark<br>Example: "string" | |
| ownerType | string 2 characters <br>This field will contain the account owner type to identify if the name belongs to the primary or secondary account owner. Below are the possible values. <br>01 - Primary account owner <br>02 - Secondary account owner<br>Example: "string" | |
| cardHolderPhoneNumber | string [ 1 .. 16 ] characters <br>Card holder Phone Number verified with the issuer.<br>First 3 numerics will be ISD code followed by up to 12 numerics for the phone number eg. 0013031234567, where 001 is country code and 3031234567 is phone number.<br>Example: "string" |
| identityVerification | object<br>This is an optional field. This is used to validate the cardholder identity of the primaryAccountNumber in the request.Supported only in the LAC region. API calls have to be MLE enabled to be able to send in this data. |
| identities | Array of objects |
| identityType<br>required | string<br>**Note: Required when IdentityVerificationRequest object is present in the request.**<br>Type of identification. Below are the possible values.<br>NATIONALIDENTITY<br>PASSPORT<br>DRIVERLICENSE<br>TAX |
| identityValue<br>required | string [ 1 .. 35 ] characters <br>**Note: Required when IdentityVerificationRequest object is present in the request.**<br>The identification value | |
| masterCardMerchantPaymentGatewayId | string [ 1 .. 11 ] characters <br>This field contains merchant payment gateway ID assigned by Mastercard, provided by the acquirer when a registered merchant payment gateway service provider participates in the transaction. Value is right-justified and zero-filled.<br>Example: "string" |
| networkId | integer<br>This contains a code that specifies the network to be used for transmission of the message and determines the program rules that apply to the transaction.<br>Refer to [Network Id](https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code)<br>Example: 2 |
| paymentCredentialReference | object<br>Object to carry a payment instrument that is an alternative to PAN or network token e.g. PCI Token Reference ID<br>**Conditional**<br>Only one of 'primaryAccountNumber' and 'paymentCredentialReference' is provided in a request |
| type<br>required | string<br>Value:"PCI_TOKEN_REFID" |
| value<br>required | string [ 1 .. 75 ] characters |
| merchantId | string [ 1 .. 50 ] characters <br>**Conditional**<br>Unique Merchant Identification assigned by Token Service Provider. | |
| pointOfServiceCapability | object<br>**Note:** For a CardPresent Transactions, this field is required. <br>If this object is not present API will default following values "pointOfServiceCapability": {"posTerminalType": "5","posTerminalEntryCapability": "1","acceptsPartialAuthorizations":"false"}" |
| posTerminalEntryCapability | integer<br>Recommended value for card not present is 5. Default value is 5. <br>Note:Valid values if card is present include 0, 3 and 4. If card is not present, valid value is 5. |
| posTerminalType | integer<br>This 1-digit code identifies the basic POS electronic terminal category.<br>Valid Values :<br>0-Unspecified<br>3-Unattended cardholder-activated, authorized transaction Use to indicate that the transaction has all following characteristics: Occurs in an unattended cardholder-activated environment.Is authorized online or approved offline. Examples are: Movie and game rentals and Automated retail<br>4-Electronic cash register<br>5-Unattended customer terminal (intended for use in the LAC region only)<br>7-Telephone device (including Visa dial terminals)<br>8-Reserved<br>9-Use to identify that an mPOS device is used to originate a transaction on an open network | |
| pointOfServiceData | object<br>Contains a code identifying transaction conditions at the point-of-sale or point of service. For messages that follow an original request, this code identifies the type of processing being done. <br>**Note:** For a CardPresent or Token Transactions, this field is required. If this Object is not passed in the request then API will default at following values: "pointOfServiceData": {"panEntryMode": "01","posConditionCode": "51"}" |
| motoECIIndicator<br>required | string 1 characters <br>Identifies the level of security used in an electronic commerce transaction over an open network (for example, the Internet) or the type of mail or telephone order. Acquirers supply indicator values, which V.I.P. forwards in requests and advices to issuers that have successfully tested to receive them. The subfield is dropped if issuers have not successfully completed testing or choose not to receive it. <br>Required for Tokens with cryptograms. Recommended values for Tokens are 5(Secure electronic commerce transaction) or 7 (Non-Authenticated security transaction). <br>Optional for Card verification without CAVV validation. <br>Refer to [Moto ECI Codes](https://developer.visa.com/request_response_codes#moto_eci_ind_codes) |
| panEntryMode<br>required | integer<br>A 2-digit code that identifies the method used to enter the cardholder account number and card expiration date. This code specifies whether the entire magnetic stripe is included in an authorization or financial request. <br>Recommended value for card/token verification for Card not present transactions is 01. Default value is 01.<br>Refer to [PAN Entry Mode Codes](https://developer.visa.com/request_response_codes#pan_entry_mode_codes) |
| posConditionCode<br>required | integer<br>Contains a code identifying transaction conditions at the point of sale or point of service. For messages that follow an original request, this code identifies the type of processing being done.<br>For Address/cvv2/account verification without authorization is 51. Default value is 51.<br>Refer to [POS Condition Codes](https://developer.visa.com/request_response_codes#pos_cond_code_codes) |
| posEnvironment | string 1 characters <br>**Conditional**<br>This field is required to identify whether a transaction is merchant-initiated. <br>Refer to [POS Environment Codes](https://developer.visa.com/request_response_codes#pos_env_codes) |
| specialConditionIndicatorMerchant | string 1 characters <br>Cryptocurrency indicator with the value of “7” can be used to identify the purchase of cryptocurrency, thereby providing greater visibility to the issuers. | |
| primaryAccountNumber | string [ 13 .. 19 ] characters <br>The primary account number for which account validations are being performed<br>Example: "string" |
| retrievalReferenceNumber | string 12 characters <br>This is an optional field. It is recommended that the clients of Funds Transfer APIs provide retrievalReferenceNumber for tie the calls with a single funds transfer transaction.<br>Recommended Format: ydddhhnnnnnn<br>The first fours digits must be a valid yddd date in the Julian date format, where the first digit = 0-9 (last digit of current year) and the next three digits = 001-366 (number of the day in the year).<br>hh can be the two digit hour in a 24 hour clock (00-23) during which the transaction is performed.<br>nnnnnn can be the SystemsTraceAuditNumber or any 6 digit number.<br>Example: "string" |
| systemsTraceAuditNumber | integer<br>This is an optional field. It is recommended that the clients of Funds Transfer APIs provide systemsTraceAuditNumber for tie the calls with a single funds transfer transaction.<br>Example: 123456 |
| tavv | string 40 characters <br>The token authentication verification or token cryptogram value provided by the token provider for the card token in the request. dtvv in cardCvv2Value or tavv is required to be placed when Token is entered in primary account number. This field should be in hexabinary format.<br>Example: "string" |

### Responses

200
Card Validation Response

##### Response Schema:     application/json                   application/json  application/xml

|     |     |
| --- | --- |
| actionCode<br>required | string 2 characters <br>The results of the transaction request.<br>Refer to [ActionCode](https://developer.visa.com/request_response_codes#actionCode)<br>**Note:** The VisaNet Response Code for the transaction<br>Example: "string" |
| responseCode<br>required | string 1 characters <br>The source for the response; typically, either the recipient issuer or a Visa system. <br>Refer to [ResponseSource](https://developer.visa.com/request_response_codes#responseSource)<br>Example: "string" |
| transactionIdentifier<br>required | string 15 characters <br>The VisaNet reference number for the transaction.<br>Example: "string" |
| addressVerificationResults | string 1 characters <br>Results of the Address Verification Service (AVS) validation for the PrimaryAccountNumber in the request. <br>Refer to [addressVerificationResults](https://developer.visa.com/request_response_codes#addressVerificationResults)<br>Example: "string" |
| approvalCode | string 6 characters <br>The authorization code from the issuer.<br>Example: "string" |
| cardAuthenticationResults | string 1 characters <br>A Visa-defined code indicating Online Card Authentication Method results. <br>Refer to [cardAuthenticationResults.](https://developer.visa.com/request_response_codes#cardAuthenticationResults)<br>**Note:** Reserved for future use<br>Example: "string" |
| cardholderAuthenticationVerificationResults | string 1 characters <br>If TAVV is provided in the request, its validation result will be provided in this field. <br>For future: This field will be extended to provide validation result for Cardholder Authentication Verification Value (CAVV) if it appears in the request. <br>Refer to [CAVV Results Codes.](https://developer.visa.com/request_response_codes#cavvResultCode)<br>**Note:** For E-Commerce transactions containing token data, this attribute must be present with a value of 0, 1, or 2. If the TAVV fails validation, this attribute will have TAVV validation result with a value of 1.<br>Example: "string" |
| cardHolderEmailAddressVerificationResults | string 1 characters <br>Card holder Email Address Verification Results from the issuer. <br>Possible Result sets include- <br>1 - Verified <br>2 - Failed <br>3 - Not performed<br>Example: "string" |
| cardHolderNameVerificationResult | object<br>Optional Service enabling verification of the cardholder name.API calls have to be MLE enabled to be able to send in this data. |
| firstNameAccountMatchDecision | string 2 characters <br>This field will contain the decision of the account First name matching performed by Account Name Inquiry if value in nameResult field contains the value of 00.<br>Refer to [ANI match decision](https://developer.visa.com/request_response_codes#account-name-inquiry-results)<br>Example: "string" |
| lastNameAccountMatchDecision | string 2 characters <br>This field will contain the decision of the account Last name matching performed by Account Name Inquiry if value in nameResult field contains the value of 00.<br>Refer to [ANI match decision](https://developer.visa.com/request_response_codes#account-name-inquiry-results)<br>Example: "string" |
| middleNameAccountMatchDecision | string 2 characters <br>This field will contain the decision of the account Middle name matching performed by Account Name Inquiry if value in name Result field contains the value of 00.<br>Refer to [ANI match decision](https://developer.visa.com/request_response_codes#account-name-inquiry-results)<br>Example: "string" |
| nameMatchDecision | string 2 characters <br>This field will contain the decision of the account name matching performed by Account Name Inquiry if value in nameResult field contains the value of 00.<br>Refer to [ANI match decision](https://developer.visa.com/request_response_codes#account-name-inquiry-results)<br>Example: "string" |
| nameResult | string 2 characters <br>This field will contain the result of the Account Name Inquiry request. Below are the possible values. <br>Refer to [ANI name Result](https://developer.visa.com/request_response_codes#account-name-inquiry-results)<br>Example: "string" | 
| cardHolderPhoneNumberVerificationResults | string 1 characters <br>Card holder Phone Number Verification Results from the issuer. <br>Possible Result sets include- <br>1 - Verified <br>2 - Failed <br>3 - Not performed<br>Example: "string" |
| cardVerificationResults | string 1 characters <br>A Visa-defined code indicating Card Verification Value (CVV), iCVV (Integrated Chip Card CVV) or dCVV (dynamic CVV) verification results. <br>Refer to [CVV/iCVV Results Codes.](https://developer.visa.com/request_response_codes#cvvIcvvResultsCodes)<br>**Note:** Reserved for future use<br>Example: "string" |
| cvv2ResultCode | string 1 characters <br>Results of the CVV2 validation for the primaryAccountNumber in the request. When dtvv is provided in cardCvv2Value in the request, cvv2ResultCode will be sent in response along with tokenVerificationResult<br>Refer to [cvv2ResultsCode](https://developer.visa.com/request_response_codes#cvv2ResultsCode)<br>Example: "string" |
| identityVerification | object<br>Cardholder identity validation results for the primaryAccountNumber in the request.Supported only in the LAC region. |
| identities | Array of objects |
| identityType<br>required | string<br>Type of identification result. Below are the possible values.<br>NATIONALIDENTITY<br>PASSPORT<br>DRIVERLICENSE<br>TAX<br>Example: "string" |
| identityVerificationResult<br>required | string 1 characters <br>Validation results. Below are the possible values.<br>1 - Verified<br>2 - Failed<br>3 - Not performed<br>4 - Issuer does not support id verification<br>Example: "string" |

_© Copyright Visa. All Rights Reserved._
