Fulfill order as a merchant

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.

To fulfill an order, send a request to the Create an order endpoint.

Example request: Create an order
1POST https://api.bigcommerce.com/stores/{{store_hash}}/v2/orders
2X-Auth-Token: {{access_token}}
3Content-Type: application/json
4Accept: application/json
5
6{
7 "billing_address": {
8 "state": "Washington",
9 "zip": "98006",
10 "country": "United States"
11 },
12 "consignments": {
13 "pickups": [
14 {
15 "pickup_method_id": 1,
16 "pickup_method_display_name": "Pick Up",
17 "collection_instructions": "Bring your ID",
18 "collection_time_description": "9am - 6pm",
19 "location": {
20 "name": "Location 1",
21 "code": "LOCATION-1",
22 "address_line_1": "123 Main Street",
23 "address_line_2": "Suite 101",
24 "city": "Austin",
25 "state": "Texas",
26 "postal_code": "78726",
27 "country_alpha2": "US",
28 "email": "location1@example.com",
29 "phone": "+1 111-111-1111"
30 },
31 "line_items": [
32 {
33 "name": "Fog Linen Chambray Towel - Beige Stripe",
34 "quantity": 3,
35 "price_ex_tax": 0,
36 "price_inc_tax": 0
37 }
38 ]
39 }
40 ]
41 }
42}