Hi there
Using some GQL, I am gathering tracking for orders. For many orders, I get proper entries in the array for tracking. However, I have some that are glomming the entire track number together (UPS in this case, data has been obfuscated with X's" While I guess I can parse them out for what looks like the beginning of a UPS track number (1Z...) I am not able to do this for other tracking methods. Is this a bug, or perhaps something our entry did incorrectly maybe?
"fulfillments": [ { "id": "gid://shopify/Fulfillment/2324141XX5374", "createdAt": "2020-06-26T12:44:33Z", "trackingInfo": [ { "company": "UPS", "number": "1ZR6EXX703949349711Z76XXA542690421Z1A3E4103XX865590605" } ] }
query ($numRows: Int!, $cursor: String) { orders(first: $numRows, query: "fulfillment_status:unfulfilled status:open", after: $cursor) { edges { cursor node { closed legacyResourceId displayFulfillmentStatus updatedAt createdAt name shippingAddress { address1 address2 city provinceCode } fulfillments(first: 30) { id createdAt trackingInfo { company number url } } customer { displayName } } } pageInfo { hasNextPage } } }
Hey @dma550,
I'm not sure what to make of that to be honest, I've never seen this behaviour in a Shopify GraphQL response. Which packages are you using in your app for graphQL? Also can you try using your access token to make the same call using an HTTP client like Insomnia? You can do that to confirm you're seeing the expected response in Insomnia, which will help determine where the issue is stemming from.
JB | Developer Support @ 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
User | Count |
---|---|
13 | |
12 | |
7 | |
4 | |
4 |