Ledgera
ledgera.io
  • Introduction
  • Documentation Structure
  • CORE
    • Currencies
    • Balances
      • Balance Creation
      • Balance Query
      • Bulk Balance Query
      • Balance Statements Query
    • Transactions
      • Transaction Creation
      • Transaction Query
      • Entries
  • SETUP
    • Account Rules
    • Chart of Accounts
    • Execution Rules
    • Authorization Rules
    • Billing Plan
      • Custom Entries
  • REGISTER
    • Accounts
      • Account Creation
      • Account Updates
      • Account Query
        • Account Balance Query
        • Account Bulk Balance Query
        • Account Statements Query
  • OPERATION
    • Execution
    • Authorization / Confirmation
    • Split
    • Balance Sheet
  • REPORT
    • Request a report
    • Report Query
  • MULTI-TENANCY
    • Tenant Query
Powered by GitBook
On this page
  1. REGISTER
  2. Accounts

Account Query

Last updated 1 year ago

Was this helpful?

CtrlK
  • Querying a specific account
  • Querying accounts using parameters

Was this helpful?

For account retrieval, the GET /account method is used. The user can query accounts based on description, a specific ID, or a list of IDs.

Querying a specific account

The user can retrieve a specific account using the GET /account/{id} method.

Example of querying a specific account:

Response example:

Querying accounts using parameters

The user can provide parameters to query one or multiple accounts simultaneously using the GET /account method. The method will return a list of accounts.

Example of querying accounts using parameters:

Response example:

GET /account/19720852-be40-489a-a3b3-985f51a0458c
{
  "id": "19720852-be40-489a-a3b3-985f51a0458c",
  "description": "digital_account",
  "billing_plan_id": "fe38153f-36ed-42fb-a879-c46ea92b7ebc"
}
{
  "accounts": [
    "a8f5f167-f44f-4964-e6c9-98dee827110c", 
    "3634bee6-1e59-f282-4f76-d61db9007f70", 
    "b67fa8e8-ef7b-f944-b6d9-1e53bb9eee4a"
  ]
}
GET /account?description=digital_account