post https://payusandbox-kong.pc.enstage-sas.com/api/v2/encrypt
The Encrypt API request parameters varies based on the API with which it is used for. This section describes the Encrypt API used with Retrieve Custoner Record API
Sandbox | payusandbox-kong.pc.enstage-sas.com/api/v2/encrypt |
Production | Contact your WIBMO KAM or support. |
Sample request
curl --request POST \
--url https://payusandbox-kong.pc.enstage-sas.com/api/v2/encrypt \
--header 'content-type: application/json' \
--header 'x-api-key: 4A02C4267C9A97A1488AB3259FD1A725' \
--data '
{
"messageCode": 1930,
"clientTxnId": "Register_20240408101003",
"requestDateTime": "20240408101000",
"customerMobile": "9990099999",
"customerId": "000000000081",
"urn": "5",
"emailId": "[email protected]"
}
'
Sample response
{
"token": "e3ln1sSCTF9rgy9AjN5QNAkJruloChEdm7C39FVnfczb5gfIGv/Vg6iSM0ZmzgSwF64Z7yRQ8C+jmDZEUC2rmuM9CCqk5qMQD/AUI7IrXMnSZFV1rEhbGRMJVg0MGxbAa+7+N+Ea1HZk72TlSxUbZsSeRHedWZ+3GsiqU42TRYwQNl5crWPKxtpXRpv9LudcLo56rL5xtHGrNyIzown1d2ah3Lvo4LAQg+6gEyopi+qt6Fl11MJINPAA50OZ5bUkKz8IZq4lTVEMiF7t4BaSpXjv0/FLDG2C4vGtzqU10lyWd2KC+/SZjIpVLQuP7iIk"
}
Error codes
Error Code | Description |
---|---|
1262 | CLIENT ID NOT PRESENT IN THE REQUEST |
1264 | BANK ID NOT PRESENT IN THE REQUEST |
1310 | XCONSUMERKEY NOT PRESENT IN REQUEST |
1311 | SECURE CODE NOT PRESENT IN REQUEST |