# Orders

# Order Index Endpoint

This endpoint retrieves a paginated list of all orders

#### Structure

See [`Order View Endpoint`](https://support.aerocommerce.com/books/api/page/order-view-endpoint) for the structure of the order payload inside the `data` array.

---

#### Scopes

<table border="1" id="bkmrk-name-description-exa" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr><td>**Name**  
</td><td>**Description**  
</td><td>**Example**  
</td></tr><tr><td>`visible`</td><td>Only return visible orders (those which have been ordered)</td><td>`?scope=visible`</td></tr><tr><td>`outstanding`</td><td>Only return outstanding orders</td><td>`?scope=outstanding`</td></tr><tr><td>`completed`</td><td>Only return completed orders</td><td>`?scope=completed`</td></tr><tr><td>`incomplete`</td><td>Only return incomplete orders</td><td>`?scope=incomplete`</td></tr><tr><td>`express`</td><td>Only return express orders</td><td>`?scope=express`</td></tr><tr><td>`standard`</td><td>Only return standard orders</td><td>`?scope=standard`</td></tr></tbody></table>

---

#### Filters

<table border="1" id="bkmrk-name-description-exa-1" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr><td>**Name**  
</td><td>**Description**  
</td><td>**Example**  
</td></tr><tr><td>`reference`</td><td>Only return orders with specific references</td><td>`?references=ABC123,DEF456`</td></tr><tr><td>`statuses`</td><td>Only return orders with specific status ids or names</td><td>`?statuses=1,On Hold`</td></tr><tr><td>`states`</td><td>Only return orders with specific states</td><td>`?states=dispatched,returned`</td></tr><tr><td>`customers`</td><td>Only return orders with specific customers (by id or email)</td><td>`?customers=1,test@gmail.com`</td></tr><tr><td>`emails`</td><td>Only return orders for specific emails</td><td>`?emails=test@gmail.com`</td></tr><tr><td>`channels`</td><td>Only return orders for specific channels</td><td>`?channels=web,api`</td></tr><tr><td>`flags`</td><td>Only return orders for specific flags (by `id`, `name`, or `name|value`)</td><td>`?flags=1,abc,def|123`</td></tr></tbody></table>

---

```
GET /api/orders?per_page=2&min_ordered_at=2023-08-30%2010:36:23
```

```json
{
    "current_page": 1,
    "data": [
      //...
    ],
    "first_page_url": "http://aero.test/api/orders?page=1",
    "from": 1,
    "last_page": 3,
    "last_page_url": "http://aero.test/api/orders?page=3",
    "next_page_url": "http://aero.test/api/orders?page=2",
    "path": "http://aero.test/api/orders",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 5
}
```

<p class="callout info">See [`Order View Endpoint`](https://support.aerocommerce.com/books/api/page/order-view-endpoint) for the structure of the order payload inside the `data` array.</p>

# Order View Endpoint

This endpoint retrieves a single order by `id` or `reference`.

#### Structure

##### Order

<table border="1" id="bkmrk-name-type-descriptio" style="border-collapse: collapse; width: 100%; height: 907.313px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`reference`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The **unique** reference for the order</td></tr><tr style="height: 52.1953px;"><td style="height: 52.1953px;">`status`</td><td style="height: 52.1953px;">object</td><td style="height: 52.1953px;">The [Order Status](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-order-status) of the order (`null` if none)</td></tr><tr style="height: 52.1953px;"><td style="height: 52.1953px;">`customer`</td><td style="height: 52.1953px;">object</td><td style="height: 52.1953px;">The [Customer](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-customer) of the order (`null` if none)</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`email`</td><td style="height: 46.5938px;">string</td><td style="height: 46.5938px;">The email of the customer that placed the order</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`subtotal.amount`</td><td style="height: 29.7969px;">float</td><td style="height: 29.7969px;">The subtotal of the order **excluding tax**</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`subtotal.tax`</td><td style="height: 29.7969px;">float</td><td style="height: 29.7969px;">The subtotal tax for the order</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`shipping.amount`</td><td style="height: 29.7969px;">float</td><td style="height: 29.7969px;">The shipping of the order **excluding tax**</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`shipping.tax`</td><td style="height: 29.7969px;">float</td><td style="height: 29.7969px;">The shipping tax for the order</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`discount.amount`</td><td style="height: 29.7969px;">float</td><td style="height: 29.7969px;">The discount of the order **excluding tax**</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`discount.tax`</td><td style="height: 29.7969px;">float</td><td style="height: 29.7969px;">The discount tax for the order</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`surcharge.amount`</td><td style="height: 46.5938px;">float</td><td style="height: 46.5938px;">The surcharge of the order **excluding tax**</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`surcharge.tax`</td><td style="height: 29.7969px;">float</td><td style="height: 29.7969px;">The surcharge tax for the order</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`currency`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The currency code of the order</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`shipping_method`</td><td style="height: 46.5938px;">object</td><td style="height: 46.5938px;">The [Shipping Method](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-shipping-method) of the order (`null` if none)</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`shipping_address`</td><td style="height: 46.5938px;">object</td><td style="height: 46.5938px;">The [Shipping Address](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-shipping-address) of the order (`null` if none)</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`billing_address `</td><td style="height: 46.5938px;">object</td><td style="height: 46.5938px;">The [Billing Address](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-billing-address) of the order (`null` if none)</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`ordered_at`</td><td style="height: 29.7969px;">timestamp</td><td style="height: 29.7969px;">When the order was ordered</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`deliver_on`</td><td style="height: 29.7969px;">timestamp</td><td style="height: 29.7969px;">When the order should be delivered</td></tr><tr style="height: 35.3984px;"><td style="height: 35.3984px;">`items`</td><td style="height: 35.3984px;">array</td><td style="height: 35.3984px;">An array of [Order Item](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-order-item) objects</td></tr><tr style="height: 35.3984px;"><td style="height: 35.3984px;">`payments`</td><td style="height: 35.3984px;">array</td><td style="height: 35.3984px;">An array of [Payment](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-payment) objects</td></tr><tr style="height: 35.3984px;"><td style="height: 35.3984px;">`fulfillments`</td><td style="height: 35.3984px;">array</td><td style="height: 35.3984px;">An array of [Fulfillment](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-fulfillment) objects</td></tr><tr style="height: 35.3984px;"><td style="height: 35.3984px;">`returns`</td><td style="height: 35.3984px;">array</td><td style="height: 35.3984px;">An array of [Return](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-return) objects</td></tr><tr style="height: 35.3984px;"><td style="height: 35.3984px;">`comments`</td><td style="height: 35.3984px;">array</td><td style="height: 35.3984px;">An array of [Comment](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-comment) objects</td></tr><tr style="height: 35.3984px;"><td style="height: 35.3984px;">`additional_attributes`</td><td style="height: 35.3984px;">array</td><td style="height: 35.3984px;">An array of [Additional Attribute](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-additional-attribute) objects</td></tr></tbody></table>

##### Order Status

<table border="1" id="bkmrk-name-type-descriptio-1" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr><td>**Name**  
</td><td>**Type**  
</td><td>**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the order status</td></tr><tr><td>`name`</td><td>string</td><td>The name of the order status</td></tr><tr><td>`state`</td><td>string</td><td>The state of the order status</td></tr></tbody></table>

**Valid states:** cancelled, on\_hold, successful, complete, processing, closed, partially\_dispatched, dispatched, partially\_returned, returned

##### Customer

<table border="1" id="bkmrk-name-type-descriptio-2" style="border-collapse: collapse; width: 100%; height: 119.188px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`id`</td><td style="height: 29.7969px;">int</td><td style="height: 29.7969px;">The id of the customer</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`name`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The name of the customer</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`email`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The email of the customer</td></tr></tbody></table>

##### Shipping Method

<table border="1" id="bkmrk-name-type-descriptio-3" style="border-collapse: collapse; width: 100%; height: 119.188px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the shipping method</td></tr><tr><td>`name`</td><td>string</td><td>The name of the shipping method</td></tr></tbody></table>

##### Shipping Address

<table border="1" id="bkmrk-name-type-descriptio-4" style="border-collapse: collapse; width: 100%; height: 119.188px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`first_name`</td><td>string</td><td>The first name for the shipping address</td></tr><tr><td>`last_name`</td><td>string</td><td>The last name for the shipping address</td></tr><tr><td>`company`</td><td>string</td><td>The company for the shipping address</td></tr><tr><td>`mobile`</td><td>string</td><td>The mobile number for the shipping address</td></tr><tr><td>`phone`</td><td>string</td><td>The phone number for the shipping address</td></tr><tr><td>`line_1`</td><td>string</td><td>The first line for the shipping address</td></tr><tr><td>`line_2`</td><td>string</td><td>The second line for the shipping address</td></tr><tr><td>`city`</td><td>string</td><td>The city for the shipping address</td></tr><tr><td>`county`</td><td>string</td><td>The county for the shipping address</td></tr><tr><td>`zone`</td><td>string</td><td>The zone code for the shipping address</td></tr><tr><td>`postcode`</td><td>string</td><td>The postcode for the shipping address</td></tr><tr><td>`country`</td><td>string</td><td>The country code for the shipping address</td></tr><tr><td>`reference`</td><td>string</td><td>The **unique** reference for the shipping address</td></tr><tr><td>`eori_number`</td><td>string</td><td>The EORI number for the shipping address</td></tr></tbody></table>

##### Billing Address

<table border="1" id="bkmrk-name-type-descriptio-5" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`first_name`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The first name for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`last_name`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The last name for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`company`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The company for the billing address</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`mobile`</td><td style="height: 46.5938px;">string</td><td style="height: 46.5938px;">The mobile number for the billing address</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`phone`</td><td style="height: 46.5938px;">string</td><td style="height: 46.5938px;">The phone number for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`line_1`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The first line for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`line_2`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The second line for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`city`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The city for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`county`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The county for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`zone`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The zone code for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`postcode`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The postcode for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`country`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The country code for the billing address</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`reference`</td><td style="height: 46.5938px;">string</td><td style="height: 46.5938px;">The **unique** reference for the billing address</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`eori_number`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The EORI number for the billing address</td></tr></tbody></table>

##### Order Item

<table border="1" id="bkmrk-name-type-descriptio-6" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the order item</td></tr><tr><td>`variant_id`</td><td>int</td><td>The variant id of the buyable (not set if the buyable is not a variant)</td></tr><tr><td>`product_id`</td><td>int</td><td>The product id of the buyable</td></tr><tr><td>`buyable_type`</td><td>string</td><td>The buyable type of the order item</td></tr><tr><td>`buyable_id`</td><td>int</td><td>The buyable id of the order item</td></tr><tr><td>`name`</td><td>string</td><td>The name for the order item</td></tr><tr><td>`url`</td><td>string</td><td>The url for the order item</td></tr><tr><td>`sku`</td><td>string</td><td>The sku for the order item</td></tr><tr><td>`reference`</td><td>string</td><td>The **unique** reference for the order item</td></tr><tr><td>`manufacturer`</td><td>object</td><td>The [Manufacturer](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-manufacturer) for the order item (`null` if none)</td></tr><tr><td>`image.url`</td><td>string</td><td>The image url for the order item</td></tr><tr><td>`shippable`</td><td>boolean</td><td>Whether the order item is shippable</td></tr><tr><td>`quantity`</td><td>int</td><td>The quantity for the order item</td></tr><tr><td>`returned_quantity`</td><td>int</td><td>The quantity returned for the order item</td></tr><tr><td>`price.amount`</td><td>float</td><td>The **unit** price of the order item **excluding tax**</td></tr><tr><td>`price.tax`</td><td>float</td><td>The **unit** tax for the order item</td></tr><tr><td>`discount.amount`</td><td>float</td><td>The **total** discount of the order item **excluding tax**</td></tr><tr><td>`discount.tax`</td><td>float</td><td>The **total** discount tax for the order item</td></tr><tr><td>`full_price.amount`</td><td>float</td><td>The **unit** full price (including extras) of the order item **excluding tax**</td></tr><tr><td>`full_price.tax`</td><td>float</td><td>The **unit** full tax (including extras) for the order item</td></tr><tr><td>`cost_price.amount`</td><td>float</td><td>The **unit** cost price of the order item **excluding tax**</td></tr><tr><td>`cost_price.currency`</td><td>string</td><td>The currency code for the cost price</td></tr><tr><td>`weight`</td><td>float</td><td>The weight for the order item</td></tr><tr><td>`weight_unit`</td><td>float</td><td>The weight unit for the order item, defaults to stores normalized  
weight unit</td></tr><tr><td>`volume`</td><td>float</td><td>The volume for the order item</td></tr><tr><td>`volume_unit`</td><td>float</td><td>The volume unit for the order item, defaults to stores normalized  
volume unit</td></tr><tr><td>`hs`</td><td>string</td><td>The HS code for the order item</td></tr><tr><td>`origin_country`</td><td>string</td><td>The origin country code for the order item</td></tr><tr><td>`goods_description`</td><td>string</td><td>The goods description for the order item</td></tr></tbody></table>

##### Manufacturer

<table border="1" id="bkmrk-name-type-descriptio-7" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the manufacturer</td></tr><tr><td>`name`</td><td>string</td><td>The name of the manufacturer</td></tr></tbody></table>

##### Payment

<table border="1" id="bkmrk-name-type-descriptio-8" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the payment</td></tr><tr><td>`method`</td><td>object</td><td>The [Payment Method](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-payment-method) for the payment</td></tr><tr><td>`reference`</td><td>string</td><td>The reference for the payment</td></tr><tr><td>`state`</td><td>string</td><td>The state of the payment</td></tr><tr><td>`amount`</td><td>float</td><td>The total amount for the payment</td></tr><tr><td>`currency`</td><td>string</td><td>The currency code for the payment</td></tr><tr><td>`captured_at`</td><td>timestamp</td><td>The date the payment was captured</td></tr></tbody></table>

##### Payment Method

<table border="1" id="bkmrk-name-type-descriptio-9" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the payment method</td></tr><tr><td>`name`</td><td>string</td><td>The name of the payment method</td></tr><tr><td>`driver`</td><td>string</td><td>The driver of the payment method</td></tr></tbody></table>

##### Fulfillment

<table border="1" id="bkmrk-name-type-descriptio-10" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the order return</td></tr><tr><td>`method`</td><td>object</td><td>The [Fulfillment Method](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-fulfillment-method) for the fulfillment</td></tr><tr><td>`reference`</td><td>string</td><td>The reference of the fulfillment</td></tr><tr><td>`state`</td><td>string</td><td>The state of the fulfillment</td></tr><tr><td>`mobile`</td><td>string</td><td>The mobile number for the fulfillment</td></tr><tr><td>`phone`</td><td>string</td><td>The phone number for the fulfillment</td></tr><tr><td>`tracking_code`</td><td>string</td><td>The tracking code for the fulfillment</td></tr><tr><td>`tracking_url`</td><td>string</td><td>The tracking url for the fulfillment</td></tr><tr><td>`weight`</td><td>float</td><td>The weight for the fulfillment</td></tr><tr><td>`weight_unit`</td><td>string</td><td>The weight unit for the fulfillment, defaults to stores normalized  
weight unit</td></tr><tr><td>`volume`</td><td>float</td><td>The volume for the order item</td></tr><tr><td>`volume_unit`</td><td>string</td><td>The volume unit for the fulfillment, defaults to stores normalized  
volume unit</td></tr><tr><td>`delivery_note`</td><td>string</td><td>The delivery note for the fulfillment</td></tr><tr><td>`created_at`</td><td>timestamp</td><td>The date the fulfillment was made</td></tr><tr><td>`items`</td><td>array</td><td>An array of [Fulfillment Items](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-fulfillment-items) objects</td></tr></tbody></table>

##### Fulfillment Method

<table border="1" id="bkmrk-name-type-descriptio-11" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the fulfillment method</td></tr><tr><td>`name`</td><td>string</td><td>The name of the fulfillment method</td></tr><tr><td>`driver`</td><td>string</td><td>The driver of the fulfillment method</td></tr></tbody></table>

##### Fulfillment Items

<table border="1" id="bkmrk-name-type-descriptio-12" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the order item that was fulfilled</td></tr><tr><td>`quantity`</td><td>int</td><td>The quantity of the order item that was fulfilled</td></tr></tbody></table>

##### Return

<table border="1" id="bkmrk-name-type-descriptio-13" style="border-collapse: collapse; width: 100%; height: 171.383px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`id`</td><td style="height: 29.7969px;">int</td><td style="height: 29.7969px;">The id of the order return</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`reason`</td><td style="height: 46.5938px;">string</td><td style="height: 46.5938px;">The reason for the return - `null` if no reason given</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`created_at`</td><td style="height: 29.7969px;">timestamp</td><td style="height: 29.7969px;">The date the return was made</td></tr><tr style="height: 35.3984px;"><td style="height: 35.3984px;">`items`</td><td style="height: 35.3984px;">array</td><td style="height: 35.3984px;">An array of [Return Item](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-return-item) objects</td></tr></tbody></table>

##### Return Item

<table border="1" id="bkmrk-name-type-descriptio-14" style="border-collapse: collapse; width: 100%; height: 186.375px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`id`</td><td style="height: 46.5938px;">int</td><td style="height: 46.5938px;">The id of the order item that was returned</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`quantity`</td><td style="height: 46.5938px;">int</td><td style="height: 46.5938px;">The quantity of the order item that was returned</td></tr><tr style="height: 63.3906px;"><td style="height: 63.3906px;">`exchanged_for_id`</td><td style="height: 63.3906px;">int</td><td style="height: 63.3906px;">The id of the order item that the item was returned for (`null` if the item was not exchanged)</td></tr></tbody></table>

##### Comment

<table border="1" id="bkmrk-name-type-descriptio-15" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`admin`</td><td>object</td><td>The [Admin](https://support.aerocommerce.com/books/api/page/order-view-endpoint#bkmrk-admin) who commented</td></tr><tr><td>`message`</td><td>string</td><td>The comment message</td></tr><tr><td>`customer_facing`</td><td>boolean</td><td>Whether the comment is customer facing</td></tr><tr><td>`created_at`</td><td>timestamp</td><td>The date the comment was created</td></tr></tbody></table>

##### Admin

<table border="1" id="bkmrk-name-type-descriptio-16" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the admin</td></tr><tr><td>`name`</td><td>string</td><td>The name of the admin</td></tr><tr><td>`email`</td><td>string</td><td>The email of the admin</td></tr></tbody></table>

##### Additional Attribute

<table border="1" id="bkmrk-name-type-descriptio-17" style="border-collapse: collapse; width: 100%; height: 497.344px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr><td>`key`</td><td>string</td><td>The key of the additional attribute</td></tr><tr><td>`value`</td><td>string</td><td>The value of the additional attribute</td></tr></tbody></table>

---

#### Example Requests

<details id="bkmrk-unfulfilled-%26-unretu"><summary>Unfulfilled &amp; Unreturned Order</summary>

```
GET /api/orders/{id|reference}
```

```json
{
    "id": 1,
    "reference": "ABC123",
    "email": "testing@gmail.com",
    "subtotal": {
        "amount": 84166.67,
        "tax": 16833.33
    },
    "shipping": {
        "amount": 83.33,
        "tax": 16.67
    },
    "discount": {
        "amount": 8416.67,
        "tax": 1683.33
    },
    "surcharge": {
        "amount": 0,
        "tax": 0
    },
    "ordered_at": "2023-09-01T09:29:41.000000Z",
    "deliver_on": null,
    "currency": "GBP",
    "status": {
        "id": 3,
        "name": "Successful",
        "state": "successful"
    },
    "customer": {
        "id": 1,
        "name": "Test",
        "email": "test@gmail.com"
    },
    "shipping_method": {
        "id": 1,
        "name": "Standard"
    },
    "billing_address": {
        "id": 1,
        "first_name": "Aero",
        "last_name": "Commerce",
        "company": "Aero Commerce",
        "mobile": null,
        "phone": null,
        "line_1": "28-32 Albert Rd",
        "line_2": null,
        "city": "Middlesbrough",
        "zone": null,
        "postcode": "TS1 1QD",
        "reference": null,
        "country": "GB",
        "eori_number": null
    },
    "shipping_address": {
        "id": 1,
        "first_name": "Aero",
        "last_name": "Commerce",
        "company": "Aero Commerce",
        "mobile": null,
        "phone": null,
        "line_1": "28-32 Albert Rd",
        "line_2": null,
        "city": "Middlesbrough",
        "zone": null,
        "postcode": "TS1 1QD",
        "reference": null,
        "country": "GB",
        "eori_number": null
    },
    "items": [
        {
            "id": 148,
            "name": "Sandro Paris Checked Trench Coat",
            "sku": "SHPMA00148-M",
            "product_id": 4,
            "variant_id": 14,
            "shippable": true,
            "quantity": 2,
            "price": {
                "amount": 42083.33,
                "tax": 8416.67
            },
            "discount": {
                "amount": 8416.67,
                "tax": 1683.33
            },
            "full_price": {
                "amount": 42083.33,
                "tax": 8416.67
            },
            "weight": 0,
            "volume": 0
        }
    ],
    "payments": [
        {
            "id": "a53c31f9-43bd-4fc4-b308-cded0b533a2c",
            "method": {
                "id": 1,
                "name": "Cash",
                "driver": "cash"
            },
            "reference": "a53c31f9-43bd-4fc4-b308-cded0b533a2c",
            "amount": 91000,
            "currency": "GBP",
            "captured_at": "2023-09-12T10:17:03.000000Z"
        }
    ],
    "fulfillments": [],
    "returns": [],
    "comments": [
        {
            "admin": {
                "id": 1,
                "name": "Admin",
                "email": "admin@example.com"
            },
            "message": "This is an API message",
            "customer_facing": true,
            "created_at": "2025-09-01 09:29:41"
        }
    ]
}
```

</details><details id="bkmrk-fulfilled-order-get-"><summary>Fulfilled Order</summary>

```
GET /api/orders/{id|reference}
```

```json
{
    "id": 1,
    "reference": "ABC123",
    "email": "testing@gmail.com",
    "subtotal": {
        "amount": 84166.67,
        "tax": 16833.33
    },
    "shipping": {
        "amount": 83.33,
        "tax": 16.67
    },
    "discount": {
        "amount": 8416.67,
        "tax": 1683.33
    },
    "surcharge": {
        "amount": 0,
        "tax": 0
    },
    "currency": "GBP",
    "ordered_at": "2023-09-01T08:29:41.000000Z",
    "deliver_on": null,
    "status": {
        "id": 6,
        "name": "Dispatched",
        "state": "dispatched"
    },
    "customer": {
        "id": 1,
        "name": "Test",
        "email": "test@gmail.com"
    },
    "shipping_method": {
        "id": 1,
        "name": "Standard"
    },
    "billing_address": {
        "id": 1,
        "first_name": "Aero",
        "last_name": "Commerce",
        "company": "Aero Commerce",
        "mobile": null,
        "phone": null,
        "line_1": "28-32 Albert Rd",
        "line_2": null,
        "city": "Middlesbrough",
        "zone": null,
        "postcode": "TS1 1QD",
        "country": "GB",
        "eori_number": null
    },
    "shipping_address": {
        "id": 1,
        "first_name": "Aero",
        "last_name": "Commerce",
        "company": "Aero Commerce",
        "mobile": null,
        "phone": null,
        "line_1": "28-32 Albert Rd",
        "line_2": null,
        "city": "Middlesbrough",
        "zone": null,
        "postcode": "TS1 1QD",
        "country": "GB",
        "eori_number": null
    },
    "items": [
        {
            "id": 26,
            "name": "Sandro Paris Checked Trench Coat",
            "url": "/product/sandro-paris-checked-trench-coat-4?variant=2",
            "sku": "SHPMA00148-M",
            "reference": null,
            "manufacturer": {
                "id": 2,
                "name": "Sandro Paris"
            },
            "image": {
                "url": "http://l9.test/storage/images/products/uaaVbTbqbZxs1FH3N28Tw0a7dc6I7Xd08DiyPAG6.jpg"
            },
            "product_id": 4,
            "variant_id": 14,
            "buyable_type": "variant",
            "buyable_id": 14,
            "shippable": true,
            "quantity": 2,
            "returned_quantity": 0,
            "price": {
                "amount": 42083.33,
                "tax": 8416.67
            },
            "discount": {
                "amount": 8416.67,
                "tax": 1683.33
            },
            "full_price": {
                "amount": 42083.33,
                "tax": 8416.67
            },
            "weight": 0,
            "volume": 0,
            "cost_price": {
                "amount": null,
                "currency": null
            },
            "hs": null,
            "origin_country": null,
            "goods_description": null
        }
    ],
    "flags": [],
    "payments": [
        {
            "id": "a53c31f9-43bd-4fc4-b308-cded0b533a2c",
            "method": {
                "id": 1,
                "name": "Cash",
                "driver": "cash"
            },
            "reference": "a53c31f9-43bd-4fc4-b308-cded0b533a2c",
            "state": "captured",
            "amount": 91000,
            "currency": "GBP",
            "captured_at": "2023-09-12T10:17:03.000000ZZ",
            "refunds": []
        }
    ],
    "fulfillments": [
        {
            "id": 3,
            "method": {
                "id": 1,
                "name": "Manual Fulfillment",
                "driver": "manual"
            },
            "address": {
                "id": 3,
                "first_name": "Aero",
                "last_name": "Commerce",
                "company": "Aero Commerce",
                "mobile": null,
                "phone": null,
                "line_1": "28-32 Albert Rd",
                "line_2": null,
                "city": "Middlesbrough",
                "zone": null,
                "postcode": "TS1 1QD",
                "country": "GB",
                "eori_number": null
            },
            "reference": "F3-128",
            "state": "successful",
            "mobile": null,
            "email": "testing@gmail.com",
            "tracking_code": "test tracking code",
            "tracking_url": null,
            "weight": 0,
            "weight_unit": null,
            "volume": 0,
            "volume_unit": "cm^3",
            "delivery_note": "test delivery note",
            "created_at": "2023-09-12T10:17:03.000000Z",
            "items": [
                {
                    "id": 26,
                    "quantity": 2
                }
            ]
        }
    ],
    "returns": [],
    "comments": []
}
```

</details><details id="bkmrk-returned-order-%28exch"><summary>Returned Order (Exchange)</summary>

```
GET /api/orders/{id|reference}
```

```json
{
    "id": 1,
    "reference": "ABC123",
    "email": "testing@gmail.com",
    "subtotal": {
        "amount": 84166.67,
        "tax": 16833.33
    },
    "shipping": {
        "amount": 83.33,
        "tax": 16.67
    },
    "discount": {
        "amount": 8416.67,
        "tax": 1683.33
    },
    "surcharge": {
        "amount": 0,
        "tax": 0
    },
    "currency": "GBP",
    "ordered_at": "2023-09-01T08:29:41.000000Z",
    "deliver_on": null,
    "status": {
        "id": 7,
        "name": "Partially Returned",
        "state": "partially_returned"
    },
    "customer": {
        "id": 1,
        "name": "Test",
        "email": "test@gmail.com"
    },
    "shipping_method": {
        "id": 1,
        "name": "Standard"
    },
    "billing_address": {
        "id": 1,
        "first_name": "Aero",
        "last_name": "Commerce",
        "company": "Aero Commerce",
        "mobile": null,
        "phone": null,
        "line_1": "28-32 Albert Rd",
        "line_2": null,
        "city": "Middlesbrough",
        "zone": null,
        "postcode": "TS1 1QD",
        "country": "GB",
        "eori_number": null
    },
    "shipping_address": {
        "id": 1,
        "first_name": "Aero",
        "last_name": "Commerce",
        "company": "Aero Commerce",
        "mobile": null,
        "phone": null,
        "line_1": "28-32 Albert Rd",
        "line_2": null,
        "city": "Middlesbrough",
        "zone": null,
        "postcode": "TS1 1QD",
        "country": "GB",
        "eori_number": null
    },
    "items": [
        {
            "id": 26,
            "name": "Sandro Paris Checked Trench Coat",
            "url": "/product/sandro-paris-checked-trench-coat-4?variant=2",
            "sku": "SHPMA00148-M",
            "reference": null,
            "manufacturer": {
                "id": 2,
                "name": "Sandro Paris"
            },
            "image": {
                "url": "http://l9.test/storage/images/products/uaaVbTbqbZxs1FH3N28Tw0a7dc6I7Xd08DiyPAG6.jpg"
            },
            "product_id": 4,
            "variant_id": 14,
            "buyable_type": "variant",
            "buyable_id": 14,
            "shippable": true,
            "quantity": 2,
            "returned_quantity": 0,
            "price": {
                "amount": 42083.33,
                "tax": 8416.67
            },
            "discount": {
                "amount": 8416.67,
                "tax": 1683.33
            },
            "full_price": {
                "amount": 42083.33,
                "tax": 8416.67
            },
            "weight": 0,
            "volume": 0,
            "cost_price": {
                "amount": null,
                "currency": null
            },
            "hs": null,
            "origin_country": null,
            "goods_description": null
        }
    ],
    "flags": [],
    "payments": [
        {
            "id": "a53c31f9-43bd-4fc4-b308-cded0b533a2c",
            "method": {
                "id": 1,
                "name": "Cash",
                "driver": "cash"
            },
            "reference": "a53c31f9-43bd-4fc4-b308-cded0b533a2c",
            "state": "captured",
            "amount": 91000,
            "currency": "GBP",
            "captured_at": "2023-09-12T10:17:03.000000ZZ",
            "refunds": []
        }
    ],
    "fulfillments": [],
    "returns": [
        {
            "id": 1,
            "reason": "Test Reason",
            "created_at": "2023-09-12T10:17:03.000000ZZ",
            "items": [
                {
                    "id": 26,
                    "quantity": 2,
                    "exchanged_for_id": 27
                }
            ]
        }
    ],
    "comments": []
}
```

</details><details id="bkmrk-returned-order-%28refu"><summary>Returned Order (Refund)</summary>

```
GET /api/orders/{id|reference}
```

```json
{
    "id": 1,
    "reference": "ABC123",
    "email": "testing@gmail.com",
    "subtotal": {
        "amount": 84166.67,
        "tax": 16833.33
    },
    "shipping": {
        "amount": 83.33,
        "tax": 16.67
    },
    "discount": {
        "amount": 8416.67,
        "tax": 1683.33
    },
    "surcharge": {
        "amount": 0,
        "tax": 0
    },
    "currency": "GBP",
    "ordered_at": "2023-09-01T08:29:41.000000Z",
    "deliver_on": null,
    "status": {
        "id": 8,
        "name": "Returned",
        "state": "returned"
    },
    "customer": {
        "id": 1,
        "name": "Test",
        "email": "test@gmail.com"
    },
    "shipping_method": {
        "id": 1,
        "name": "Standard"
    },
    "billing_address": {
        "id": 1,
        "first_name": "Aero",
        "last_name": "Commerce",
        "company": "Aero Commerce",
        "mobile": null,
        "phone": null,
        "line_1": "28-32 Albert Rd",
        "line_2": null,
        "city": "Middlesbrough",
        "zone": null,
        "postcode": "TS1 1QD",
        "country": "GB",
        "eori_number": null
    },
    "shipping_address": {
        "id": 1,
        "first_name": "Aero",
        "last_name": "Commerce",
        "company": "Aero Commerce",
        "mobile": null,
        "phone": null,
        "line_1": "28-32 Albert Rd",
        "line_2": null,
        "city": "Middlesbrough",
        "zone": null,
        "postcode": "TS1 1QD",
        "country": "GB",
        "eori_number": null
    },
    "items": [
        {
            "id": 26,
            "name": "Sandro Paris Checked Trench Coat",
            "url": "/product/sandro-paris-checked-trench-coat-4?variant=2",
            "sku": "SHPMA00148-M",
            "reference": null,
            "manufacturer": {
                "id": 2,
                "name": "Sandro Paris"
            },
            "image": {
                "url": "http://l9.test/storage/images/products/uaaVbTbqbZxs1FH3N28Tw0a7dc6I7Xd08DiyPAG6.jpg"
            },
            "product_id": 4,
            "variant_id": 14,
            "buyable_type": "variant",
            "buyable_id": 14,
            "shippable": true,
            "quantity": 2,
            "returned_quantity": 0,
            "price": {
                "amount": 42083.33,
                "tax": 8416.67
            },
            "discount": {
                "amount": 8416.67,
                "tax": 1683.33
            },
            "full_price": {
                "amount": 42083.33,
                "tax": 8416.67
            },
            "weight": 0,
            "volume": 0,
            "cost_price": {
                "amount": null,
                "currency": null
            },
            "hs": null,
            "origin_country": null,
            "goods_description": null
        }
    ],
    "flags": [],
    "payments": [
        {
            "id": "a53c31f9-43bd-4fc4-b308-cded0b533a2c",
            "method": {
                "id": 1,
                "name": "Cash",
                "driver": "cash"
            },
            "reference": "a53c31f9-43bd-4fc4-b308-cded0b533a2c",
            "state": "captured",
            "amount": 91000,
            "currency": "GBP",
            "captured_at": "2023-09-12T10:17:03.000000ZZ",
            "refunds": [
                {
                    "id": 1,
                    "amount": 91000,
                    "created_at": "2025-09-16T07:40:22.000000Z"
                }
            ]
        }
    ],
    "fulfillments": [],
    "returns": [
        {
            "id": 1,
            "reason": "Test reason",
            "created_at": "2025-09-16T07:40:22.000000Z",
            "items": [
                {
                    "id": 28,
                    "quantity": 2,
                    "exchanged_for_id": null
                }
            ]
        }
    ],
    "comments": []
}
```

</details>