Re: Shopify API

Shopify API

arnab1
Shopify Partner
24 0 2

Hi,

 

How can i update shipment date, carrier code and carrier name update using shopify API?

Reply 1 (1)

Liam
Community Manager
3108 341 879

Hi Arnab1,

 

You can use the Fulfillment API along with the Order API to update shipment date, carrier code and carrier name

 

First, you need to find the ID of the order that you want to update. You can do this by using the GET /admin/api/2023-10/orders.json endpoint and providing the necessary parameters to find your order.

 

Once you have the Order ID, you need to retrieve the Fulfillment ID associated with the order. You can use the GET /admin/api/2023-10/orders/{order_id}/fulfillments.json endpoint, replacing {order_id} with the actual Order ID.

 

After retrieving the Fulfillment ID, you can update the tracking information using the POST /admin/api/2023-04/orders/{order_id}/fulfillments/{fulfillment_id}/update_tracking.json endpoint. 

 

Hope this helps!

 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog