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.

what is the correctly response format for fetch_tracking_numbers

Solved

what is the correctly response format for fetch_tracking_numbers

loganaa
Shopify Partner
12 1 0

I receive the fetch_tracking_numbers, and my response body is :

 

{
       "message": "Successfully received the tracking numbers",
       "success": true,
       "tracking_numbers": {
            "#1021.1": "SWESH1780095542YQ",
            "#1019.2": "YT2232121272202209",
            "#1019.1": "YT2232121272202209"
       }
}

 

but it doesn't seem to be working.

In order detail page, 

https://ljptest10153.myshopify.com/admin/orders/5203193790739

"tracking_numbers" still do not exist.

How could I return "tracking_numbers" instead of the "add tracking" button?

my shop domain is  "ljptest10153.myshopify.com"

order_id is "5203193790739"

fulfillment_order_id is "6140779266323"

x-logTraceId-header=447489371816079360

278829F1-9C85-419a-B454-4CDEAD317306.png

 

thant you for any replies!

 

Accepted Solution (1)
ShopifyDevSup
Shopify Staff
1453 239 534

This is an accepted solution.

Hi @loganaa 👋

 

The response from your post looks to be in the appropriate format. We query the `callback_url/fetch_tracking_numbers` endpoint to retrieve tracking numbers for orders, if `inventory_management` is set to true. I'd recommend checking the properties on your FulfillmentService is setup this way.

 

Hope that helps!

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

View solution in original post

Replies 3 (3)

loganaa
Shopify Partner
12 1 0

😣

ShopifyDevSup
Shopify Staff
1453 239 534

This is an accepted solution.

Hi @loganaa 👋

 

The response from your post looks to be in the appropriate format. We query the `callback_url/fetch_tracking_numbers` endpoint to retrieve tracking numbers for orders, if `inventory_management` is set to true. I'd recommend checking the properties on your FulfillmentService is setup this way.

 

Hope that helps!

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

loganaa
Shopify Partner
12 1 0

thank you for reply! 

You are right, I missed that, inventory_management is not set to true,

But I wonder why shopify can still send us requests when it is set to false.

Anyway, hopefully it works.