> ## 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.

# Invoice lines

> The Invoice lines table in the Beacon Data API: one row per line on an invoice, every column it carries, what it answers today, and how to join it.

One row is one line on an invoice: what was billed, for which product, over which dates.

> [!NOTE]
>
> **Served,** exactly as your billing system sent each line. A column your billing system didn't send for a line is refused on that line. That is often the case for `unit_price`, `quantity`, `discount_amount`, `tax_amount` and `is_proration`.

> [!NOTE]
>
> **Preview.** This table may still change, always with notice before the change, and becomes stable once it settles. See [Versions](https://docs.beaconrevenue.io/api/versions.md#stable-and-preview).

## How to read it

| | |
| - | - |
| Address | `GET https://api.beaconrevenue.io/data/v1/invoice-lines` |
| Key | An [app key](https://docs.beaconrevenue.io/app-keys.md), sent as `Authorization: Bearer <your key>` |
| Who may read it | A key whose person sees only their own customers receives only those customers' lines. A line with no customer of its own takes its invoice's customer |
| 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) |

The response carries the rows 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 in. 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).

## Columns

17 columns, named exactly as the API sends them.

| Column | What it means | Unit |
| - | - | - |
| `line_item_id` | The line's ID in your billing system | Text ID (line ID in your billing system) |
| `invoice_id` | The invoice this line is on. Joins to Invoices | Text ID (invoice ID in your billing system) |
| `account_id` | The customer the line bills, as Beacon's customer ID. Refused where Beacon doesn't hold it | Text ID (Beacon customer ID) |
| `subscription_id` | The subscription this line bills. `null` for a one-off charge | Text ID (subscription ID in your billing system) |
| `product_id` | The product this line bills. Refused where Beacon doesn't hold it | Text ID (product ID in your billing system) |
| `line_total` | The line amount after discount and before tax | Money, invoice currency |
| `unit_price` | The price of one unit on this line. Refused where Beacon doesn't hold it | Money, invoice currency |
| `quantity` | How many units the line bills. Refused where Beacon doesn't hold it | Number |
| `discount_amount` | The discount taken off this line. Refused where Beacon doesn't hold it | Money, invoice currency |
| `tax_amount` | The tax on this line. Refused where Beacon doesn't hold it | Money, invoice currency |
| `currency` | The currency the line is in, as a three-letter code | Currency code (ISO 4217) |
| `service_start_date` | The first day the line pays for. `null` when the line names no period | Date (YYYY-MM-DD) |
| `service_end_date` | The last day the line pays for. `null` when the line names no period | Date (YYYY-MM-DD) |
| `recurring` | Whether the line is a recurring charge rather than a one-off. Refused where Beacon doesn't hold it | Yes or no |
| `billing_cycle` | How often a recurring line is billed: `weekly`, `monthly`, `quarterly`, `semiannual`, `annual`, `multi_year` or `custom`. `null` for a one-off line | Named value |
| `is_proration` | Whether the line is a part-period charge, for example after a mid-month upgrade. Refused where Beacon doesn't hold it | Yes or no |
| `line_kind` | The kind of line in your billing system's own words, for example `subscription` or `invoiceitem`. Refused where Beacon doesn't hold it | Text, as your billing system names it |

## Reading it right

* Lines are billing records, not revenue. Beacon reads them to work out recurring revenue, and the figures it works out are on [Months and quarters](https://docs.beaconrevenue.io/api/months-and-quarters.md). Don't add lines up and call the result revenue.
* `line_total` is before tax, while `invoice_total` on [Invoices](https://docs.beaconrevenue.io/api/invoices.md) includes tax.
* `null` means a value doesn't apply to the line: no `subscription_id` on a one-off charge, no `billing_cycle` on a one-off line, no service dates where the line names no period.
* A large billing history means many pages. Read with `changed_since` after the first full read, as described in [Build an app on the Data API](https://docs.beaconrevenue.io/build/app-on-the-api.md).

## Joining it to other data

| To join to | Use |
| - | - |
| [Invoices](https://docs.beaconrevenue.io/api/invoices.md) | `invoice_id` |
| [Customers](https://docs.beaconrevenue.io/api/customers.md) | `account_id` |
| [Products](https://docs.beaconrevenue.io/api/products.md) | `product_id` |
| [Subscriptions](https://docs.beaconrevenue.io/api/subscriptions.md) | `subscription_id` |

## Example

Example data, not a real company.

```json theme={null}
{
  "as_of": "2026-11-12T01:31:00Z",
  "computed_at": "2026-11-12T01:31:00Z",
  "data": [
    {
      "line_item_id": "il_9Z8y7X",
      "invoice_id": "in_1Q2w3E",
      "account_id": "stripe:cus_123",
      "subscription_id": "sub_4R5t6Y",
      "product_id": "prod_Core",
      "line_total": 1250.0,
      "currency": "USD",
      "service_start_date": "2026-10-01",
      "service_end_date": "2026-10-31",
      "recurring": true,
      "billing_cycle": "monthly",
      "line_kind": "subscription"
    }
  ],
  "page": {
    "next": "eyJrIjoiMDAwMSJ9"
  }
}
```

The five columns not shown are refused on this line, as described above.

## Related

> [card] [Invoices](https://docs.beaconrevenue.io/api/invoices.md)
>
> The invoice each line is on.

> [card] [Products](https://docs.beaconrevenue.io/api/products.md)
>
> What each line bills for.

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


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