Shopify fulfillment API does not take the tracking number (order marked fulfilled)

We are calling the new api to fulfill the orders per this document:

https://shopify.dev/docs/api/admin-rest/2022-04/resources/fulfillment#post-fulfillments

This is the permissions of the store:

{"access_scopes":[{"handle":"write_orders"},{"handle":"write_products"},{"handle":"write_inventory"},{"handle":"write_shipping"},{"handle":"write_merchant_managed_fulfillment_orders"},{"handle":"read_merchant_managed_fulfillment_orders"},{"handle":"read_orders"},{"handle":"read_products"},{"handle":"read_inventory"},{"handle":"read_shipping"}]}

And when we fulfill an order, we POST the following object:

{"fulfillment":{"tracking_info":{"number":"xxxxxxxxxx","url":"","company":"Canada Post"},"notify_customer":true,"message":"","line_items_by_fulfillment_order":[{"fulfillment_order_id":"123123123"}],"location_id":"123123123123"}}

(masked some number for security reasons)

And the response is successful:

{
"fulfillment": {
"id": 1231231231231,
"order_id": 123123123123,
"status": "success",
"created_at": "2023-03-28T10:45:18-04:00",
"service": "manual",
"updated_at": "2023-03-28T10:45:18-04:00",
"tracking_company": null,
"shipment_status": null,
"location_id": 123123123,
"origin_address": null,
"tracking_number": null,
"tracking_numbers": [],
"tracking_url": null,
"tracking_urls": [],
"receipt": {},
"name": "#aaaa",
"admin_graphql_api_id": "gid://shopify/Fulfillment/aaaaa"
}
}

The returned tracking is null, and in store admin, the order shows fulfilled but no tracking.

What is the problem?

Thanks

Anyone? Shopify support?

Hi @mmmmmm1 ,

When testing in a test store using the same format of input with the 2022-04 API version, the fulfillment is created with the tracking number as expected so we’re not able to replicate.

If you’re still having trouble with it please reach out to Partner Support using the email option, select the ‘App Development & API’ topic, and include specific details such as the store, app, and a date/time/timezone within the past 7 days when the issue occurred in your report.

Thanks and hope you have a great day

Hi, I have sent the required information via the link you posted above.

thanks

Any update? do we get support from shopify? I have sent all the data to you and I have not heard anything from shopify for a week.

Sent another email. PLEASE TAKE A LOOK. OUR CUSTOMERS ARE WAITING FOR THE FIX. THANKS

Have you been able to get this worked out? I am having the same issue. It will post the tracking number when in test mode with Boomi as the middleware but it won’t post it the moment I put it in production.

I have also run into this problem in 2022-10

I solved this by sending the tracking twice.

After the Fulfillment POST, keep the id it returns in the response, and then use Fulfillment(id)->update_tracking() to send all the tracking info again - basically the same data minus the line items.