> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beaconrevenue.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Ledger entries

> The Ledger entries table in the Beacon Data API: one row per entry posted to your general ledger, every column it carries, how it joins to your chart of accounts and your customers, and what the address answers today.

One row is one entry posted to your general ledger: when it posted, which chart-of-accounts category it posted to, its amount and currency, and, once Beacon has worked it out, which customer it belongs to.

> [!WARNING]
>
> **Not available yet.** Beacon keeps your ledger as one total per category per month today, not entry by entry, and a row here is one posted entry. So this table isn't served: `GET /ledger-entries` returns the `not_computed` refusal with HTTP 501, never an empty list and never a monthly total in an entry's place. It is served once Beacon keeps each posted entry from your accounting tool. The columns below are fixed already. Don't read an answer from this address as "you have no entries".

## How to read it

| | |
| - | - |
| Address | `GET https://api.beaconrevenue.io/data/v1/ledger-entries` |
| Key | An [app key](https://docs.beaconrevenue.io/app-keys.md), sent as `Authorization: Bearer <your key>`. A key with every kind of data ticked also reads this table once it is served |
| Paging | `page` takes the cursor from `page.next` in the previous response. There is no `page.next` on the last page. See [Paging](https://docs.beaconrevenue.io/api/paging.md) |
| Narrowing | `entity_scope` narrows the read to one entity inside your access, and can only narrow. See [Entity scope](https://docs.beaconrevenue.io/api/entity-scope.md) |
| Today | HTTP 501 with the `not_computed` refusal. See [Errors](https://docs.beaconrevenue.io/api/errors.md) |

Each row is an object named `ledger_entry`. This is your posted ledger, not a copy of every invoice, bill or payment behind it.

When rows are served, the response carries them in `data`, the cursor in `page`, and two timestamps for the page: `as_of`, the moment the values describe, and `computed_at`, when Beacon last read them. A value Beacon doesn't hold is never a blank or a zero; a refusal stands in its place and says why. See [Refusals](https://docs.beaconrevenue.io/api-reference.md#refusals).

Two things are still open and don't change what a row contains: today only some accounting systems deliver a posted ledger Beacon can read at all, and where Beacon will store these rows is still being decided.

The category each entry posts to is served already, on [Chart of accounts](https://docs.beaconrevenue.io/api/chart-of-accounts.md).

## Columns

Eight columns, named exactly as the API will send them. None is served yet: Beacon doesn't keep entries one by one today.

| Column | What it means | Unit |
| - | - | - |
| `gl_entry_id` | The posted entry's identifier. | Text identifier |
| `posted_date` | The date the entry was posted in your ledger. It is the only date an entry carries, and every monthly figure built from entries is anchored to it. | Date (YYYY-MM-DD) |
| `period_key` | The calendar month of `posted_date`. A calendar month, not your financial year's period, so costs line up month for month with revenue. If your financial year doesn't start in January, totals agree with your management accounts over the year but not month by month. | Month (YYYY-MM) |
| `coa_category_id` | The chart-of-accounts category the entry posted to: the `coa_category_id` of a row in [Chart of accounts](https://docs.beaconrevenue.io/api/chart-of-accounts.md). | Text identifier |
| `amount` | The posted amount, in the currency named in `currency` on the same row. A single entry, not a total, so it is never converted. Signed: the direction is in the number, never in a separate column. **Which direction is positive isn't stated yet.** Beacon's two accounting connections deliver direction differently and Beacon converts both to one convention, but don't assume debits are positive until this page says so. | Money, in the row's currency |
| `currency` | The three-letter currency code of `amount` on this row. One accounting connection supplies it per entry line, the other per transaction, and Beacon records which. | Three-letter currency code |
| `account_id` | The customer the entry is attributed to. No accounting system supplies this: a ledger entry carries no customer, and Beacon attributes the cost. Until that has run, this column is refused as not yet worked out, never sent as `null`. | Text identifier (Beacon customer ID) |
| `cac_component_flag` | Whether the entry's category counts towards the cost of winning customers. Beacon works it out from the category's classification; it is never set by hand, and no accounting system supplies it. | Yes or no |

### Who may read it

Every column is open to anyone whose access covers this data. None of these values goes to a CRM. `amount` reaches events only if you opt in, because it is a money value. The key reads exactly what its person can see in Beacon, checked again at every read.

## Joining it to other data

| To join to | Use |
| - | - |
| [Chart of accounts](https://docs.beaconrevenue.io/api/chart-of-accounts.md) | `coa_category_id`. The category tells you what kind of cost or income the entry is (`cost_role`), and for cost of service and acquisition cost, which part |
| [Customers](https://docs.beaconrevenue.io/api/customers.md) | `account_id`, once Beacon has attributed the entry |
| [Months and quarters](https://docs.beaconrevenue.io/api/months-and-quarters.md) | Not directly: the Months and quarters table has no month column yet. Use `period_key` to group entries by month yourself |

There is no segment, industry, size or owner column. To see cost by segment, join to [Customers](https://docs.beaconrevenue.io/api/customers.md) through `account_id` and use its `segment`, which works only for entries Beacon has attributed.

Because `amount` is in each entry's own currency, add amounts together only within one currency.

## Figures on this table

No scores or KPIs sit on a ledger entry. Entries are what Beacon builds its cost figures from: grouped by category and month, they feed [cost to serve](https://docs.beaconrevenue.io/definitions/cost-to-serve.md), [contribution margin](https://docs.beaconrevenue.io/definitions/contribution-margin.md) and, through `cac_component_flag`, acquisition cost such as [cohort acquisition cost](https://docs.beaconrevenue.io/definitions/cohort-acquisition-cost.md). See [What it costs to serve a customer](https://docs.beaconrevenue.io/finance/cost-and-margin.md).

## Example

What the address answers today.

```json theme={null}
{
  "reason": "not_computed",
  "what_would_make_it_available": "Beacon keeps your ledger as one total per category per month today, not entry by entry. Ledger entries appear here once Beacon keeps each posted entry from your accounting tool.",
  "state": "DECLARED",
  "schema_version": "PUB-2026.11.23-v0.40"
}
```

One page of ledger entries as the contract defines it, for illustration only. Example data, not a real company, and not a response the API sends today. The sign of `amount` is illustrative: which direction is positive isn't stated yet.

```json theme={null}
{
  "as_of": "2026-08-05T06:00:00Z",
  "computed_at": "2026-08-05T06:11:48Z",
  "data": [
    {
      "gl_entry_id": "gl_88431",
      "posted_date": "2026-07-29",
      "period_key": "2026-07",
      "coa_category_id": "412",
      "amount": 18400.00,
      "currency": "EUR",
      "account_id": "stripe:cus_20417",
      "cac_component_flag": false
    }
  ],
  "page": {}
}
```

## Related

> [card] [API reference](https://docs.beaconrevenue.io/api-reference.md)
>
> The collections and the rules they share.

> [card] [Column dictionary](https://docs.beaconrevenue.io/build/column-dictionary.md)
>
> Every column, its unit and whether it is served.

> [card] [Ledger entry object](https://docs.beaconrevenue.io/data-model/ledger-entry.md)
>
> Where each value can travel, and how often it updates.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.