Read the ledger for a report
List the entries of a month or of one account, page through them and check that the figures of your report agree with the books.
On this page
A report reads entries, not documents. Entries are the books: they carry the lines, the account of each line and the link to the source document. List them by month, and by account when the report is about one account.
The entries of a month that touch an account
curl
curl "$RDC_BASE_URL/accounting/v1/journal-entries?period=2026-10&account=371&limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/accounting/v1/journal-entries?period=2026-10&account=371&limit=20`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/accounting/v1/journal-entries?period=2026-10&account=371&limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/accounting/v1/journal-entries?period=2026-10&account=371&limit=20');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/accounting/v1/journal-entries?period=2026-10&account=371&limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"items": [
{
"id": "d75fc649-ee06-4dfb-ab83-94b5f1209aa8",
"number": "JE-2026-10-0008",
"entryDate": "2026-10-21",
"period": "2026-10",
"sourceDocumentId": "58572830-d5ca-43ff-bd1d-d7ca383d5c65",
"lines": [
{
"account": "381",
"accountName": "Packaging",
"debit": "4128.70",
"credit": "0.00"
},
{
"account": "4426",
"accountName": "Deductible VAT",
"debit": "867.03",
"credit": "0.00"
},
{
"account": "401",
"accountName": "Suppliers",
"debit": "0.00",
"credit": "4995.73"
}
],
"reversalOf": null,
"reversedBy": null,
"reason": null,
"postedAt": "2026-11-23T07:12:00Z",
"aggregateRevision": 1
},
{
"id": "be93efbb-7696-451e-9757-2c6130bc0961",
"number": "JE-2026-10-0007",
"entryDate": "2026-10-23",
"period": "2026-10",
"sourceDocumentId": "0fa461df-17e9-4046-a839-65b26aa6b3e8",
"lines": [
{
"account": "4423",
"accountName": "VAT payable",
"debit": "41380.00",
"credit": "0.00"
},
{
"account": "5121",
"accountName": "Bank accounts in lei",
"debit": "0.00",
"credit": "41380.00"
}
],
"reversalOf": null,
"reversedBy": null,
"reason": null,
"postedAt": "2026-10-23T14:21:00Z",
"aggregateRevision": 1
}
],
"nextCursor": null
} Rules of reading
- Entries come in the order they were posted. The
periodof an entry is the month of itsentryDate. - Count reversals like any other entry. A reversal has the lines swapped, so an entry and its reversal cancel each other in a sum. Do not skip an entry that has
reversedBy. - A line with an account that is not in the filter is part of an entry that touches the account: sum only the lines whose
accountis the one you read. - Amounts are decimal strings. Add them as decimals or as integers in bani, never as floating-point numbers.
Check the report against the books
Read the whole month
List the entries of the month without an account filter and follow
nextCursoruntil it isnull. See Pagination.Add the two sides
The sum of all debits must equal the sum of all credits. If it does not, a page was missed.
Compare the account
The movement of an account is the sum of its debits minus the sum of its credits. It is the turnover you see in the trial balance of Accounting.