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

# Create Fulfillment

> Create a fulfillment for the order's items.

Creates a fulfillment for the specified items from a stock location owned by the seller.

## Path parameters

**id** `string` *required*

The order's ID.

## Body parameters

**items** `object[]` *required*

Items to fulfill.

**properties**

**id** `string` *required*

Line item ID.

**quantity** `number` *required*

Quantity to fulfill; integer, minimum 0.

**requires\_shipping** `boolean` *required*

Whether the fulfillment requires shipping.

**location\_id** `string` *required*

ID of the stock location to fulfill from.

## Response

**fulfillment** `object`

**properties**

**id** `string`

The fulfillment's ID.

**location\_id** `string`

ID of the stock location fulfilled from.

**requires\_shipping** `boolean`

Whether the fulfillment requires shipping.

**packed\_at** `string`

When the fulfillment was packed.

**shipped\_at** `string`

When the fulfillment was shipped.

**delivered\_at** `string`

When the fulfillment was delivered.

**created\_at** `string`

Creation timestamp.

```bash cURL theme={null}
curl -X POST 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/fulfillments' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>' \
  -H 'Content-Type: application/json' \
  -d '{
    "items": [{ "id": "ordli_01HXYZABCDEF", "quantity": 1 }],
    "requires_shipping": true,
    "location_id": "sloc_01HXYZABCDEF"
  }'
```

```ts JS Client theme={null}
const { fulfillment } = await client.vendor.orders.$id.fulfillments.mutate({
  $id: "order_01HXYZABCDEF",
  items: [{ id: "ordli_01HXYZABCDEF", quantity: 1 }],
  requires_shipping: true,
  location_id: "sloc_01HXYZABCDEF",
})
```

```json 200 theme={null}
{
  "fulfillment": {
    "id": "ful_01HXYZABCDEF",
    "location_id": "sloc_01HXYZABCDEF",
    "requires_shipping": true,
    "packed_at": "2026-06-03T10:00:00.000Z",
    "shipped_at": null,
    "delivered_at": null,
    "created_at": "2026-06-03T10:00:00.000Z"
  }
}
```


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