Statement Inquiry API

The Statement Inquiry API fetches the transactions on a wallet/card within the specified date range and the balance. This API includes the following financial and non-financial transactions:

  • Financial: network transactions and wallet (load, unload, fund transfer).
  • Non-financial: reset PIN, block, and unblock.

📘

Note:

The Card Inquiry API will not provide the transaction history of the card.

Sample request
curl --request POST \
     --url https://payusandbox-kong.pc.enstage-sas.com/uat/sbx/api/onboarding/v3/statementInquiry \
     --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": "PvLNIjKAREzAVW6+GKpbcmtepBQ5LfPNuRoVWhf0oyBaFYFDSCY9LxfrGa39nj7Ff0wnoj4L31uFU2kXrc/WSeTuURE4CGm4Lgzl61DHQLQQ8n4Gcm25YE8UQaHBJsQwugGMWUmIw3yrtRpKS1b0z679bLT1wtaFjF2TvUbXfI0e/0AGd/4WvbvcDChXQ6LUIFC80mxjinbTp6V4CYgIxCP0O7zaZYJ8I1nput5ZiV9WbWHR9CroIWe7Cs108Y2jD+mbyUAXKP4C3IqySZCQqNVqrf9ev6GWNZvx5aN9Af5Rlh+wh7VFyvvNXZGd/SrdDUDCPNIjAvLYlwVkunKovsnnl+wVNBIcVkB06O/K9JfBoJIl3u2BhbRwCg7MD89s"
}
'

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)MandatoryCode to Identify "Transaction Statement Inquiry" API response
clientTxnIdstring(100)MandatoryEchoed from the request
bankIdNumeric(4)MandatoryValue echoed from the request header.
clientIdString(15)MandatoryValue echoed from the request header.
responseDateTimenumeric(14)MandatoryResponse date time in the format YYYYMMDDHHMMSS with time in 24-hour format
urnNumeric(10)MandatoryEchoed from the request.
customerIdString(20)MandatoryEchoed from the request.
accosaTransactionIdnumeric(10)MandatoryUnique ID for a particular transaction generated in the Prepaid system.
responseCodestring(4)MandatoryRepresents the status of the transaction.
responseMessagestring(100)MandatoryResponse message based on the response code.
descriptionString(100)OptionalReserved field to send information to client.
transactionDetailsObject arrayMandatoryThis object array will contain the complete transaction information list.
Sample response (Decrypted)
{
    "urn": 70000000884,
    "customerId": "000000000021",
    "description": "Transaction Statement Details",
    "responseCode": "00",
    "messageCode": 3541,
    "clientTxnId": "BDO_TransactionStatement_Inquiry11",
    "clientId": "1040",
    "responseDateTime": "20231220122317",
    "accosaTransactionId": 10578,
    "responseMessage": "SUCCESS",
    "bankId": 6010,
    "transactionDetails": [
        {
            "txnId": 2089,
            "txnDateTime": "2023-09-24 12:46:02.0",
            "txnAmount": "2730.00",
            "txnType": "AUTHORIZATION_REQUEST",
            "txnMode": "DR",
            "txnStatus": "Open",
            "cardAcceptorName": "Merchant name",
            "mcc": "5999",
            "approvalCode": "060WN5",
            "txnCurrencyCode": "840",
            "eventId": "105010",
            "closingBal": "355.00",
            "rrn": "085001200001"
        },
        {
            "txnId": 2090,
            "txnDateTime": "2023-09-24 12:46:44.0",
            "txnAmount": "2730.00",
            "txnType": "AUTHORIZATION_REQUEST",
            "txnMode": "DR",
            "txnStatus": "Open",
            "cardAcceptorName": "Merchant name",
            "mcc": "5999",
            "approvalCode": "060WN6",
            "txnCurrencyCode": "840",
            "eventId": "105010",
            "closingBal": "355.00",
            "rrn": "085001200002"
        },
        {
            "txnId": 2074,
            "txnDateTime": "2023-09-24 11:59:49.0",
            "txnAmount": "234.26",
            "txnType": "ATM_CASH_WITHDRAWAL_REQUEST",
            "txnMode": "DR",
            "txnStatus": "Open",
            "cardAcceptorName": "MSR MERCHANT",
            "mcc": "6011",
            "approvalCode": "060H7L",
            "txnCurrencyCode": "978",
            "eventId": "130030",
            "closingBal": "0.00",
            "rrn": "085000400003"
        },
        {
            "txnId": 2092,
            "txnDateTime": "2023-09-24 12:47:21.0",
            "txnAmount": "2730.00",
            "txnType": "AUTHORIZATION_REQUEST",
            "txnMode": "DR",
            "txnStatus": "Open",
            "cardAcceptorName": "Merchant name",
            "mcc": "5999",
            "approvalCode": "060WN7",
            "txnCurrencyCode": "840",
            "eventId": "105010",
            "closingBal": "8350.00",
            "rrn": "085001200003"
        }
    ]
}
Error codes (Decrypted)
Error CodeDescription
00SUCCESS
1001CARD_NOT_FOUND
1030INVALID MESSAGE COD
1031INVALID BANK ID
1032INVALID_CLIENT_CHANNEL
1049INVALID SECURE CODE
1052SYSTEM_ERROR
1055MALFORMED_REQUEST
1056INVALID MESSAGE CODE
1081OPERATION NOT ALLOWED
1083URN AND LAST 4 DIGITS MISMATCH
1084URN AND CUSTOMER ID MISMATCH
1085REQUESTOR UNAUTHORIZED FOR URN OR PRODUCT
1088INVALID DATE format
1093INVALID CLIENT TXN ID
1116CARD AML PROFILE MISSING
1262CLIENT ID NOT PRESENT
1264BANK ID NOT PRESENT
1310XCONSUMERKEY NOT PRESENT
1311SECURE CODE NOT PRESENT
1320REQUEST_DATETIME_IS_MANDATORY
1346URN_IS_MANDATORY
1500SYSTEM ERROR
1501SYSTEM ERROR(DB)
1501SYSTEM ERROR
5003CLIENT_NOT_CONFIGURED_UNDER_BANK_ID
9329LAST 4 DIGITS IS MANDATORY
9343CLIENT TXN ID IS MANDATORY
9344FROM DATE CANNOT BE GREATER THAN TO DATE
9345DIFFERENCE BETWEEN FROM DATE AND TO DATE GREATER THAN DEFINED IN DB
10108CUSTOMER ID MISSING

Request parameters

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