Retrieve Customer Record API

The Retrieve Customer Record API returns the customer profile based on URN/customer ID/customer mobile number.

Environment

Sandboxpayusandbox-kong.pc.enstage-sas.com/api/v2/encrypt
ProductionContact your WIBMO KAM or support.
Sample request
curl --request POST \
     --url https://payusandbox-kong.pc.enstage-sas.com/uat/sbx/api/onboarding/v3/retrieveCustRecord \
     --header 'content-type: application/json' \
     --header 'x-api-key: 4A02C4267C9A97A1488AB3259FD1A725' \
     --data '
{
  "token": "e3ln1sSCTF9rgy9AjN5QNAkJruloChEdm7C39FVnfczb5gfIGv/Vg6iSM0ZmzgSwF64Z7yRQ8C+jmDZEUC2rmuM9CCqk5qMQD/AUI7IrXMnSZFV1rEhbGRMJVg0MGxbAa+7+N+Ea1HZk72TlSxUbZsSeRHedWZ+3GsiqU42TRYwQNl5crWPKxtpXRpv9LudcLo56rL5xtHGrNyIzown1d2ah3Lvo4LAQg+6gEyopi+qt6Fl11MJINPAA50OZ5bUkKz8IZq4lTVEMiF7t4BaSpXjv0/FLDG2C4vGtzqU10lyWd2KC+/SZjIpVLQuP7iIk",
  "clientId": "1060",
  "bankId": "6060",
  "entityId": "100",
  "secureCode": "pu8gSMLNE7pNv36IlUmstU",
  "X-Consumer-Custom-ID": "serfewrfesf"
}
'
Response parameters

This API will provide a token in the response that must be decrypted using the Decrypt API. The decrypted response is similar to the following:

ParameterTypeParameter RequirementDescription
messageCodeNumeric (4)MandatoryAPI response type identifier
clientTxnIdString (100)MandatoryEchoed from the request.
accosaTransactionIdNumeric (10)MandatoryUnique ID for a particular transaction generated in Prepaid
mobileNumeric(20)MandatoryMobile number with country code of the customer.
firstNameString(50)MandatoryCustomer first Name
lastNameString(50)MandatoryCustomer last name
dobNumeric(8)MandatoryDate of Birth of the Customer in DD-MMM-YYYY format.

E.g. 14-Apr-1993
createdOnNumeric(14)OptionalLocal date when the card/wallet profile was created. In DD-MMM-YYYY format.

E.g. 14-Apr-1993
updatedOnNumeric(14)OptionalLocal timestamp of when the card/wallet profile got updated most recently. In DD-MMM-YYYY format.
riskCategoryString (20)OptionalType of Risk. (Low, Medium, High)
riskScoreNumeric(3)OptionalRisk score in the system.
kycNameString(100)MandatoryThis field will contain the customer’s KYC profile. E.g. MIN_KYC
profileIdNumeric(3)Mandatory150 – Full KYC 

30 – Min KYC

300 – Shortfall KYC
reKycBooleanOptionaltrue - ReKYC allowed.

false - ReKYC not allowed.

Applicable only when ReKYC of the customer needs to be done.
reKycExpiryNumeric (8)OptionalReKYC expiry MMYY format.
form60BooleanOptionalStates whether the form60 was submitted by the customer.
panValidBooleanMandatorytrue/false

Is pan validated or not
docList.docTypeString(20)OptionalDocument type.
docList.docNumberString(20)OptionalOVD number stored in the system.
cardList.urnNumeric (11)ConditionalUnique reference number for the customer
cardList.availableBalanceNumeric (12)ConditionalAvailable balance in implied decimals.
cardList.cardNumberNumericConditionalMasked card number unique to each customer.
cardList.cardStatusString (2)ConditionalStatus of the card:

- 0 – Active
- 1 – ICC Authorized
- 9 – Pre active
- 21 – Disabled
- 12 – Temporary Block
- 13 – Permanent Block
- 14 – ICC Expired
cardList.statusDescriptionString (30)ConditionalStatus of the card based on the cardStatus parameter.
cardList.lastFourDigitString(4)ConditionalIt is last 4 digit of card Number
cardList.transactionProfiles.transactionProfileIdNumeric (3)MandatoryTransaction profile ID refers to the transaction channel code.
cardList.transactionProfiles.statusBooleanMandatoryWhether the channel is active or not.
cardList.transactionProfiles.transactionTypeString (15)MandatoryTransaction channel name
cardList.transactionProfiles.transactionRegionNameString (15)MandatoryTransaction channel region (domestic or international).
cardList.subwalletListDetails.accountNumberValidityNumeric (4)MandatoryExpiry of the card in format MMYY
cardList.subwalletListDetails.subsubwallet_idStringMandatorySub-wallet ID
cardList.subwalletListDetails.default_walletNumeric(1)MandatoryFlag to identify whether the wallet is default or not. (0 or 1)
cardList.subwalletListDetails.available_balanceStringMandatoryBalance available in the wallet account. Implied decimals applied.
cardList.subwalletListDetails.account_numberStringMandatoryWallet unique identifier.
cardList.subwalletListDetails.accountStatusStringMandatoryAccount status of the wallet.
cardList.subwalletListDetails.subsubwallet_nameStringMandatoryName of the wallet
Sample response (Decrypted)
{
	"responseCode": "00",
	"messageCode": 1931,
	"clientTxnId": "923eh42r3jbd4335r3et1933",
	"clientId": "2000",
	"responseDateTime": "20230615234034",
	"accosaTransactionId": 3541,
	"responseMessage": "SUCCESS",
	"bankId": 7000,
	"entityName": "ADMINENTITY",
	"kycName": "MIN_KYC",
	"profileId": 30,
	"createdOn": "15-Jun-2023",
	"updatedOn": "15-Jun-2023",
	"ovdName": "",
	"firstName": "Sourav",
	"lastName": "ibmo",
	"dob": "11-Jul-1993",
	"customerId": "62508sree0061",
	"mobile": "919959788706",
	"reKyc": false,
	"riskCategory": "Low",
	"riskScore": 12,
	"reKycExpiry": "0822",
	"form60": true,
	"form60Expiry": "032",
	"email": "[email protected]",
	"docList": [],
	"panValid": false,
	"migratedUserFlag": true
},
"cardList": [
	{
		"cardNumber": "817391 XXXXXX 8305",
		"lastFourDigit": "8305",
		"productProfile": "GPR",
		"cardStatus": 0,
		"availableBalance": 10000,
		"createdOn": "15-Jun-2023",
		"updatedOn": "15-Jun-2023",
		"urn": 124,
		"statusDescription": "Active",
		"transactionProfiles": [
			{
				"transactionProfileId": 1,
				"status": false,
				"transactionType": "e-Com",
				"transactionRegionName": "DOMESTIC"
			},
			{
				"transactionProfileId": 2,
				"status": false,
				"transactionType": "POS",
				"transactionRegionName": "DOMESTIC"
			}
		],
		"subwalletListDetails": [
			{
				"subwallet_id": "20034e366091",
				"default_wallet": 1,
				"available_balance": "0",
				"account_number": "601000210",
				"account_status": "0",
				"subwallet_name": "GPR Wallet",
				"accountNumberValidity": "0822"
			},
			{
				"subwallet_id": "MOB34e36f0d_2",
				"default_wallet": 0,
				"available_balance": "0",
				"account_number": "601000229",
				"account_status": "0",
				"subwallet_name": "Meal Wallet",
				"accountNumberValidity": "0822"
			}
		]
	}
]
Response parameters
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

Request parameters

Language
URL
Click Try It! to start a request and see the response here!