Tracking info - multiple tracking numbers and urls

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.

1 Like

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