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
  3. Account Query

Account Statements Query

Last updated 1 year ago

Was this helpful?

CtrlK

Was this helpful?

The account statement can be queried using the GET /account/{id}/journal method. The user will provide the desired period, currency, and pagination for the statement.

The statement will only include entries that affected the available balance type of the specified currency.

The default fields returned in the balance statement are:

Field
Descri

User transaction type

entry_id

Entry identifier

entry_type

Entry name

entry_order

Entry creation order

amount

Entry amount

balance_after

Balance amount after the record creation

balance_seq_num

Sequential update number of the current balance

created_at

Transaction created datetime

settled_at

Transaction reference date (or accounting date)

parent_transaction_id

Parent Transaction Identifier

external_id

The user-assigned identifier at the time of transaction creation

Statement query example:

Response example:

id

The unique identifier of a journal entry record

type

The type of record indicating whether it is a debit or credit

transaction_id

Transaction identifier

transaction_type

{
  "metadata": {
    "limit": 100,
    "count": 10,
    "current_cursor": 0,
    "next_cursor": 1
  },
  "data": [
    {
      "id": "912ec803-b2ce-49e4-a541-068d495ab570",
      "type": "credit",
      "transaction_id": "c18be87a-c2db-a527-a47f-63d6105e89e2",
      "transaction_type": "pixIn",
      "entry_id": "82ce4744-f647-f1a5-a320-619d9c85d719",
      "entry_type": "main_amount",
      "entry_order": 1
      "amount": 10000,
      "balance_after": 10000,
      "balance_seq_num": 1,
      "created_at": "2023-06-05T11:26:17.325Z",
      "settled_at": "2023-06-05",
      "parent_transaction_id": "ea355ff5-6a2e-a57e-708c-7ab94e79c7f6",
      "external_id": "teste 1",
      "metadata": {
        "key": "value"  
      }
    }
  ]
}
GET /account/19720852-be40-489a-a3b3-985f51a0458c/journal

{
  "date_from": "",
  "date_to": "",
  "currency": "brl"
,
"limit": 100,
"cursor": 0
}