AccountUpdater
POST/AccountUpdater
This endpoint accepts a list of card data that will be checked for updated card expiration. You can pass either tokens or PANs in the data field of the request. There is a maximum of 100 cardData objects that can be included per request.
Test Card Numbers
TokenEx test PANs can be leveraged to verify that the call to the Account Updater endpoints and subsequent response codes are successful. Some of the test cards are NOT Luhn compliant and will not pass validation for tokenization. When tokenizing these test cards, please select a token scheme that does not require Luhn validation i.e. sixANTOKENfour. The requests to trigger the specific response codes are outlined in the REQUEST section.
PAN | Description |
---|---|
4327390068355738 | Account Number Updated |
4680056031099387 | Account Expiration Date Updated |
4207670264522669 | Valid Account, No Update |
4403933787254356 | Account is Closed |
4000220720915104 | Contact Cardholder |
4929423647273009 | No Match |
4549612182636736 | Non-Participating Account |
Response Code and Message Mappings
Response code | Description |
---|---|
801 | Account Number Updated |
802 | Account Expiration Date Updated |
800 | Valid Account, No Update |
803 | Account is Closed |
804 | Contact Cardholder |
805 | Cardholder Opt Out |
806 | No Match |
807 | Non-participating Account |
808 | Error Occurred Updating Account |
809 | Rejected |
Error cases
Error | Description |
---|---|
8014 | Cannot update accounts. CardData items cannot exceed 100 |
8015 | Sequence numbers must be unique for each card |
8016 | Connection error occurred within the chain of communication required to obtain account update. Please retry request |
8017 | Sequence numbers must be numeric |
2100 | Input data not Luhn compatible |
3000 | Token does not exist |
Request
Header Parameters
Specifies that the incoming data is a PAN and should be tokenized
Specifies the token scheme to be used when tokenizing
Specfies the merchantID to be used
Specifies that plaintext PANs should be returned if there is an Account Number Update. AllowPlainTextPan permission must be enabled to utilize this functionality.
Specifies which Visa region to send the request to when needed. The US and EU endpoints default to the appropriate value. The sandbox value is 2. The US Prod value is 973. The EU Prod value is 982.
- application/json
Body
Array [
]
cardData
object[]
required
The card data to be processed
The PAN to be tokenized or the token to be detokenized
4111111111111111
The expiration for the card in MMYY format
1123
The sequence number used for keeping track of which cards succeeded and which failed. Each sequenceNumber must be unique per request.
01
The Sub-merchant name to be used in the request.
If provided, it contains merchant proprietary information such as a customer ID that is carried in the merchant’s back-end system
Responses
- 200
200
- application/json
- Schema
- Example (from schema)
- Expiration Updated
- No Update
- Account Number Updated
- Account is Closed
- Contact Cardholder
- Cardholder Opt Out
- No Match
- Non-particpating Account
- Error Occurred Updating Account
- Rejected
Schema
- Expiration Updated
- No Update
- Account Number Updated
- Account is Closed
- Contact Cardholder
- Cardholder Opt Out
- No Match
- Non-particpating Account
- Error Occurred Updating Account
- Rejected
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
oneOf
cardData
object[]
true
true
01
token
1123
1124
Account Expiration Date Updated
0
802
2201291553541132129
true
true
cardData
object[]
true
true
01
token
1123
Valid Account, No Update
0
800
23100513550514076457
true
true
cardData
object[]
true
true
01
token
1123
1124
42424aaaa2424242
0
801
Account Number Updated
2201291553541132129
true
true
cardData
object[]
true
true
01
token
1123
0
803
Account is Closed
2201291553541132129
true
true
cardData
object[]
true
true
01
token
1123
0
804
Contact Cardholder
2201291553541132129
true
true
cardData
object[]
true
true
01
token
1123
0
805
Cardholder Opt Out
2201291553541132129
true
true
cardData
object[]
true
true
01
token
1123
0
806
No Match
2201291553541132129
true
true
cardData
object[]
true
true
01
token
1123
0
807
Non-particpating Account
2201291553541132129
true
true
cardData
object[]
true
false
01
1123
0
808
Error Occurred Updating Account
2201291553541132129
true
true
cardData
object[]
true
false
01
1123
0
809
Account Number contains non-numeric characters or is blank
2201291553541132129
true
true
{}
{
"cardData": [
{
"success": true,
"sequenceNumber": "01",
"token": "token",
"expiration": "1123",
"updatedExpiration": "1124",
"message": "Account Expiration Date Updated",
"responseCode": 802
}
],
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": ""
}
{
"cardData": [
{
"success": true,
"sequenceNumber": "01",
"token": "token",
"expiration": "1123",
"message": "Valid Account, No Update",
"responseCode": 80
}
],
"referenceNumber": "23100513550514076457",
"success": true,
"error": "",
"message": ""
}
{
"cardData": [
{
"success": true,
"sequenceNumber": "01",
"token": "token",
"expiration": "1123",
"updatedExpiration": "1124",
"updatedToken": "42424aaaa2424242",
"responseCode": 801,
"message": "Account Number Updated"
}
],
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": ""
}
{
"cardData": [
{
"success": true,
"sequenceNumber": "01",
"token": "token",
"expiration": "1123",
"responseCode": 803,
"message": "Account is Closed"
}
],
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": ""
}
{
"cardData": [
{
"success": "true,",
"sequenceNumber": "01",
"token": "token",
"expiration": "1123",
"responseCode": 804,
"message": "Contact Cardholder"
}
],
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": ""
}
{
"cardData": [
{
"success": true,
"sequenceNumber": "01",
"token": "token",
"expiration": "1123",
"responseCode": 805,
"message": "Cardholder Opt Out"
}
],
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": ""
}
{
"cardData": [
{
"success": true,
"sequenceNumber": "01",
"token": "token",
"expiration": "1123",
"responseCode": 806,
"message": "No Match"
}
],
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": ""
}
{
"cardData": [
{
"success": true,
"sequenceNumber": "01",
"token": "token",
"expiration": "1123",
"responseCode": 807,
"message": "Non-particpating Account"
}
],
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": ""
}
{
"cardData": [
{
"success": false,
"sequenceNumber": "01",
"token": null,
"expiration": "1123",
"responseCode": 808,
"message": "Error Occurred Updating Account"
}
],
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": ""
}
{
"cardData": [
{
"success": false,
"sequenceNumber": "01",
"token": null,
"expiration": "1123",
"responseCode": 809,
"message": "Account Number contains non-numeric characters or is blank"
}
],
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": ""
}