Retrieve Customer Record API

The Retrieve Customer Record API return the customer profile based on urn or customer ID or customer mobile or customer email Id or encrypted card number if available.

Environment: https://domain/mob1/api/onboarding/v2/retrieveCustRecord

HTTP Method: POST

📘

Note:

The domain will be shared once this move to respective environment.

Request parameters

<WalletHeader />

Body

Parameter

Description

Example

Encrypted

token
mandatory

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

 

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

Numeric Local Date and time stamp when the transaction originated from the client in YYYYMMDDHHMMSS with time in 24 hr format.
Character Limit - 14

20230511100234

customerMobile
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. Character Limit - 13

919888888888

customerId conditional

String Customer Id (entityCIF), which uniquely identifies the cardholder in the client system. Conditional with mobile number and URN i.e either one of them should be present.
Character Limit - 20

11001188721

emailId
conditional

String Email Address of the cardholder

[email protected]

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

cardNo conditional

String Encrypted card Number of the card holder. Character Limit - 10

UZUTS8wt00q2IZ
fgsdfgsfdgdfsgffsg

📘

Note:

You must post any one of the conditional parameters in request.

Sample request

Request packet (Encrypted)

{
“token”: “h/0YSUdGzgNsMcmfYAvIIPgF3Z80/kMJkW/7l9wG9L+bXt//P/HBG0NsuoPtbn6ugjzNOLl/wQPJFb
CKMqQJtSSQs4JVYBohia1TPP1yJULHN+TLIVKFRZsg0GokTPI+ZKpNPcrKrQSa70qV/RtVWMv6Cmq RHaG1gQvgAYKjNyOpip7G3Io5IDEF4b2cXOlH4G1hbOtjAHQ/7ZS9KrkmJA==”
}

Request Packet (Decrypted)

{
"messageCode": "1010",
"productId": "1",
"clientTxnId": "wibffgjkfdfgffg7f321", "requestDateTime": "2023050914729", "firstName": "SandeepKvP", "lastName": "S",
"mobile": "919888888888", "customerId": "625778hj4fff", "dateOfBirth": "11-07-1993",
"cardProfileId": "30", "sourceAccountType": 11, "docList": [
{
"docType": "Pancard", "docCountry": "India", "docExpiry": "20231201",
"docNumber": "ABCDE1234A" },
{
"docType": "VoterId", "docCountry": "Argentina", "docExpiry": "20231201", "docNumber": "YCV0189823"
},
{
"docType": "Aadhar",
"docCountry": "India,U.S,Argentina", "docExpiry": "20231201", "docNumber": "3849 9070 1992", "cKycDocNo": "123456", "docConsent": "true"
}, {
}, {
"docType": "Passport", "docCountry": "India", "docExpiry": "20231201", "docNumber": "A1234567"
"docType": "Driverlicense", "docCountry": "U.S",
"docExpiry": "20231201", "docNumber": "DL14 20110012345"
} ],
"newCardStatus": "Active",
"loadAmount": "0",
"eventid": 303001
}

Response parameters

Parameter

Description

Example

Encrypted

token

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

 Pl8F5kDZcvADIiursiAvv
bHNuL9Wv5eaFdorGVFU6F
KfIEnV/YskkzJlAov2ZHJ
WnqGNLOXfBq4SQqw8Ep4
sK0gCAAkRXATCb1nSY6s=

Decrypted

Urn

A unique reference number for the generated wallet.

70000000008

customerId

Customer Id(entity CIF), which uniquely identifies the cardholder in the client system

AMLCustomer82

statusDescription

Field to send information about the card status

Active

responseCode

Contains the status of the transaction. 00 indicates success. Please refer Appendix for other response codes

0

messageCode

Code to Identify retrieve customer record api response type

3423

clientTxnId

Value copied from the request

923eh42r3jbd4335r3et53

responseDateTime

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

20220620195326

accosaTransactionID

Unique id for a particular transaction generated in Prepaid

3541

responseMessage

Response message based on response code will be sent

SUCCESS

bankId

Bank Id is provided by Prepaid Aero during program enrolment to uniquely identify the card issuer

7000

availableBalance

Card available balance (implied decimals)

100000

cardStatus

Status of the card.
0 – Active
1 – Icc Authorized
9 – Pre active
21 – Disabled
12 – Temporary Block
13 – Permanent Block
14 – Icc Expired

0

profileId

Example : 150 – Full CDD 30 – Simple CDD

30

Mobile

Mobile number with country code of the cardholder.

919888888888

firstName

First Name of the cardholder

Ranjan

lastName

First Name of the cardholder

S

Dob

Date of Birth of the Customer in DD-MMM-YYYY format.

1993-04-14 00:00:00

updatedOn

Local Date and time stamp of when the card/wallet profile got updated most recently. in DD-MMM-YYYY format

2023-05-11 00:00:00

kycName

This field will contain card Profile name (SIMPLE_CDD, FULL_CDD, NO_CDD etc.)

SIMPLE_CDD

reKyc

ReKyc status of the user:

  • True- Eligible for reKyc
  • False- reKyc Not required

True

docType

Document Type Of the CardHolder. One Card Holder can have many Documents.

Aadhar,Pancard, VoterId, Driverlicense, Passport, jobcard, etc

docNumber

OVD No. need to be passed. like adhar Number ,Pan card Number

