Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: GraphQL query API to get carrier name and URL from tracking number

GraphQL query API to get carrier name and URL from tracking number

pablokang
Visitor
1 0 0

Is there a GraphQL query to get the carrier name and URL from tracking number? I know tracking information is returned with the fulfillmentCreateV2 mutation, but I want to be able to query for this instead.

 

Thanks,

Pablo

Reply 1 (1)

HunkyBill
Shopify Partner
4853 60 568

You get the carrier name and tracking number from your third-party, usually. If you mean, you want to query an existing fulfillment and get the carrier name and tracking number assigned to it, then that is not a mutation, but instead, you get the value by providing the ID of the fulfillment you are interested in. A quick scan shows fulfillmenttrackinginfo when you get a fulfillment.

So if all you have is a tracking number, you're out of luck. You need the order, to get the fulfillments, and then match your tracking number to one of those results.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com