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

# Ledger Account Details

> 🙌 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/{ledger_account_urn}> |
| Production        | <https://in.decentro.tech/v2/ledger/journal/{journal_urn}/account/{ledger_account_urn}>         |

# 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/{ledger_account_urn}": {
      "get": {
        "summary": "Ledger Account Details",
        "description": "",
        "operationId": "ledger-account-details",
        "parameters": [
          {
            "name": "journal_urn",
            "in": "path",
            "description": "Journal unique reference number",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "ledger_account_urn",
            "in": "path",
            "description": "Ledger account 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"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success - Ledger Account Details": {
                    "value": "{\n    \"decentroTxnId\": \"75E8808DC38F4792B5BB22D95E8AF4F5\",\n    \"status\": \"SUCCESS\",\n    \"responseCode\": \"S00000\",\n    \"message\": \"Transaction successful\",\n    \"data\": {\n        \"transactionStatus\": \"SUCCESS\",\n        \"transactionDescription\": \"Ledger account details fetched successfully\",\n        \"count\": 1,\n        \"details\": [\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    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "75E8808DC38F4792B5BB22D95E8AF4F5"
                    },
                    "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": 1,
                          "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": "LBFDCD555429A4D729620EF812A779DF6"
                                  },
                                  "referenceId": {
                                    "type": "string",
                                    "example": "3eb1c555-8ae2-4e34-bd32-ef4a1d0d0482"
                                  },
                                  "name": {
                                    "type": "string",
                                    "example": "Commission"
                                  }
                                }
                              },
                              "consumer": {
                                "type": "object",
                                "properties": {
                                  "urn": {
                                    "type": "string",
                                    "example": "CB24EE96D2F494C19B1A75DF002F77511"
                                  },
                                  "referenceId": {
                                    "type": "string",
                                    "example": "Consumer A"
                                  },
                                  "name": {
                                    "type": "string",
                                    "example": "partner 1"
                                  }
                                }
                              },
                              "purpose": {
                                "type": "string",
                                "example": "this is to create a ledger account"
                              },
                              "additionalParameters": {
                                "type": "object",
                                "properties": {
                                  "udf1": {
                                    "type": "string",
                                    "example": "value1"
                                  },
                                  "udf2": {
                                    "type": "string",
                                    "example": "value2"
                                  },
                                  "udf3": {
                                    "type": "string",
                                    "example": "value3"
                                  },
                                  "udf4": {
                                    "type": "string",
                                    "example": "value4"
                                  },
                                  "udf5": {
                                    "type": "string",
                                    "example": "value5"
                                  }
                                }
                              },
                              "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": "05-08-2022 15:11:05"
                              },
                              "lastModificationTimestamp": {
                                "type": "string",
                                "example": "NA"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Failure - Invalid Ledger Account": {
                    "value": "{\n    \"decentroTxnId\": \"58B38CCF0B8244618D4684E56B1FE798\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"No ledger account found for the given combination of `journal unique reference number` and `ledger account unique reference number`. Please check the value and try again.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "58B38CCF0B8244618D4684E56B1FE798"
                    },
                    "status": {
                      "type": "string",
                      "example": "FAILURE"
                    },
                    "responseCode": {
                      "type": "string",
                      "example": "E00009"
                    },
                    "message": {
                      "type": "string",
                      "example": "No ledger account found for the given combination of `journal unique reference number` and `ledger account unique reference number`. Please check the value and try again."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```