Create a fulfillment based on an order
POST https://{handle}.myshopline.com/admin/openapi/v20260301/orders/:order_id/fulfillments.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Create a fulfillment based on a specific order.
Path Parameters
- order_id string requiredThe order ID.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
fulfillmentobject required
Fulfillment information.line_itemsobject[]
A list of order product snapshots.Maximum size: unlimitedid long requiredThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.quantity integer requiredThe quantity of products to be shipped.notify_customer booleanIndicates whether to notify the customer when creating or updating a fulfillment.true: Notify the customer by email.false: Do not notify the customer.
Default value:falsetracking_company stringLogistics service provider.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_info_listobject[]
A list of tracking information. If this parameter is specified, the individual parameterstracking_url,tracking_number, andtracking_companywill be ignored.Maximum size: 10tracking_company stringLogistics service provider. Refer to Logistics company list for valid values.tracking_number stringThe delivery tracking number provided by the logistics service provider.tracking_url stringThe domain name of the logistics company.tracking_number stringThe delivery tracking number provided by the logistics service provider.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_url stringThe domain name of the logistics company.DEPRECATED:This parameter is deprecated from API version v20250601. Refer totracking_info_list.
Status Codes
- 200
- 401
- 429
- 500
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
fulfillmentobject
Fulfillment information.created_at stringThe date and time when the fulfillment was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00id stringFulfillment ID.line_itemsobject[]
A list of line items for the fulfillment.fulfillable_quantity integerThe remaining quantity of the product that can be shipped.fulfillment_quantity integerThe quantity of the product shipped in this fulfillment.grams doubleThe weight of the product in grams(g).id stringThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.name stringSKU title, same astitle.price stringThe product price in store currency. The value is rounded to two decimal places.price_setobject
The product price, displayed in both the store currency and the buyer currency.presentment_moneyobject
The product price information presented to the buyer.amount stringThe product price. The value is rounded to two decimal places.shop_moneyobject
The product price information recorded by the merchant.amount stringThe product price. The value is rounded to two decimal places.product_id stringSPU serial number.quantity integerThe quantity ordered for this product.requires_shipping booleanIndicates whether the product is subject to shipping:true:Shipping is requiredfalse:Shipping is not required
sku stringThe product SKU.tax_linesobject[]
A list of tax information.price stringTax in store currency. The value is rounded to two decimal places.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax amount information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.rate stringThe tax rate, for display only.title stringThe title for the tax description, for display only.taxable booleanWhether the product is subject to tax:true:Tax is requiredfalse:No tax is required
title stringProduct title.total_discount stringThe total discount amount, displayed in the store currency. The value is rounded to two decimal places. It includes promotional discounts, custom item discounts, membership discounts, and other discounts.total_discount_setobject
Discount amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The discount amount information presented to the buyer.amount stringThe discount amount. The value is rounded to two decimal places.shop_moneyobject
The discount amount information recorded by the merchant.amount stringThe discount amount. The value is rounded to two decimal places.variant_id stringThe unique identifier for the variant.variant_title stringProduct variant value. Multiple values are separated by/.Example:big/redversion stringThe version of the product.name stringFulfillment code.order_id stringOrder number.status stringFulfillment status:success:shipment dispatchedcancelled:shipment has been canceled
tracking_company stringLogistics service provider.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_info_listobject[]
A list of tracking information.tracking_company stringLogistics service provider.tracking_number stringThe delivery tracking number provided by the logistics service provider.tracking_url stringThe domain name of the logistics company.tracking_number stringThe delivery tracking number provided by the logistics service provider.DEPRECATED:This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_numbers arrayThe delivery tracking number provided by the logistics service provider.DEPRECATED:This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_url stringThe domain name of the logistics company.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_urls arrayThe domain name of the logistics company.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_list.updated_at stringThe date and time when the fulfillment was updated. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
API Explorer
Debugger
Examples
Was this article helpful to you?