post https://payusandbox-kong.pc.enstage-sas.com/api/v2/encrypt
This API is used to encrypt the payload for the Card Wallet Channel Control API.
Sample request
curl --request POST \
--url https://payusandbox-kong.pc.enstage-sas.com/api/v2/encrypt \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: 4A02C4267C9A97A1488AB3259FD1A725' \
--data '
{
"messageCode": 1280,
"clientTxnId": "Register_20240408101003",
"requestDateTime": "20240408101000",
"urn": "101",
"enablementType": 1,
"transactionProfile": [
{
"transactionProfileId": "354355",
"transactionType": "NFC",
"status": "true"
}
]
}
'
Sample response
Success scenario
{
"token": "lJDa/wRlUCtCEQz1ItXbiQTXSmkAUj5+OsBWbNgkGFQf/+8kuRbY/beo+ncYomI4WnOZZNNzMXhltlglzZ/b+PcVP1hLF4v7Zdc/q2Hqig6XGFnY0OI8wY57wkozVyVWEMbSnhiL97s5CAiaRXCaCAWN3F+8kt9b08PeB5s/8acKsdk3Id4pNldWPebORA2lMcwHjNhXslRu3e97saSNKKORMSgnHIaj5uM6piZoa0zC2T/uZ2uprQD9YtCjK+KKCKiOrlOdW7KYUk9DiJpM8plR4IMa/MGn8lC3E3bex5/zwEBmtyoGNiSrJFgsyi2A"
}
Failure scenario
- API key is not provided or invalid API key in the x-api-key parameter.
{
"message": "No API key found in request"
}