Card Replacement API

The Card Replacement API facilitates the replacement of the existing card with the new non-perso (instakit card). The old and new card URNs will be required to perform the card replacement. The new card will be activated and linked to the user’s wallet/account.

📘

Note:

The old card will be permanently blocked if not already.

Environment

Sample request
curl --request POST \
     --url https://payusandbox-kong.pc.enstage-sas.com/uat/sbx/api/onboarding/v3/replaceCard \
     --header 'X-Consumer-Custom-ID: F42BC4E7B801C834B630DE498473533F' \
     --header 'bankId: 6060' \
     --header 'clientId: 1060' \
     --header 'content-type: application/json' \
     --header 'entityId: 100' \
     --header 'secureCode: pu8gSMLNE7pNv36IlUmstU' \
     --header 'x-api-key: 4A02C4267C9A97A1488AB3259FD1A725'
Response parameters (Decrypted)

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)ConditionalAPI Unique IDentifier.
clientTxnIdString (100)ConditionalEchoed from the request.
newUrnNumeric (11)MandatoryNew activated card’s URN.
Sample response (Decrypted)
{
	"responseCode": "00",
	"messageCode": 1211,
	"clientTxnId": "test8fhjkj878j1",
	"clientId": "2030",
	"responseDateTime": "20240206170243",
	"accosaTransactionId": 11671,
	"responseMessage": "SUCCESS",
	"bankId": 7030,
	"newUrn": 70000001244
}
Error codes
Error CodeDescription
00SUCCESS
1001CARD NOT FOUND
1004CARD ALREADY ACTIVATED
1011CARD PERMANENT BLOCK
1031INVALID BANK ID
1032INVALID CLIENT CHANNEL
1049INVALID SECURE CODE
1052SYSTEM ERROR
1053REQUEST NOT FOUND
1056INVALID MESSAGE CODE
1081OPERATION NOT ALLOWED
1088INVALID DATE format
1093INVALID CLIENT TXN ID
1133Card is already expired. Please try with different card
1134Card cannot be activated as Minimum Usage validity is 6 months for this Product.
1283LOGIN SERVICE INTEGRATION CALL FAILURE
1295PRDUCT_ID_CANNOT_BE_BLANK
1303CUSTOMER DETAILS NOT PRESENT
1320REQUEST_DATETIME_IS_MANDATORY
1342Unique IDENTIFIER REQUIRED LIKE URN OR CUSTOMERID
1346URN IS MANDATORY
1359INVALID LOAD AMOUNT
1376INVALID UNLOAD AMOUNT
1398ACCOUNTNO SHOULD BE PRESENT
1500SYSTEM ERROR
1502SYSTEM ERROR
3008OLD URN IS MANDATORY
3009NEW URN IS MANDATORY
3010CARDHOLDER ALREADY EXIST FOR NEW URN
3011OLD URN IS ALREADY PERMANENTLY BLOCKED
5003BANK ID NOT WITH CLIENT
6905INVALID ACCOUNT_NUMBER_IN_REQUEST
7953ACCOUNT NOT ACTIVE
9343CLIENT TXN ID IS MANDATORY
10177CARD NOT FOUND
303178Request Date Time Length should not be more than 14 characters

Request parameters

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