calling Tracking order information

New Member
2 0 0

We're building a tailored order tracking page, how can we call information from the order details to the script we are developing? (we don't want to use any apps, as they don't address our order process). 

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 102 127

Hey @alora-sa ,

 

To do this, you need to:

 

1) Use the Shopify Admin API (either in REST or GraphQL)

2) Use this API to query/get the specific Order you are providing tracking information for (e.g. if you are using the REST Admin API, you would need to make the following API request: GET {your-store-name}.myshopify.com/admin/api/2020-01/orders/{the-order-id}.json)
3) In the API response for this specific order, you should see a resource/field call "fulfillments". In this resource you can find information such as the tracking number, tracking URL, fulfillment status, tracking company, and more. This should be all the information you need to make the tracking page

 

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

1 Like