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

# Contract lines

> The Contract lines table in the Beacon Data API: one row per product on a contract, every column it carries, what it answers today, and how to join it.

One row is one product on a contract: how many units, at what price, and what it is worth in a year.

> [!NOTE]
>
> **Served.** `discount_pct` is refused wherever no discount is recorded on the line, and `product_id` wherever the line names no product.

> [!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/contract-lines` |
| Key | An [app key](https://docs.beaconrevenue.io/app-keys.md), sent as `Authorization: Bearer <your key>` |
| Who may read it | A line follows its contract's customer. A key whose person sees only their own customers receives only those customers' lines |
| Paging | `page` takes the cursor from `page.next` in the previous response. 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` and `computed_at`. Every row carries the time your billing data last arrived, so `changed_since` lists every line after each billing load. A value Beacon doesn't hold is never a blank or a zero; a refusal stands in its place. See [Refusals](https://docs.beaconrevenue.io/api-reference.md#refusals).

## Columns

8 columns, named exactly as the API sends them. Every column except `contract_line_id` is refused where Beacon doesn't hold it.

| Column | What it means | Unit |
| - | - | - |
| `contract_line_id` | Beacon's ID for this line. One line keeps one ID | Text ID (Beacon contract line ID) |
| `contract_id` | The contract this line is on | Text ID (Beacon contract ID) |
| `product_id` | The product this line is for | Text ID (product ID in your billing system) |
| `quantity` | How many units of the product the line covers | Number |
| `unit_price` | The price of one unit on this line, in the contract's currency | Money, contract currency |
| `discount_pct` | The discount on this line, as a share of its price. `0.10` means 10% | Share, as a decimal |
| `line_start_date` | The day this line starts | Date (YYYY-MM-DD) |
| `annual_amount` | What the line is worth in one year, as your Beacon setup works it out from quantity, price and discount, in the contract's currency | Money, contract currency |

## Reading it right

* A line has no currency of its own. Its amounts are in its contract's `currency` on [Contracts](https://docs.beaconrevenue.io/api/contracts.md).
* A contract's `annual_contract_value` is its lines' `annual_amount` added up in Beacon.

## Joining it to other data

| To join to | Use |
| - | - |
| [Contracts](https://docs.beaconrevenue.io/api/contracts.md) | `contract_id` |
| [Products](https://docs.beaconrevenue.io/api/products.md) | `product_id` |

## Example

Example data, not a real company. `discount_pct` is left out here; on this line it carries a refusal in its place.

```json theme={null}
{
  "as_of": "2026-11-12T01:31:00Z",
  "computed_at": "2026-11-12T01:31:00Z",
  "data": [
    {
      "contract_line_id": "cl_0001",
      "contract_id": "bill:sub_4R5t6Y",
      "product_id": "prod_Core",
      "quantity": 25,
      "unit_price": 49.0,
      "line_start_date": "2025-04-01",
      "annual_amount": 14700.0
    }
  ],
  "page": {}
}
```

## Related

> [card] [Contracts](https://docs.beaconrevenue.io/api/contracts.md)
>
> The contract each line is on.

> [card] [Products](https://docs.beaconrevenue.io/api/products.md)
>
> The product each line is 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.