*REST API › Objects › Rentals*

# Order line

> Order line: which resource it carries, how much, when and at what sale price.

A line of an order: which resource it carries (an item, a kit, a space, a vehicle, personnel, a service or a custom line), how many units, when and at what sale price. Lines belong to the order and you read them with [`GET /api/v1/orders/{orderId}/lines`](https://docs.filmo.io/rest-api/endpoint-reference/orders/list-the-lines-of-an-order); there is no independent collection of lines. A line can carry the serial numbers assigned to it.

Schemas: `OrderLineDto`

## Attributes

| Name | Type | Description |
| --- | --- | --- |
| `id` | string | Unique line identifier. |
| `orderId` | string | Identifier of the order the line belongs to. |
| `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` |
| `status` | string | Status of the line within the order flow. `draft`, `reserved`, `prepared`, `picked_up`, `sold`, `returned`, `checked_in`, `cancelled`, `lost` |
| `position` | integer | Display position of the line within the order, starting at 0. |
| `addedDuringDelivery` | boolean | true if the line was added during the delivery process rather than in the original order. |
| `itemId` | string | Catalog item identifier; null if the line is not of type item. |
| `itemName` | string | Name of the item, space, service or custom element of the line. |
| `variantId` | string | Identifier of the item variant; null if not applicable. |
| `spaceId` | string | Space identifier; null if the line is not of type space. |
| `quantity` | number | Units of the line. |
| `serials` | object[] | Specific physical units assigned. Empty for non-serialized items or when not yet assigned. |
| `serials.id` | string | Unique identifier of the serialized item. |
| `serials.code` | string | Internal code of the unit; null if none. |
| `serials.serialNumber` | string | Manufacturer serial number; null if not recorded. |
| `startDate` | string<date-time> | Start of the line period in ISO 8601 UTC; null if it inherits the order period. |
| `endDate` | string<date-time> | End of the line period in ISO 8601 UTC; null if it inherits the order period. |
| `rentalDays` | number | Billable rental days of the line; null if not calculated. |
| `unitPrice` | string | Net unit price as a decimal string "1234.50"; null if the line has no price of its own. |
| `linePrice` | string | Total 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` |
| `status` | `draft`, `reserved`, `prepared`, `picked_up`, `sold`, `returned`, `checked_in`, `cancelled`, `lost` |

## Example

*Order line · Generated from the schema*

```json
{
  "id": "id_8f2a1c",
  "orderId": "string",
  "resourceType": "item",
  "transactionType": "rental",
  "status": "draft",
  "position": 1,
  "addedDuringDelivery": true,
  "itemId": "string",
  "itemName": "Example",
  "variantId": "string",
  "spaceId": "string",
  "quantity": 1,
  "serials": [
    {
      "id": "id_8f2a1c",
      "code": "string",
      "serialNumber": "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/orders/{orderId}/lines`](https://docs.filmo.io/rest-api/endpoint-reference/orders/list-the-lines-of-an-order) — List the lines of an order

## Modified by

No operation.

---

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