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

# Fulfillment backlog

> Orders waiting to ship, now: how many, how many units, how long they have waited, holds and overdue orders, by location.

Orders waiting to ship, now: how many, how many units, how long they have waited, holds and overdue orders, by location.

## Example

```sql theme={null}
FROM fulfillment_orders
  SHOW orders_awaiting_fulfillment, units_awaiting_fulfillment
  GROUP BY fulfillment_order_age
  ORDER BY orders_awaiting_fulfillment DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `orders_awaiting_fulfillment` | Number | Orders with items still to ship, now. |
| `units_awaiting_fulfillment` | Number | Units still to ship, now. |
| `average_days_waiting` | Number | How long the open fulfillment orders have waited, on average. |
| `overdue_fulfillment_orders` | Number | Open fulfillment orders past their fulfill-by date. |

## Dimensions

| Dimension | Description |
| - | - |
| `fulfillment_order_age` | How long the order has waited to ship: 0-1 days, 2-3 days, 4-7 days or 8+ days. |
| `fulfillment_order_status` | OPEN, IN\_PROGRESS, ON\_HOLD, SCHEDULED or INCOMPLETE. |
| `fulfillment_hold_reason` | Why the order is on hold. An order with several holds counts under each. |
| `fulfillment_hold_notes` | The notes left on the hold. An order with several holds counts under each. |
| `assigned_location_name` | The location assigned to ship the order. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `fulfillment_order_age` | Text | How long the order has waited to ship: 0-1 days, 2-3 days, 4-7 days or 8+ days. |
| `fulfillment_order_status` | Text | OPEN, IN\_PROGRESS, ON\_HOLD, SCHEDULED or INCOMPLETE. |
| `assigned_location_name` | Text | The location assigned to ship the order. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `order.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `order.<field>` | [Order](https://docs.queryful.app/queryfulql/records/order.md) | Order |
| `order.customer.<field>` | [Customer](https://docs.queryful.app/queryfulql/records/customer.md) | Order › Customer |
| `order.customer.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Customer › Company |
| `order.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company |
| `order.company_location.<field>` | [Company location](https://docs.queryful.app/queryfulql/records/company_location.md) | Order › Company location |
| `order.company_location.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company location › Company |
| `order.location.<field>` | [Location](https://docs.queryful.app/queryfulql/records/location.md) | Order › Location |
| `order.market.<field>` | [Market](https://docs.queryful.app/queryfulql/records/market.md) | Order › Market |
| `location.<field>` | [Location](https://docs.queryful.app/queryfulql/records/location.md) | Location |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Fulfillments](https://docs.queryful.app/queryfulql/datasets/fulfillments.md)
* [Shipping labels](https://docs.queryful.app/queryfulql/datasets/shipping_labels.md)
* [Shipping methods](https://docs.queryful.app/queryfulql/datasets/shipping_methods.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.