v1

latestOpenAPI 3.1.02026-07-2418201.6 MB

All Ledger Accounts

get/v2/ledger/journal/{journal_urn}/account

Path parameters

journal_urnstring required

Journal unique reference number

Query parameters

statusstring

Status filter to fetch only accounts with mentioned status

consumer_urnstring

consumer Decentro URN

consumer_reference_idstring

Consumer reference id

pageinteger

Offset Value

Headers

client_idstring required

Decentro assigned client_id for the company

client_secretstring required

Decentro assigned client_secret for the company

module_secretstring required

Decentro assigned module_secret for the company

Response

200

decentroTxnIdstring
statusstring
responseCodestring
messagestring

Example response

{
  "decentroTxnId": "2B6CAD3BF896400F9D21B30AC00A5E46",
  "status": "SUCCESS",
  "responseCode": "S00000",
  "message": "Transaction successful",
  "data": {
    "transactionStatus": "SUCCESS",
    "transactionDescription": "Ledger account details fetched successfully",
    "count": 10,
    "details": [
      {
        "journal": {
          "urn": "J3F090B20C26E4C77AE2041823613EAA2",
          "referenceId": "61bd9cf2-b823-4194-9755-48178b7efa53",
          "name": "Journal ABC"
        },
        "account": {
          "urn": "L1D071D019E454D4EA54F067F63B8490E",
          "referenceId": "d3780b5b-c106-4e55-a101-113153fe99ff",
          "name": "Ledger Account 1"
        },
        "consumer": {
          "urn": "C037AE523C363499C9152E817AEB917DE",
          "referenceId": "My_Consumer_1",
          "name": "Consumer 1"
        },
        "purpose": "this is to create a ledger account",
        "additionalParameters": "NA",
        "currency": "INR",
        "status": "ACTIVE",
        "creationTimestamp": "04-08-2022 23:10:36",
        "lastModificationTimestamp": "NA"
      }
    ]
  }
}