Transaction Profile API

The Transaction Profile API will be used to enable/disable the ECom/PoS/ATM transactions for the card.

Environment

Sample request
curl --request PATCH \
     --url https://payusandbox-kong.pc.enstage-sas.com/uat/sbx/api/onboarding/v2/transactionProfile \
     --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' \
     --data '
{
  "token": "lJDa/wRlUCtCEQz1ItXbiQTXSmkAUj5+OsBWbNgkGFQf/+8kuRbY/beo+ncYomI4WnOZZNNzMXhltlglzZ/b+PcVP1hLF4v7Zdc/q2Hqig6XGFnY0OI8wY57wkozVyVWEMbSnhiL97s5CAiaRXCaCAWN3F+8kt9b08PeB5s/8acKsdk3Id4pNldWPebORA2lMcwHjNhXslRu3e97saSNKKORMSgnHIaj5uM6piZoa0zC2T/uZ2uprQD9YtCjK+KKCKiOrlOdW7KYUk9DiJpM8plR4IMa/MGn8lC3E3bex5/zwEBmtyoGNiSrJFgsyi2A"
}
'
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 RequirementDescriptiona
messageCodenumeric(4)MandatoryUnique API identifier.
clientTxnIdstring(100)MandatoryEchoed from the request.
responseDateTimenumeric(14)MandatoryResponse date time in the format YYYYMMDDHHMMSS with time in 24-hour format
accosaTransactionIdnumeric(10)MandatoryUnique ID for a particular transaction generated in Prepaid system.
responseCodestring(4)MandatoryRepresents the status of the transaction.
responseMessageString(100)OptionalResponse message based on the response code.
bankIdnumeric(4)MandatoryEchoed from the request.
clientIdString(15)MandatoryEchoed from the request.
descriptionString(100)OptionalReserved field to send information to client
urnnumeric(11)MandatoryEchoed from the request.
customerIdstring(20)OptionalUnique ID for the Customer reference.
transactionProfileIdnumeric(2)MandatoryEchoed from the request.
statusbooleanMandatoryEchoed from the request.
updateFlagString(20)MandatoryStatus of the transaction channel update. Success/Failure.
transactionTypebooleanMandatoryEchoed from the request.
Sample response
{ 
    "urn": 70000000008, 
    "customerId": "1665383043918", 
    "description": "Transaction Status Update", 
    "responseCode": "00", 
    "messageCode": 3071, 
    "clientTxnId": "transProfile010", 
    "clientId": "2000", 
    "responseDateTime": "20221019234516", 
    "accosaTransactionId": 497619, 
    "responseMessage": "SUCCESS", 
    "bankId": 7000, 
    "transactionProfile": [ 
        { 
            "transactionProfileId": 1, 
            "status": false, 
            "updateFlag": "SUCCESS", 
            "transactionType": "e-Com" 
        } 
    ] 
} 
API Response Code
Error CodeDescription
00SUCCESS
1001CARD_NOT_FOUND
1030INVALID MESSAGE
1031INVALID BANK ID
1032INVALID_CLIENT_CHANNEL
1049INVALID SECURE CODE
1051CHECKSUM FAILURE
1052SYSTEM_ERROR
1055MALFORMED_REQUEST
1058INVALID WALLETS
1080IP_NOT_ALLOWED
1081OPERATION NOT ALLOWED
1084CARD_CUSTOMER_ID_MISMATCH
1088INVALID REQUEST DATE format
1093INVALID CLIENT TXN ID
1262CLIENT ID NOT PRESENT
1264BANK ID NOT PRESENT
1303CUSTOMER DETAILS NOT PRESENT
1310XCONSUMERKEY NOT PRESENT
1311SECURE CODE NOT PRESENT
1320REQUEST_DATETIME_IS_MANDATORY
1348TRANSACTION_PROFILE_IS_MANDATORY
1349INVALID_TRANSACTION_TYPE
1350TRANSACTION_PROFILE_STATUS_IS_MANDATORY
1351TRANSACTION_TYPE_NOT_CONFIGURED
1352TRANSACTION_PROFILE_NOT_CONFIGURED
1370INVALID ENABLEMENT TYPE
1362SUBWALLET ID AND ACCOUNT NUMBER BOTH CANNOT BE PASSED
1377TRANSACTION PROFILE AND TRANSACTION TYPE MISMATCH
1500SYSTEM ERROR
Language
URL
Click Try It! to start a request and see the response here!