Information

This is a sub-module with APIs for fetching the latest balance and statement of the linked business account.

Balance

Fetch balance for the linked account.

curl --location --request GET 'https://in.staging.decentro.tech/v2/banking/account/XXXXXXXXXXX/balance' \
--header 'client_id: <YOUR_CLIENT_ID>' \
--header 'client_secret: <YOUR_CLIENT_SECRET>' \
--header 'module_secret: <YOUR_BANKING_MODULE_SECRET>' \
--header 'provider_secret: <YOUR_CHOSEN_PROVIDER_SECRET>'
{
  "decentroTxnId": "DCTRTXXXXXXXXXXXXXXXXX",
  "status": "SUCCESS",
  "responseCode": "S00000",
  "message": "Balance retrieved successfully",
  "data": {
    "type": "BUSINESS",
    "accountNumber": "<account_number>",
    "presentBalance": 100
  }
}

Statement

Fetch statement for the linked account.

curl --location --request GET 'https://in.staging.decentro.tech/v2/banking/account/XXXXXXXXXX/statement?from=2020-10-01&to=2020-10-10' \
--header 'client_id: <YOUR_CLIENT_ID>' \
--header 'client_secret: <YOUR_CLIENT_SECRET>' \
--header 'module_secret: <YOUR_BANKING_MODULE_SECRET>' \
--header 'provider_secret: <YOUR_CHOSEN_PROVIDER_SECRET>'
{
  "decentroTxnId": "DCTRTXXXXXXXXXXXXXXXXX",
  "status": "SUCCESS",
  "responseCode": "S00000",
  "message": "Statement retrieved successfully",
  "data": {
    "accountNumber": "<account_number>",
    "name": "<account_name>",
    "ifsc": "ICIC0003132",
    "branchAddress": "<branch_address>",
    "totalCount": 2,
    "withdrawalCount": 1,
    "depositCount": 1,
    "openingBalance": 100,
    "closingBalance": 100,
    "statement": [
      {
        "timestamp": "2020-10-02T16:21:45.795052",
        "description": "ATM/CASH WDL/02-10-20/0",
        "depositAmount": 0,
        "withdrawalAmount": 100,
        "balance": 100,
        "bankTransactionId": "S2XXXXXXX",
        "type": "DEBIT"
      },
      {
        "timestamp": "2020-10-01T00:21:45.795052",
        "description": "ATM/XFR RVSL/01-10-20/R/000405XXXXXX",
        "depositAmount": 100,
        "withdrawalAmount": 0,
        "balance": 200,
        "bankTransactionId": "S2XXXXXXX",
        "type": "DEBIT"
      }
    ]
  }
}

Did this page help you?