> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

## 6.0 Fulfill order as a merchant

When building a *Buy Online, Pick up in Store* solution, merchants can fulfill orders for pickup using the existing [Orders V2 API](/developer/api-reference/rest/admin/management/orders).

To fulfill an order, send a request to the [Create an order](/developer/api-reference/rest/admin/management/orders/create-order) endpoint.

#### Request

**`Example request: Create an order`**

```http title="Example request: Create an order"
POST https://api.bigcommerce.com/stores/{{store_hash}}/v2/orders
X-Auth-Token: {{access_token}}
Content-Type: application/json
Accept: application/json

{
  "billing_address": {
    "state": "Washington",
    "zip": "98006",
    "country": "United States"
  },
  "consignments": {
    "pickups": [
      {
        "pickup_method_id": 1,
        "pickup_method_display_name": "Pick Up",
        "collection_instructions": "Bring your ID",
        "collection_time_description": "9am - 6pm",
        "location": {
          "name": "Location 1",
          "code": "LOCATION-1",
          "address_line_1": "123 Main Street",
          "address_line_2": "Suite 101",
          "city": "Austin",
          "state": "Texas",
          "postal_code": "78726",
          "country_alpha2": "US",
          "email": "location1@example.com",
          "phone": "+1 111-111-1111"
        },
        "line_items": [
          {
            "name": "Fog Linen Chambray Towel - Beige Stripe",
            "quantity": 3,
            "price_ex_tax": 0,
            "price_inc_tax": 0
          }
        ]
      }
    ]
  }
}
```

#### Response

**`Example response: Create an order`**

```json title="Example response: Create an order"
{
  "id": 1234000049,
  ...
  "billing_address": {
    "first_name": "",
    "last_name": "",
    "company": "",
    "street_1": "",
    "street_2": "",
    "city": "",
    "state": "Washington",
    "zip": "98006",
    "country": "United States",
    "country_iso2": "US",
    "phone": "",
    "email": "",
    "form_fields": []
  },
  "consignments": {
    "url": "https://api.bigcommerce.com/stores/o8ertuc7vw/v2/orders/1234000049/consignments",
    "resource": "/orders/1234000049/consignments"
  },
  ...
}
```