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

<WalletHeader />

Body

📘

Note:

Encryption or decryption methodology is AES-192-CBC bits encryption.

Parameter

Description

Example

Encrypted

token
mandatory

String Token is the Encrypted body of the below request AES-192-CBC bits Encryption

Pl8F5kDZcvADIiursiA
vvbHNuL9Wv5eaFdorGV
FU6FKfIEnV/YskkzJlA
ov2ZHJWnqGNLOXfBq4S
Qqw8Ep4sK0gCAAkRXAT
Cb1nSY6s=

Decrypted

messageCode
mandatory

Numeric Code to Identify load card request type.

Character Limit - 4

1080

clientTxnId
mandatory

String Unique ID generated by the client for each transaction.

Character Limit - 14

GOUd789hhhjfscs

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 - 10

0X21

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

Parameter

Description

Example

Encrypted

token

Token is the Encrypted body of the below request AES-192-CBC bits Encryption

Pl8F5kDZcvADIiursiAvvbHNuL9Wv5eaFdorGVFU6FKfIEnV/YskkzJlAov2ZHJWnqGNLOXfBq4SQqw8Ep4sK0gCAAkRXATCb1nSY6s=

Decrypted

messageCode

Code to Identity create card response type

1011

clientTxnId

Value copied from the request

20150701235959xhstiesqfds

responseDateTime

Response date time in the format YYYYMMDDHHMMSS with time in 24 hr format

20161031214559

customerId

Customer ID generated by client stored against customer’s prepaid instrument.

IN2016201611

responseCode

Contains the status of the transaction. 201 indicates CREATED. Please refer Appendix for other response codes

201

responseMessage

Response message based on response code will be sent

Card creation successful

urn

A unique reference number for the generated card/wallet by Prepaid system

70000000008

cardType

Defines the type of card either: Gift,GPR,Travel etc..

Gift

isPanValid

Notify whether the pan is validated or not

Y

bankId

Value copied from request header

7000

last4digits

Last 4 digit of the customer card number

3781

clientId

Unique ID for client

2000

keyStatus

This profile ID indicates the KYC type of the customer Simple CDD (Simple CDD with cashloading facility) Full CDD

FULL_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
}