Tracking info - multiple tracking numbers and urls

mp-cargo
Tourist
8 0 2

Hello.

 

In older shopify api version 2022-01 it was possible to send multiple numbers, tracking urls.

 

New endpoint Create fulfillment supports only one tracking url and number.

 

How could I achieve same behavior or same results as with 2022-01 version.

 

Thank you.

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1312 215 454

Hi @mp-cargo ,

 

The way to attach multiple numbers and URL's to a fulfillment is using the [fulfillmentTrackingInfoUpdateV2] mutation in GraphQL, which accepts multiples starting in API version 2022-07.

 

An example of the variable input format:

 

{
"fulfillmentId": "gid://shopify/Fulfillment/1234567890123",
"trackingInfoInput": {
 "company": "TrackingCompany",
 "numbers": [
  "12345",
  "56789"
 ],
 "urls": [
  "https://abc123.shopify.com/12345",
  "https://abc456.shopify.com/56789"
 ]
}
}

 

Hope you have a great day

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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