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

# What is an Order?

**An order** is a sequence of actions that records every status change for every order line item.

At the integration stage, [a custom field](/api-integrations/how-to-create-a-custom-field) is created in the Maestra system (e.g. entity: Order, field type: External ID).

This custom field will later be populated with the external IDs of orders. **This ID is mandatory.**

Once an order is recorded in the database, an additional **Maestra order ID is also automatically generated.**

An order consists of **line items**. Every line item is a product with its own status and quantity.

Let’s take a look at a sample order.

The first action of this order is **Order creation**:

<img src="https://mintcdn.com/maestraio/8PKiDbR3rMJsCzSE/images/imported/00_orderNew-281-29.png?fit=max&auto=format&n=8PKiDbR3rMJsCzSE&q=85&s=a985bb13a5de131719118f27b319e320" alt="00_orderNew(1)" width="2770" height="934" data-path="images/imported/00_orderNew-281-29.png" />

**Line items**:

Aqua Professional Suit with the **Placed** status at \$2 000;

Sunset Orange Professional Suit with the **Placed** status

at \$1 500.

A $20 discount was applied to the order. This makes **the total cost**: $3 480.

Since all the orders have a first action, you can conveniently filter orders by the date of the first action.

Once the line items are paid for, the order lines change their statuses to **Delivered**:

<img src="https://mintcdn.com/maestraio/-w5Ud9QNiG7Y4nor/images/imported/01_orderNew.png?fit=max&auto=format&n=-w5Ud9QNiG7Y4nor&q=85&s=459b3a0ee077591db67761bf6ef55a31" alt="01_orderNew" width="2728" height="968" data-path="images/imported/01_orderNew.png" />

You can view all statuses of a single order in the Actions tab. Simply enter the order ID in the filter:

<img src="https://mintcdn.com/maestraio/59KyfifOW7tLz5QR/images/imported/02_orderNew.png?fit=max&auto=format&n=59KyfifOW7tLz5QR&q=85&s=97ee306fa57bdc367a329e134f4743ae" alt="02_orderNew" width="2930" height="954" data-path="images/imported/02_orderNew.png" />
