Verify Cardholder API

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

ParameterDescriptionExample
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 Prepaid2000
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., 100100
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.

ParameterDescriptionExample

Encrypted

token
mandatory
String Token is the Encrypted body of the below request AES-192-CBC bits EncryptionPl8F5kDZcvADIiursiA
vvbHNuL9Wv5eaFdorGV
FU6FKfIEnV/YskkzJlA
ov2ZHJWnqGNLOXfBq4S
Qqw8Ep4sK0gCAAkRXAT
Cb1nSY6s=

Decrypted

messageCode
mandatory
Numeric Code to Identify load card request type. Character Limit - 41080
clientTxnId
mandatory
String Unique ID generated by the client for each transaction. Character Limit - 14GOUd789hhhjfscs
requestDateTime
mandatory
NumericLocal Date and time stamp when the transaction originated from the client in YYYYMMDDHHMMSS with time in 24 hr format
Character Limit - 13
20161031214559
urn
conditional
String A unique reference number for the generated card. Need to share this in request body of the APIs. Conditional with mobile number and Customer Id i.e either one of them should be present.
Character Limit - 11.
70000000008
cardholderMobile
conditional
Numeric Mobile number of the cardholder. Conditional with customer id and Urn i.e either one of them should be present. Please append 91 at the beginning of this field for India international code. This parameter is conditional, so required with urn.
Character Limit - 13
919888888888
last4Digits
conditional
NumericThis parameter must contain the last 4 digit of card number. This parameter is conditional, so required with urn.
Character Limit - 4
4664
email
conditional
String Email Address of the nominee.
Character Limit - 50
cardExpiry
conditional
Numericnewcardstatus = “active” – eventId 303001 for card activation. This parameter is conditional, so required with email. Character Limit - 100X21
dob
conditional
NumericDate of Birth of the Customer in dd-MM-yyyy format. This parameter is conditional, so required with email.
Character Limit - 8
12-06-2000

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

ParameterDescriptionExample

Encrypted

tokenToken is the Encrypted body of the below request AES-192-CBC bits EncryptionPl8F5kDZcvADIiursiAvvbHNuL9Wv5eaFdorGVFU6FKfIEnV/YskkzJlAov2ZHJWnqGNLOXfBq4SQqw8Ep4sK0gCAAkRXATCb1nSY6s=

Decrypted</h3>

messageCodeCode to Identity create card response type1011
clientTxnIdValue copied from the request20150701235959xhstiesqfds
responseDateTimeResponse date time in the format YYYYMMDDHHMMSS with time in 24 hr format20161031214559
customerIdCustomer ID generated by client stored against customer’s prepaid instrument.IN2016201611
responseCodeContains the status of the transaction. 201 indicates CREATED. Please refer Appendix for other response codes201
responseMessageResponse message based on response code will be sentCard creation successful
urnA unique reference number for the generated card/wallet by Prepaid system70000000008
cardTypeDefines the type of card either: Gift,GPR,Travel etc..Gift
isPanValidNotify whether the pan is validated or notY
bankIdValue copied from request header7000
last4digitsLast 4 digit of the customer card number3781
clientIdUnique ID for client2000
keyStatusThis profile ID indicates the KYC type of the customer Simple CDD (Simple CDD with cashloading facility) Full CDDFULL_CDD

API error codes

Error CodeDescription
0SUCCESS
1001CARD_NOT_FOUND
1030INVALID MESSAGE
1031INVALID BANK ID
1032INVALID_CLIENT_CHANNEL
1049INVALID SECURE CODE
1051CHECKSUM FAILURE
1052SYSTEM_ERROR
1055MALFORMED_REQUEST
1058INVALID WALLETS
1080IP_NOT_ALLOWED
1081OPERATION NOT ALLOWED
1084CARD_CUSTOMER_ID_MISMATCH
1085PRODUCT NOT ALLOWED
1088INVALID DATE FORMAT
1093INVALID CLIENT TXN ID
1262CLIENT ID NOT PRESENT
1264BANK ID NOT PRESENT
1302INVALID_CUSTOMER
1303CUSTOMER DETAILS NOT PRESENT
1304MORE THAN ONE CUSTOMER IDENTIFIER NOT ALLOWED
1310XCONSUMERKEY NOT PRESENT
1311SECURE CODE NOT PRESENT
1320REQUEST_DATETIME_IS_MANDATORY
1332URN_MOBILE_EMAIL_MISSING
1333LAST4DIGIT_EXPIRY_DOB_MISSING
1334WRONG_CUSTOMER_IDENTIFIER_NOT_ALLOWED
1335INVALID_LAST_4_DIGIT
1336CUSTOMER_WITH_MULTIPLE_ACCOUNT

HTTP status code

HTTP Status CodeHTTP Status Description
200OK
400Bad Request
401Unauthorized
500Internal Server Error
403Forbidden
404Not Found
503Service 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
}