3675 XXXX 6015

createdOn

Local Date when the card/wallet profile got created. in DD-MMM-YYYY format

2021-07-25 00:00:00

subwallet_id

Id of the subwallet

“Mob6bbbaa78_1”

default_wallet

Checks if the subwallet is default one or not

1

available_balance

Balance available in the subwallet account. implied decimals applied (2 digit)

“1000000”

account_number

Account number of the subwallet

“604010000478”

account_status

Account status of the subwallet

“0”-activate

subwallet_name

Name of the subwallet

“GPR single wallet”

panValid

Is PAN validated or not

 

clientId

It is unique id for each client

2000

cardNumber

Card Number linked with urn

545454 XXXXXX 3329

lastFourDigit

It is last 4 digit of card Number

3329

cardType

Name of the program/product type

GPR

API error codes

Error CodeDescription
00SUCCESS
1001CARD_NOT_FOUND
1031INVALID_BANK_ID
1032INVALID CLIENT CHANNEL
1034INVALID_MOBILE_NUMBER
1052SYSTEM_ERROR
1054DUPLICATE_REQUEST
1055MALFORMED_REQUEST
1056INVALID MESSAGE CODE
1088INVALID REQUEST DATE FORMAT
1092INVALID_EMAIL_ADDRESS
1093INVALID_CLIENT_TXN_ID
1237DUPLICATE_MOBILE_NUMBER_WITH_MULTIPLE_ACCOUNT
1248INVALID_JWT_TOKEN
1263CUSTOMER_ID_NOT_PRESENT
1264BANK ID NOT PRESENT IN THE REQUEST
1275INVALID_CUSTOMER_ID
1302INVALID_CUSTOMER
1303CUSTOMER_DETAILS_NOT_PRESENT
1304MORE THAN ONE CUSTOMER IDENTIFIER NOT ALLOWED
1307DUPLICATE_EMAIL_ID_LINKED_WITH_MULTIPLE_ACCOUNTS
1320REQUEST_DATETIME_IS_MANDATORY
1500SYSTEM_ERROR_UNKNOWN
1501SYSTEM_ERROR_DB
1503SYSTEM_ERROR_CACHE
1510SYSTEM_ERROR_DROP_REQ
1511ORIGINAL_REQUEST_MISSING
5000DUPLICATE REQUEST

HTTP status code

HTTP Status CodeHTTP Status Description
200OK
400Bad Request
401Unauthorized
403Forbidden
404Not Found
500Internal Server Error
503Service Unavailable

Sample response

Packet sample(Encrypted)

{

{
    “token”: “h/0YSUdGzgNsMcmfYAvIIPgF3Z80/kMJkW/7l9wG9L+bXt//P/HBG0NsuoPtbn6ugjzNOLl/wQPJFbCKMqQJtSSQs4JVYBohia1TPP1yJULHN+TLIVKFRZsg0GokTPI+ZKpNPcrKrQSa70qV/RtVWMv6CmqRHaG1gQvgAYKjNyOpip7G3Io5IDEF4b2cXOlH4G1hbOtjAHQ/7ZS9KrkmJA==”}

Packet sample (Decrypted)

{
   "responseCode":"00",
   "messageCode":3423,
   "clientTxnId":"923eh42r3jbd4335r3et1933",
   "clientId":"2000",
   "responseDateTime":"20230615234034",
   "accosaTransactionId":3541,
   "responseMessage":"SUCCESS",
   "bankId":7000,
   "cardList":[
      {
         "cardNumber":"817391 XXXXXX 8305",
         "lastFourDigit":"8305",
         "entityName":"ADMINENTITY",
         "cardType":"GPR",
         "kycName":"MIN_KYC",
         "profileId":30,
         "cardStatus":0,
         "availableBalance":10000,
         "reKyc":false,
         "createdOn":"15-Jun-2023",
         "updatedOn":"15-Jun-2023",
         "ovdName":"",
         "firstName":"Sourav",
         "lastName":"mishra",
         "dob":"11-Jul-1993",
         "urn":124,
         "customerId":"62508sree0061",
         "mobile":"919959788706",
         "email":"[email protected]",
         "statusDescription":"Active",
         "docList":[

         ],
         "transactionProfiles":[
            {
               "transactionProfileId":1,
               "status":false,
               "transactionType":"e-Com",
               "transactionRegionName":"DOMESTIC"
            },
            {

            }
         ],
         "transactionProfileId":2,
         "status":false,
         "transactionType":"POS",
         "transactionRegionName":"DOMESTIC""subwalletListDetails":[
            {
               "subwallet_id":"MOB34e36f0d_1",
               "default_wallet":1,
               "available_balance":"0",
               "account_number":"601000210",
               "account_status":"0",
               "subwallet_name":"GPR Wallet"
            },
            {
               "subwallet_id":"MOB34e36f0d_2",
               "default_wallet":0,
               "available_balance":"0",
               "account_number":"601000229",
               "account_status":"0",
               "subwallet_name":"Meal Wallet "
            },
            {
               "subwallet_id":"MOB34e36f0d_3",
               "default_wallet":0,
               "available_balance":"10000",
               "account_number":"601000238",
               "account_status":"0",
               "subwallet_name":"Fuel Wallet "
            }
         ],
         "panValid":false
      }
   ]
}