Update tracking information
Requires write_assigned_fulfillment_orders access scope.
For more info, refer to:
POST https://{handle}.myshopline.com/admin/openapi/v20260301/fulfillments/:order_id/:fulfillment_id/update_tracking.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 .Update tracking information for a specific fulfillment.
Path Parameters
- fulfillment_id string requiredFulfillment ID.
- order_id string requiredOrder 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.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_infoobject
Logistics tracking information.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_listfor related information.company stringLogistics service provider.number string requiredThe tracking number provided by the logistics service provider.Example:stringurl stringThe domain name of the logistics company.tracking_info_listobject[]
A list of logistics tracking information.The API performs an overwrite update. Any parameters not provided will be cleared.Maximum size: 10tracking_company stringLogistics service provider. Refer to Logistics company list for valid values.tracking_number string requiredThe tracking number provided by the logistics service provider.Example:stringtracking_url stringThe domain name of the logistics company.
Status Codes
- 200
- 401
- 429
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 details.created_at stringThe date and time when the fulfillment was created. Format: ISO 8601.Example:2022-10-21T08:56:20-04:00id stringFulfillment ID.line_itemsobject[]
A list of products in the fulfillment.fulfillable_quantity integerThe remaining quantity of the product that can be shipped.fulfillment_status stringThe fulfillment status. Valid values are:unshipped: not shippedpartial: partially shippedshipped: shipped
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 discount amount information recorded by the merchant.amount stringThe product price. The value is rounded to two decimal places.product_id stringThe unique identifier for the product corresponding to the variant.propertiesobject[]
A list of product customization information.additional stringAdditional custom fields for products. For example, iftypeistext,additionalcan include attributes such as font size, font style, and color.name stringCustom attribute name.type stringCustom information type. Valid values are:text: text typepicture: picture typelink: hyperlink type
urls arrayURL list.
Iftypeispicture, thumbnails are retrieved via theurlsvalues.
Iftypeislink, the hyperlink is the first URL in theurlsvalues.value stringCustom attribute value.quantity integerQuantity of items in the order.requires_shipping booleanIndicates whether the product is subject to shipping.true:Shipping is required.false:Shipping is not required.
sku stringProduct SKU serial number.tax_linesobject[]
A list of tax information.name stringTax name.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 required.false: No tax is required.
title stringProduct title.total_discount stringThe total order discount, calculated as the sum of marketing discounts and custom discounts. The amount is rounded to two decimal places and displayed in the store currency.total_discount_setobject
The total order discount, calculated as the sum of marketing discounts and custom discounts. This field contains amounts displayed in both the buyer and store currencies.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/.vendor stringSupplier.version stringThe version of the product.name stringPackage code.order_id stringOrder ID.shipment_status stringFulfillment shipping status. Valid values are:label_printed: Shipping labels have been printed.label_purchased: Shipping labels have been purchased.attempted_delivery: Indicates that the courier attempted to deliver the package but was unsuccessful.ready_for_pickup: Waiting for the logistics company to pick up the package.picked_up: Logistics company has picked up the package.confirmed: The order has been confirmed by the logistics company.in_transit: Package is in transit.out_for_delivery: Package has arrived at the destination area and is being delivered.delivered: Package has been delivered.failure: For some reason, package delivery failed.
status stringFulfillment status. Valid values are:success: shipment dispatchedcancelled: shipment has been canceled
tracking_company stringLogistics company name.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_listfor related information.tracking_info_listobject[]
A list of fulfillment information.tracking_company stringLogistics service provider.tracking_number stringThe tracking number provided by the logistics service provider.tracking_url stringThe domain name of the logistics company.tracking_number stringThird party tracking number.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_listfor related information.tracking_numbers arrayA list of tracking numbers provided by the logistics service provider.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_listfor related information.tracking_url stringLogistics tracking URL.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_listfor related information.tracking_urls arrayA list of domain names of the logistics company.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_listfor related information.updated_at stringThe date and time when the fulfillment was updated. Format: ISO 8601.Example:2022-10-21T08:56:20-04:00
API Explorer
Debugger
Examples
Was this article helpful to you?