---
updatedAt: 2026-11-12T11:27:14.000Z
agentTools:
  projectIndex: https://docs.decentro.tech/llms.txt
---

# All Ledger Accounts

> 🙌 Important Note
>
> Please use only **Staging Credentials** on each API Reference page to test the APIs directly from our Documentation.

### API Endpoints

| Environment       | Endpoint                                                                   |
| :---------------- | :------------------------------------------------------------------------- |
| Staging / Sandbox | <https://in.staging.decentro.tech/v2/ledger/journal/{journal_urn}/account> |
| Production        | <https://in.decentro.tech/v2/ledger/journal/{journal_urn}/account>         |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "decentro-staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://in.staging.decentro.tech"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v2/ledger/journal/{journal_urn}/account": {
      "get": {
        "summary": "All Ledger Accounts",
        "description": "",
        "operationId": "all-ledger-accounts",
        "parameters": [
          {
            "name": "journal_urn",
            "in": "path",
            "description": "Journal unique reference number",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "client_id",
            "in": "header",
            "description": "Decentro assigned client_id for the company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_secret",
            "in": "header",
            "description": "Decentro assigned client_secret for the company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "module_secret",
            "in": "header",
            "description": "Decentro assigned module_secret for the company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status filter to fetch only accounts with mentioned status",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "consumer_urn",
            "in": "query",
            "description": "consumer Decentro URN",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "consumer_reference_id",
            "in": "query",
            "description": "Consumer reference id",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Offset Value",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": "{\n    \"decentroTxnId\": \"2B6CAD3BF896400F9D21B30AC00A5E46\",\n    \"status\": \"SUCCESS\",\n    \"responseCode\": \"S00000\",\n    \"message\": \"Transaction successful\",\n    \"data\": {\n        \"transactionStatus\": \"SUCCESS\",\n        \"transactionDescription\": \"Ledger account details fetched successfully\",\n        \"count\": 10,\n        \"details\": [\n            {\n                \"journal\": {\n                    \"urn\": \"J3F090B20C26E4C77AE2041823613EAA2\",\n                    \"referenceId\": \"61bd9cf2-b823-4194-9755-48178b7efa53\",\n                    \"name\": \"Journal ABC\"\n                },\n                \"account\": {\n                    \"urn\": \"L1D071D019E454D4EA54F067F63B8490E\",\n                    \"referenceId\": \"d3780b5b-c106-4e55-a101-113153fe99ff\",\n                    \"name\": \"Ledger Account 1\"\n                },\n                \"consumer\": {\n                    \"urn\": \"C037AE523C363499C9152E817AEB917DE\",\n                    \"referenceId\": \"My_Consumer_1\",\n                    \"name\": \"Consumer 1\"\n                },\n                \"purpose\": \"this is to create a ledger account\",\n                \"additionalParameters\": \"NA\",\n                \"currency\": \"INR\",\n                \"balance\": 0.0,\n                \"blockedAmount\": 0.0,\n                \"status\": \"ACTIVE\",\n                \"creationTimestamp\": \"04-08-2022 23:10:36\",\n                \"lastModificationTimestamp\": \"NA\"\n            },\n            {\n                \"journal\": {\n                    \"urn\": \"J3F090B20C26E4C77AE2041823613EAA2\",\n                    \"referenceId\": \"61bd9cf2-b823-4194-9755-48178b7efa53\",\n                    \"name\": \"Journal ABC\"\n                },\n                \"account\": {\n                    \"urn\": \"LBFDCD555429A4D729620EF812A779DF6\",\n                    \"referenceId\": \"3eb1c555-8ae2-4e34-bd32-ef4a1d0d0482\",\n                    \"name\": \"Commission\"\n                },\n                \"consumer\": {\n                    \"urn\": \"CB24EE96D2F494C19B1A75DF002F77511\",\n                    \"referenceId\": \"Consumer A\",\n                    \"name\": \"partner 1\"\n                },\n                \"purpose\": \"this is to create a ledger account\",\n                \"additionalParameters\": {\n                    \"udf1\": \"value1\",\n                    \"udf2\": \"value2\",\n                    \"udf3\": \"value3\",\n                    \"udf4\": \"value4\",\n                    \"udf5\": \"value5\"\n                },\n                \"currency\": \"INR\",\n                \"balance\": 0.0,\n                \"blockedAmount\": 0.0,\n                \"status\": \"ACTIVE\",\n                \"creationTimestamp\": \"05-08-2022 15:11:05\",\n                \"lastModificationTimestamp\": \"NA\"\n            },\n            {\n                \"journal\": {\n                    \"urn\": \"J3F090B20C26E4C77AE2041823613EAA2\",\n                    \"referenceId\": \"61bd9cf2-b823-4194-9755-48178b7efa53\",\n                    \"name\": \"Journal ABC\"\n                },\n                \"account\": {\n                    \"urn\": \"L0305E4F4735946DCB16D59AD65B88BEA\",\n                    \"referenceId\": \"8cca0a31-687b-4252-9486-c83dea5f11d6\",\n                    \"name\": \"Ledger Account 1\"\n                },\n                \"consumer\": {\n                    \"urn\": \"C037AE523C363499C9152E817AEB917DE\",\n                    \"referenceId\": \"My_Consumer_1\",\n                    \"name\": \"Consumer 1\"\n                },\n                \"purpose\": \"this is to create a ledger account\",\n                \"additionalParameters\": {\n                    \"parameter1\": \"value1\",\n                    \"parameter2\": \"value2\",\n                    \"parameter3\": \"value2\",\n                    \"parameter4\": \"value2\",\n                    \"parameter5\": \"value2\"\n                },\n                \"currency\": \"INR\",\n                \"balance\": 0.0,\n                \"blockedAmount\": 0.0,\n                \"status\": \"ACTIVE\",\n                \"creationTimestamp\": \"04-08-2022 23:09:48\",\n                \"lastModificationTimestamp\": \"NA\"\n            },\n            {\n                \"journal\": {\n                    \"urn\": \"J3F090B20C26E4C77AE2041823613EAA2\",\n                    \"referenceId\": \"61bd9cf2-b823-4194-9755-48178b7efa53\",\n                    \"name\": \"Journal ABC\"\n                },\n                \"account\": {\n                    \"urn\": \"L56E39235346640D29F100798269BF7D0\",\n                    \"referenceId\": \"ea0f73ee-f4a8-42ab-9790-3148e996e3b7\",\n                    \"name\": \"Ledger Account 1\"\n                },\n                \"consumer\": {\n                    \"urn\": \"C037AE523C363499C9152E817AEB917DE\",\n                    \"referenceId\": \"My_Consumer_1\",\n                    \"name\": \"Consumer 1\"\n                },\n                \"purpose\": \"this is to create a ledger account\",\n                \"additionalParameters\": {\n                    \"parameter1\": \"value1\",\n                    \"parameter2\": \"value2\",\n                    \"parameter3\": \"value2\",\n                    \"parameter4\": \"value2\",\n                    \"parameter5\": \"value2\"\n                },\n                \"currency\": \"INR\",\n                \"balance\": 0.0,\n                \"blockedAmount\": 0.0,\n                \"status\": \"ACTIVE\",\n                \"creationTimestamp\": \"04-08-2022 23:10:46\",\n                \"lastModificationTimestamp\": \"NA\"\n            }\n        ]\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "2B6CAD3BF896400F9D21B30AC00A5E46"
                    },
                    "status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "responseCode": {
                      "type": "string",
                      "example": "S00000"
                    },
                    "message": {
                      "type": "string",
                      "example": "Transaction successful"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "transactionStatus": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "transactionDescription": {
                          "type": "string",
                          "example": "Ledger account details fetched successfully"
                        },
                        "count": {
                          "type": "integer",
                          "example": 10,
                          "default": 0
                        },
                        "details": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "journal": {
                                "type": "object",
                                "properties": {
                                  "urn": {
                                    "type": "string",
                                    "example": "J3F090B20C26E4C77AE2041823613EAA2"
                                  },
                                  "referenceId": {
                                    "type": "string",
                                    "example": "61bd9cf2-b823-4194-9755-48178b7efa53"
                                  },
                                  "name": {
                                    "type": "string",
                                    "example": "Journal ABC"
                                  }
                                }
                              },
                              "account": {
                                "type": "object",
                                "properties": {
                                  "urn": {
                                    "type": "string",
                                    "example": "L1D071D019E454D4EA54F067F63B8490E"
                                  },
                                  "referenceId": {
                                    "type": "string",
                                    "example": "d3780b5b-c106-4e55-a101-113153fe99ff"
                                  },
                                  "name": {
                                    "type": "string",
                                    "example": "Ledger Account 1"
                                  }
                                }
                              },
                              "consumer": {
                                "type": "object",
                                "properties": {
                                  "urn": {
                                    "type": "string",
                                    "example": "C037AE523C363499C9152E817AEB917DE"
                                  },
                                  "referenceId": {
                                    "type": "string",
                                    "example": "My_Consumer_1"
                                  },
                                  "name": {
                                    "type": "string",
                                    "example": "Consumer 1"
                                  }
                                }
                              },
                              "purpose": {
                                "type": "string",
                                "example": "this is to create a ledger account"
                              },
                              "additionalParameters": {
                                "type": "string",
                                "example": "NA"
                              },
                              "currency": {
                                "type": "string",
                                "example": "INR"
                              },
                              "balance": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "blockedAmount": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "status": {
                                "type": "string",
                                "example": "ACTIVE"
                              },
                              "creationTimestamp": {
                                "type": "string",
                                "example": "04-08-2022 23:10:36"
                              },
                              "lastModificationTimestamp": {
                                "type": "string",
                                "example": "NA"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid Journal URN": {
                    "value": "{\n    \"decentroTxnId\": \"504D700158D24C0182367BDD9C3B5D1E\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"No journal found for the given `journal_unique_reference_number`. Please check the value and try again.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "504D700158D24C0182367BDD9C3B5D1E"
                    },
                    "status": {
                      "type": "string",
                      "example": "FAILURE"
                    },
                    "responseCode": {
                      "type": "string",
                      "example": "E00009"
                    },
                    "message": {
                      "type": "string",
                      "example": "No journal found for the given `journal_unique_reference_number`. Please check the value and try again."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```