Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Update Fulfillment

Developer Preview

Updates an existing fulfillment

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Orders permission scope.

PUT

https://www.wixapis.com/stores/v2/orders/{orderId}/fulfillments/{fulfillmentId}

Path Params

NAME
TYPE
DESCRIPTION
orderId
Required

string

Order ID

fulfillmentId
Required

string

Fulfillment ID

Body Params

NAME
TYPE
DESCRIPTION
fulfillmentTrackingInfo

object

Updated tracking info

Response Object

NAME
TYPE
DESCRIPTION
order

object

Updated order data

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

curl

Copy Code
1curl -X PUT 'https://www.wixapis.com/stores/v2/orders/fedb19f5-bd4c-4bfc-b2d1-212538319611/fulfillments/5945017a-bf19-414e-ae67-af3d2dbc66ff' \
2--data-binary '{
3 "fulfillmentTrackingInfo": {
4 "shippingProvider": "fedex",
5 "trackingNumber": "123"
6 }
7 }' \
8-H 'Content-Type: application/json' \
9-H 'Authorization: <AUTH>'

Response

json

1
2{"order": {
3 "id": "fedb19f5-bd4c-4bfc-b2d1-212538319611",
4 "number": 10096,
5 "dateCreated": "2020-03-18T16:47:59.222Z",
6 "buyerInfo": {
7 "id": "e9a69747-6816-42fb-87bf-4cd60a408b4e",
8 "type": "CONTACT",
9 "identityType": "CONTACT",
10 "firstName": "John",
11 "lastName": "Smith",
12 "phone": "+972 555234555",
13 "email": "Ivanushka@example.com"
14 },
15 "currency": "USD",
16 "weightUnit": "LB",
17 "totals": {
18 "subtotal": "10",
19 "shipping": "3",
20 "tax": "3",
21 "discount": "1",
22 "total": "15",
23 "weight": "30",
24 "quantity": 2
25 },
26 "billingInfo": {
27 "paymentMethod": "PayPal",
28 "externalTransactionId": "tx_1806",
29 "paymentProviderTransactionId": "tx_1806",
30 "address": {
31 "fullName": {
32 "firstName": "John",
33 "lastName": "Smith"
34 },
35 "country": "US",
36 "city": "New York",
37 "zipCode": "92544",
38 "phone": "+972 555234555",
39 "email": "Ivanushka@example.com"
40 },
41 "paidDate": "2020-03-18T16:47:59.244Z"
42 },
43 "shippingInfo": {
44 "deliveryOption": "Express",
45 "estimatedDeliveryTime": "Today",
46 "shipmentDetails": {
47 "address": {
48 "fullName": {
49 "firstName": "John",
50 "lastName": "Smith"
51 },
52 "country": "US",
53 "city": "New York",
54 "zipCode": "92544",
55 "phone": "+972 555234555",
56 "email": "Ivanushka@example.com"
57 },
58 "trackingInfo": {
59 "trackingNumber": "123",
60 "shippingProvider": "FEDEX",
61 "trackingLink": "https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber=123"
62 },
63 "discount": "0",
64 "tax": "1",
65 "priceData": {
66 "taxIncludedInPrice": false,
67 "price": "3"
68 }
69 }
70 },
71 "read": false,
72 "archived": false,
73 "paymentStatus": "PAID",
74 "fulfillmentStatus": "PARTIALLY_FULFILLED",
75 "lineItems": [ {
76 "index": 1,
77 "quantity": 2,
78 "price": "5",
79 "name": "my product",
80 "productId": "a1f9d337-f831-4529-31e6-67db8fd4e1aa",
81 "totalPrice": "10",
82 "lineItemType": "PHYSICAL",
83 "options": [],
84 "customTextFields": [],
85 "weight": "15",
86 "sku": "12345678",
87 "discount": "1",
88 "tax": "1",
89 "taxIncludedInPrice": false,
90 "priceData": {
91 "taxIncludedInPrice": false,
92 "price": "5",
93 "totalPrice": "10"
94 }
95 }],
96 "activities": [
97 {
98 "type": "ORDER_PLACED",
99 "timestamp": "2020-03-18T16:47:59.222Z"
100 },
101 {
102 "type": "ORDER_PAID",
103 "timestamp": "2020-03-18T16:47:59.244Z"
104 },
105 {
106 "type": "TRACKING_NUMBER_ADDED",
107 "timestamp": "2020-03-18T16:55:59.178Z"
108 },
109 {
110 "type": "TRACKING_NUMBER_ADDED",
111 "timestamp": "2020-03-18T17:04:01.397Z"
112 },
113 {
114 "type": "TRACKING_NUMBER_EDITED",
115 "timestamp": "2020-03-18T17:05:55.724Z"
116 }
117 ],
118 "fulfillments": [ {
119 "id": "5945017a-bf19-414e-ae67-af3d2dbc66ff",
120 "dateCreated": "2020-03-18T17:04:01.397Z",
121 "lineItems": [ {
122 "index": 1,
123 "quantity": 1
124 }],
125 "trackingInfo": {
126 "trackingNumber": "123",
127 "shippingProvider": "fedex",
128 "trackingLink": "https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber=123"
129 }
130 }],
131 "discount": {"value": "1"},
132 "buyerLanguage": "en",
133 "channelInfo": {"type": "WEB"},
134 "enteredBy": {
135 "id": "e85274cf-047a-4989-baff-dac5e0c3971d",
136 "identityType": "USER"
137 },
138 "lastUpdated": "2020-03-18T17:05:55.724Z"
139}}