*REST API › Objects › Finance*

# Document line

> Sales document line: what was invoiced, how much and at what price.

A line of a sales document: what was invoiced or quoted, how much and at what price. Invoices and quotes share this shape, and you read the lines of a document with [`GET /api/v1/invoices/{invoiceId}/lines`](https://docs.filmo.io/rest-api/endpoint-reference/invoices/list-the-lines-of-an-invoice) or [`GET /api/v1/quotes/{quoteId}/lines`](https://docs.filmo.io/rest-api/endpoint-reference/quotes/list-the-lines-of-a-quote). Lines belong to their document and there is no separate collection of them.

Schemas: `DocumentLineDto`

## Attributes

| Name | Type | Description |
| --- | --- | --- |
| `id` | string | Unique identifier of the line within the document. |
| `resourceType` | string | Resource type of the line. Lines of type section and type_group are presentation groupings with no associated resource. `item`, `kit`, `space`, `vehicle`, `personnel`, `service`, `custom`, `section`, `type_group` |
| `transactionType` | string | Nature of the line: rental or sale. `rental`, `sale` |
| `position` | integer | Display position of the line within the document, starting at 0. |
| `itemId` | string | Catalog item identifier; null if the line is not of type item. |
| `itemName` | string | Item name as it was WHEN THE DOCUMENT WAS ISSUED. It may differ from the current item name in the catalog: the document is a snapshot. |
| `variantId` | string | Variant identifier; null if not applicable. |
| `variantName` | string | Variant name frozen in the snapshot; null if not applicable. |
| `quantity` | number | Units invoiced or quoted on the line. |
| `orderId` | string | Order the line comes from; null if it was added directly to the document. |
| `orderNumber` | string | Number of that order; null if the line does not come from one. |
| `startDate` | string<date-time> | Start of the invoiced period in ISO 8601 UTC; null if the line has no period. |
| `endDate` | string<date-time> | End of the invoiced period in ISO 8601 UTC; null if the line has no period. |
| `rentalDays` | number | Invoiced rental days; null if not applicable. |
| `unitPrice` | string | Net unit price as a decimal string "1234.50"; null if the line has no price of its own. |
| `linePrice` | string | Net amount of the line as a decimal string "1234.50"; null if not calculated. |
| `free` | boolean | true if the line is explicitly billed at zero. |
| `notes` | string | Line notes; null if none. |

## Values

| Field | Values |
| --- | --- |
| `resourceType` | `item`, `kit`, `space`, `vehicle`, `personnel`, `service`, `custom`, `section`, `type_group` |
| `transactionType` | `rental`, `sale` |

## Example

*Document line · Generated from the schema*

```json
{
  "id": "id_8f2a1c",
  "resourceType": "item",
  "transactionType": "rental",
  "position": 1,
  "itemId": "string",
  "itemName": "Example",
  "variantId": "string",
  "variantName": "Example",
  "quantity": 1,
  "orderId": "string",
  "orderNumber": "string",
  "startDate": "2026-09-01T08:00:00Z",
  "endDate": "2026-09-01T08:00:00Z",
  "rentalDays": 1,
  "unitPrice": "1234.50",
  "linePrice": "1234.50",
  "free": true,
  "notes": "string"
}
```

## Returned by

- [`GET /api/v1/invoices/{invoiceId}/lines`](https://docs.filmo.io/rest-api/endpoint-reference/invoices/list-the-lines-of-an-invoice) — List the lines of an invoice
- [`GET /api/v1/quotes/{quoteId}/lines`](https://docs.filmo.io/rest-api/endpoint-reference/quotes/list-the-lines-of-a-quote) — List the lines of a quote

## Modified by

No operation.

---

Canonical URL: https://docs.filmo.io/rest-api/objects/document-line  
Last updated: 2026-10-25