<a href="https://www.openledger.com/contact" target="_blank">We are iterating quickly on our docs, please reach out if you need latest and greatest! 🔥🚀</a>
Get a demoPostman Collection
GuideReact SDKAPI Reference
GuideReact SDKAPI Reference
  • API Overview
    • Reference
    • Authentication
    • Rate Limits
    • Pagination
We are iterating quickly on our docs, please reach out if you need latest and greatest! 🔥🚀
LogoLogo
Get a demoPostman Collection
API OverviewAPI EndpointsLedger

GET
/v1/ledger/journal-entries
GET
/v1/ledger/journal-entries
1curl -G https://api-staging.openledger.com/v1/ledger/journal-entries \
2 -H "Authorization: Bearer <token>" \
3 -d entityId=ent_1234567890abcdef \
4 -d month=3 \
5 -d year=2024 \
6 -d startDate=2024-01-01 \
7 -d endDate=2024-12-31 \
8 -d page=1 \
9 -d limit=20
Try it
200Retrieved
1{
2 "entries": [
3 {
4 "id": "je_1234567890abcdef",
5 "date": "2024-03-15T10:30:00Z",
6 "created_at": "2024-03-15T10:30:00Z",
7 "description": "Monthly rent payment",
8 "debit_account_id": "acc_1234567890abcdef",
9 "debit_account_name": "Rent Expense",
10 "debit_account_type": "EXPENSE",
11 "credit_account_id": "acc_0987654321fedcba",
12 "credit_account_name": "Cash - Operating Account",
13 "credit_account_type": "ASSET",
14 "amount": "250000",
15 "status": "POSTED",
16 "transaction_type": "journal_entry",
17 "reference": "INV-2024-001",
18 "memo": "Office rent for March 2024"
19 }
20 ],
21 "totalEntries": 150,
22 "totalPages": 8,
23 "currentPage": 1
24}
Was this page helpful?
Previous

Update a bank account

Next
Built with
Retrieve journal entries for an entity with optional filtering by date range
Get Journal Entries

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query Parameters

entityIdstringRequired
The ID of the entity to get journal entries for
monthintegerOptional1-12
Filter by month (1-12)
yearintegerOptional
Filter by year
startDatestringOptionalformat: "date"
Start date for filtering (YYYY-MM-DD)
endDatestringOptionalformat: "date"
End date for filtering (YYYY-MM-DD)
pageintegerOptional>=1
Page number for pagination
limitintegerOptional1-100
Number of entries per page

Response

Journal entries retrieved successfully
entrieslist of objects or null
totalEntriesinteger or null
totalPagesinteger or null
currentPageinteger or null

Errors

Filter by year
Page number for pagination
Number of entries per page
Journal entries retrieved successfully

Start date for filtering (YYYY-MM-DD)

Filter by month (1-12)

End date for filtering (YYYY-MM-DD)