> ## 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.

# Fulfillments

> Each shipment, dated by the day it was created: orders fulfilled, shipped and delivered, time to ship and deliver, tracking, on-time delivery and split shipments, by carrier, service and location.

Each shipment, dated by the day it was created: orders fulfilled, shipped and delivered, time to ship and deliver, tracking, on-time delivery and split shipments, by carrier, service and location.

## Example

```sql theme={null}
FROM fulfillments
  SHOW orders_fulfilled, orders_shipped
  GROUP BY inventory_location_name
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY orders_fulfilled DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `orders_fulfilled` | Number | Orders with a shipment created in the period. |
| `orders_shipped` | Number | Orders whose shipment the carrier has scanned. |
| `orders_delivered` | Number | Orders whose shipment the carrier has delivered. |
| `median_days_order_to_fulfillment` | Days | Time from the order to its shipment being created, in days, the middle value across the shipments. |
| `median_hours_order_to_fulfillment` | Hours | Time from the order to its shipment being created, in hours, the middle value across the shipments. |
| `median_days_order_to_shipping` | Days | Time from the order to the carrier's first scan, in days, the middle value across the shipments. |
| `median_hours_order_to_shipping` | Hours | Time from the order to the carrier's first scan, in hours, the middle value across the shipments. |
| `median_days_order_to_delivery` | Days | Time from the order to delivery, in days, the middle value across the shipments. |
| `median_hours_order_to_delivery` | Hours | Time from the order to delivery, in hours, the middle value across the shipments. |
| `median_days_fulfillment_to_shipping` | Days | Time from the shipment being created to the carrier's first scan, in days, the middle value across the shipments. |
| `median_hours_fulfillment_to_shipping` | Hours | Time from the shipment being created to the carrier's first scan, in hours, the middle value across the shipments. |
| `median_days_shipping_to_delivery` | Days | Time from the carrier's first scan to delivery, in days, the middle value across the shipments. |
| `median_hours_shipping_to_delivery` | Hours | Time from the carrier's first scan to delivery, in hours, the middle value across the shipments. |
| `orders_with_tracking_included_rate` | Percent | Orders fulfilled with a tracking number, as a share of orders fulfilled. |
| `rounded_median_hours_order_to_shipping` | Number | Time from the order to the carrier's first scan, in whole hours, the middle value across the shipments. |
| `fulfillments_with_delivery_outcomes` | Number | Shipments delivered against a promised date, counted on the day they were fulfilled. |
| `on_time_fulfillments` | Number | Shipments delivered by the promised date, counted on the day they were fulfilled. |
| `on_time_delivery_rate` | Percent | Shipments delivered by the promised date, as a share of those delivered against one. |
| `average_days_late` | Number | For shipments delivered after the promised date, the average days they were late. |
| `split_shipment_rate` | Percent | Orders sent in more than one shipment, as a share of orders fulfilled. |

## Dimensions

| Dimension | Description |
| - | - |
| `inventory_location_name` | The location the shipment was sent from. |
| `shipping_carrier` | The shipment's carrier. |
| `shipping_service` | The carrier and service on the shipping label, as Shopify names them (ups\_shipping · UPS Ground). |
| `delivery_timing` | Whether the shipment arrived by the promise: on\_time, one\_day\_late or two\_or\_more\_days\_late. |
| `fulfillment_status` | Where the shipment stands, such as FULFILLED, IN\_TRANSIT or DELIVERED. |
| `destination_country` | The country the shipment went to. |
| `destination_region` | The state, province or UK nation the shipment went to. |
| `destination_city` | The city the shipment went to, with its country and region. |
| `order_placement_hour_of_day` | The hour of day the order was placed, from 0 to 23. |
| `order_placement_day_of_week` | The day of week the order was placed, Monday through Sunday. |
| `fulfillment_event_days` | Whole days from the order to the event (fulfilled, shipped or delivered). |
| `fulfillment_event_hours` | Whole hours from the order to the event. |
| `delivery_timeliness` | Whether the shipment arrived by the promised date: on\_time, late, no\_promise or not\_delivered. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `shipping_service` | Text | The carrier and service on the shipping label, as Shopify names them (ups\_shipping · UPS Ground). |
| `fulfillment_status` | Text | Where the shipment stands, such as FULFILLED, IN\_TRANSIT or DELIVERED. |
| `destination_region` | Text | The state, province or UK nation the shipment went to. |
| `destination_city` | Text | The city the shipment went to, with its country and region. |
| `order_placement_hour_of_day` | Text | The hour of day the order was placed, from 0 to 23. |
| `fulfillment_event_days` | Text | Whole days from the order to the event (fulfilled, shipped or delivered). |
| `fulfillment_event_hours` | Text | Whole hours from the order to the event. |
| `delivery_timeliness` | Text | Whether the shipment arrived by the promised date: on\_time, late, no\_promise or not\_delivered. |
| `order_placement_date` | Date | The day the order was placed. |
| `delivery_timing` | Text | Whether the shipment arrived by the promise. |
| `shipping_country` | Text | The country the shipment went to. |
| `fulfillment_origin_country` | Text | The country the shipment was sent from. |
| `shipping_to_delivery_hours` | Number | Whole hours from the carrier's first scan to delivery. |
| `shipping_carrier` | Text | The shipment's carrier. |
| `destination_country` | Text | The country the shipment went to. |
| `inventory_location_name` | Text | The location the shipment was sent from. |

## 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

* [Fulfillment backlog](https://docs.queryful.app/queryfulql/datasets/fulfillment_orders.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.