Version: 202201
Complete Fulfillment
POST/openapi/2022-01/orders/:order_id/fulfillments/:fulfillment_id/complete
Marks a specific fulfillment as complete. If the fulfillment is already finished, the API retrieves and returns the fulfillment details instead.
Request
Path Parameters
order_id stringrequired
Order's ID
fulfillment_id stringrequired
Fulfillment's id
Responses
- 200
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- Array [
- ]
- ]
fulfillment object
idstring
Example:
51c7dd5d-8f49-40c3-b2c1-5dfdeef9946dorder_idstring
Example:
633130-00000007statusstring
Example:
finishedtracking_companystring
Example:
燕文物流tracking_numberstring
Example:
11111111112tracking_company_codestring
Example:
DJ-11343tracking_urlstring
Example:
created_atstring
Example:
2024-04-22T08:37:12Zupdated_atstring
Example:
2024-04-22T08:45:00Zline_items object[]
idstring
Example:
ed8af005-1f4e-42d1-859d-99b0fd420781product_idstring
Example:
a1a88be0-a1d4-47e4-a2f2-ba6e131cf447variant_idstring
Example:
a7175820-36b3-4fc6-9baf-51e3035242bavariant_titlestring
Example:
L-blue-Tproduct_titlestring
Example:
shirtproduct_handlestring
Example:
shirtquantityinteger
Default value:
0Example:
1notestring
Example:
fulfillment_statusstring
Example:
finishedskustring
Example:
T-M-L-blue-T-A001008weight_unitstring
Example:
kgvendorstring
Example:
shoplazzaproduct_urlstring
Example:
/products/shirtcompare_at_pricestring
Example:
97.00imagestring
Example:
//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpegpricestring
Example:
81.00totalstring
Example:
81.00weightstring
Example:
1.10properties object[]
namestring
Example:
sizevaluestring
Example:
Lcustom_properties object
object
refund_quantityinteger
Default value:
0Example:
0refund_totalstring
Example:
0.00taxableboolean
Default value:
trueExample:
truerequires_shippingboolean
Default value:
trueExample:
trueshipping_quantityinteger
Default value:
0Example:
1{
"fulfillment": {
"id": "51c7dd5d-8f49-40c3-b2c1-5dfdeef9946d",
"order_id": "633130-00000007",
"status": "finished",
"tracking_company": "燕文物流",
"tracking_number": "11111111112",
"tracking_company_code": "DJ-11343",
"tracking_url": "",
"created_at": "2024-04-22T08:37:12Z",
"updated_at": "2024-04-22T08:45:00Z",
"line_items": [
{
"id": "ed8af005-1f4e-42d1-859d-99b0fd420781",
"product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
"variant_id": "a7175820-36b3-4fc6-9baf-51e3035242ba",
"variant_title": "L-blue-T",
"product_title": "shirt",
"product_handle": "shirt",
"quantity": 1,
"note": "",
"fulfillment_status": "finished",
"sku": "T-M-L-blue-T-A001008",
"weight_unit": "kg",
"vendor": "shoplazza",
"product_url": "/products/shirt",
"compare_at_price": "97.00",
"image": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
"price": "81.00",
"total": "81.00",
"weight": "1.10",
"properties": [
{
"name": "size",
"value": "L"
}
],
"custom_properties": {},
"refund_quantity": 0,
"refund_total": "0.00",
"taxable": true,
"requires_shipping": true,
"shipping_quantity": 1
}
]
}
}
{
"fulfillment": {
"id": "51c7dd5d-8f49-40c3-b2c1-5dfdeef9946d",
"order_id": "633130-00000007",
"status": "finished",
"tracking_company": "燕文物流",
"tracking_number": "11111111112",
"tracking_company_code": "DJ-11343",
"tracking_url": "",
"created_at": "2024-04-22T08:37:12Z",
"updated_at": "2024-04-22T08:45:00Z",
"line_items": [
{
"id": "ed8af005-1f4e-42d1-859d-99b0fd420781",
"product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
"variant_id": "a7175820-36b3-4fc6-9baf-51e3035242ba",
"variant_title": "L-blue-T",
"product_title": "shirt",
"product_handle": "shirt",
"quantity": 1,
"note": "",
"fulfillment_status": "finished",
"sku": "T-M-L-blue-T-A001008",
"weight_unit": "kg",
"vendor": "shoplazza",
"product_url": "/products/shirt",
"compare_at_price": "97.00",
"image": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
"price": "81.00",
"total": "81.00",
"weight": "1.10",
"properties": [
{
"name": "size",
"value": "L"
},
{
"name": "color",
"value": "blue"
},
{
"name": "type",
"value": "T"
}
],
"custom_properties": {},
"refund_quantity": 0,
"refund_total": "0.00",
"taxable": true,
"requires_shipping": true,
"shipping_quantity": 1
}
]
}
}