Update Order
Function
To update order data
更新訂單資訊
To update reference user id of the third party
儲存第三方訂單ID
To update order's tracking information (Only reserved for customized delivery options )
更新訂單追蹤資訊(只開放給自訂/非第三方串接物流之送貨方式使用)
After return_order_revamp feature key on/啟用「return_order_revamp」功能後
- 訂單狀態已完成,不可更新運送資訊/運送地址資訊/物流追蹤資訊。
URL
PATCH <<api_domain>>/v1/orders/:id
Request Parameters
Parameter | Type | Description | Example |
|---|---|---|---|
id *Required |
| Order's ID | |
tracking_number |
| Delivery Tracking Number | |
tracking_url |
| Delivery Tracking url | |
delivery_provider_name |
| Delivery Provider Name | |
ref_order_id |
| For third party custom order id
| |
delivery_data | Delivery Data Able to update the fields below
| | |
delivery_address | Delivery Address Information Able to update the fields below
| | |
custom_data |
| Custom data | |
Request Example
curl -X PATCH \
<<api_domain>>/v1/orders/5b2b66599a76f0196a000a54 \
-H 'Accept: application/json' \
-H 'Authorization: access_token' \
-H 'Content-Type: application/json' \
-d '{
"tracking_number": "66827510120656",
"tracking_url": "http://www.dhl.com/tracking",
"delivery_provider_name": {
"zh-hant": "DHL",
"en": "DHL"
},
"delivery_data": {
"location_code": "F004507",
"location_name": "全家木興店1",
"store_address": "台北市文山區木柵路二段52號1",
"recipient_name": "Sheryl",
"recipient_phone": "0987654321"
},
"delivery_address": {
"address_1": "1/F, Some Building",
"address_2": "No. 123 Some Street, Somewhere",
"city": "City",
"state": "Perak",
"postcode":"36500",
"country": "Malaysia",
"country_code":"MY"
}
}'Response Field
Response Example
Updated 13 days ago