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 |
|
|
Decrypted | ||
messageCode |
| 1080 |
clientTxnId |
| GOUd789hhhjfscs |
requestDateTime |
| 20230511100234 |
customerMobile |
| 919888888888 |
customerId conditional |
| 11001188721 |
emailId |
| |
urn |
| 70000000008 |
cardNo conditional |
| UZUTS8wt00q2IZ |
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 |
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 |
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 |
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 Code | Description |
---|---|
00 | SUCCESS |
1001 | CARD_NOT_FOUND |
1031 | INVALID_BANK_ID |
1032 | INVALID CLIENT CHANNEL |
1034 | INVALID_MOBILE_NUMBER |
1052 | SYSTEM_ERROR |
1054 | DUPLICATE_REQUEST |
1055 | MALFORMED_REQUEST |
1056 | INVALID MESSAGE CODE |
1088 | INVALID REQUEST DATE FORMAT |
1092 | INVALID_EMAIL_ADDRESS |
1093 | INVALID_CLIENT_TXN_ID |
1237 | DUPLICATE_MOBILE_NUMBER_WITH_MULTIPLE_ACCOUNT |
1248 | INVALID_JWT_TOKEN |
1263 | CUSTOMER_ID_NOT_PRESENT |
1264 | BANK ID NOT PRESENT IN THE REQUEST |
1275 | INVALID_CUSTOMER_ID |
1302 | INVALID_CUSTOMER |
1303 | CUSTOMER_DETAILS_NOT_PRESENT |
1304 | MORE THAN ONE CUSTOMER IDENTIFIER NOT ALLOWED |
1307 | DUPLICATE_EMAIL_ID_LINKED_WITH_MULTIPLE_ACCOUNTS |
1320 | REQUEST_DATETIME_IS_MANDATORY |
1500 | SYSTEM_ERROR_UNKNOWN |
1501 | SYSTEM_ERROR_DB |
1503 | SYSTEM_ERROR_CACHE |
1510 | SYSTEM_ERROR_DROP_REQ |
1511 | ORIGINAL_REQUEST_MISSING |
5000 | DUPLICATE REQUEST |
HTTP status code
HTTP Status Code | HTTP Status Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
503 | Service 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
}
]
}