The primary purpose of the Verify Cardholder API is to validate the cardholder’s details before allowing the cardholder to view or perform any critical/sensitive activities like initiating KYC or setting PIN etc.
Note:
The Verify CardholderAPI will only verify cardholder details and not perform any other activity.
The input parameters mentioned in this API (Example: email, mobile, urn/last4Digit etc.) gets verified against the details maintained for this cardholder in Prepaid system. If verified successfully, the Verify Cardholder API shares useful cardholder information in its response.
Environment: https://domain/mob1/API/onboarding/v1/verifyCardholder
HTTP Method: POST
Request parameters
Header
Parameter | Description | Example |
---|---|---|
x-api-key mandatory | String This is a unique key. | 7fe1c0de |
clientId mandatory | String Uniquely identifies the client. During program enrolment each client is provided with a unique client id by Prepaid | 2000 |
bankId mandatory | Numeric Bank Id is provided by Prepaid Aero during program enrolment to uniquely identify the card issuer. | 7000 |
entityId mandatory | Numeric Defaults to parent branch i.e., 100 | 100 |
secureCode mandatory | String Uniquely identifies the client on payload level for performing operations. | AfYtlO5kqdySIjXyNmGg3F |
Body
Note:
Encryption or decryption methodology is AES-192-CBC bits encryption.
Sample request
Packet sample (Encrypted)
{
“token”: “h/0YSUdGzgNsMcmfYAvIIPgF3Z80/kMJkW/7l9wG9L+bXt//P/HBG0NsuoPtbn6ugjzNOLl/wQPJFbCKMqQJtSSQs4JVYBohia1TPP1yJULHN+TLIVKFRZsg0GokTPI+ZKpNPcrKrQSa70qV/RtVWMv6CmqRHaG1gQvgAYKjNyOpip7G3Io5IDEF4b2cXOlH4G1hbOtjAHQ/7ZS9KrkmJA==”
Packet sample (Decrypted)
Request With last4Digits, cardExpiry, dob
{
"messageCode": 3020,
"clientTxnId": "verifyCard000012",
"requestDateTime": "20220615123143",
"last4Digits": "1036",
"cardExpiry": "0X20",
"dob": "11-07-1993"
}
Request With urn, customerMobile and emailId
{
"messageCode": 3020,
"clientTxnId": "verifyCard0278",
"requestDateTime": "20220615123143",
"urn": "70000000008 ",
"customerMobile": "600140016908",
"emailId": "[email protected]"
}
Response parameters
API error codes
Error Code | Description |
---|---|
0 | SUCCESS |
1001 | CARD_NOT_FOUND |
1030 | INVALID MESSAGE |
1031 | INVALID BANK ID |
1032 | INVALID_CLIENT_CHANNEL |
1049 | INVALID SECURE CODE |
1051 | CHECKSUM FAILURE |
1052 | SYSTEM_ERROR |
1055 | MALFORMED_REQUEST |
1058 | INVALID WALLETS |
1080 | IP_NOT_ALLOWED |
1081 | OPERATION NOT ALLOWED |
1084 | CARD_CUSTOMER_ID_MISMATCH |
1085 | PRODUCT NOT ALLOWED |
1088 | INVALID DATE FORMAT |
1093 | INVALID CLIENT TXN ID |
1262 | CLIENT ID NOT PRESENT |
1264 | BANK ID NOT PRESENT |
1302 | INVALID_CUSTOMER |
1303 | CUSTOMER DETAILS NOT PRESENT |
1304 | MORE THAN ONE CUSTOMER IDENTIFIER NOT ALLOWED |
1310 | XCONSUMERKEY NOT PRESENT |
1311 | SECURE CODE NOT PRESENT |
1320 | REQUEST_DATETIME_IS_MANDATORY |
1332 | URN_MOBILE_EMAIL_MISSING |
1333 | LAST4DIGIT_EXPIRY_DOB_MISSING |
1334 | WRONG_CUSTOMER_IDENTIFIER_NOT_ALLOWED |
1335 | INVALID_LAST_4_DIGIT |
1336 | CUSTOMER_WITH_MULTIPLE_ACCOUNT |
HTTP status code
HTTP Status Code | HTTP Status Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
500 | Internal Server Error |
403 | Forbidden |
404 | Not Found |
503 | Service Unavailable |
Sample response
Packet sample (Encrypted)
{
“token”: “h/0YSUdGzgNsMcmfYAvIIPgF3Z80/kMJkW/7l9wG9L+bXt//P/HBG0NsuoPtbn6ugjzNOLl/wQPJFbCKMqQJtSSQs4JVYBohia1TPP1yJULHN+TLIVKFRZsg0GokTPI+ZKpNPcrKrQSa70qV/RtVWMv6CmqRHaG1gQvgAYKjNyOpip7G3Io5IDEF4b2cXOlH4G1hbOtjAHQ/7ZS9KrkmJA==”}
Packet sample (Decrypted)
Success scenario
{
"urn": 70000000008,
"customerId": "62507sree425",
"responseCode": "00",
"messageCode": 3021,
"clientTxnId": "verifyCard000011",
"clientId": "2000",
"responseDateTime": "20220914144454",
"accosaTransactionId": 487069,
"responseMessage": "SUCCESS",
"bankId": 7000,
"last4Digits": "1036",
"cardType": "TRAVEL CARD",
"isPanValid": "N",
"kycStatus": "NO CDD"
}
Failure scenario
{
"urn": 70000000008,
"responseCode": "1332",
"messageCode": 3021,
"clientTxnId": "verifyCard000039",
"clientId": "wibmobank",
"responseDateTime": "20220914200827",
"accosaTransactionId": 487106,
"responseMessage": "URN_MOBILE_EMAIL_MISSING_IN_REQUEST",
"bankId": 7000
}