Unprocessable Entity error when updating tracking number

Solved
dlinventory
New Member
2 0 0

 

When making our post call to update tracking for order id 1200570400825

{“fulfillment”:{“tracking_number”:“9400111699000681172999”,“tracking_company”:“USPS”,“notify_customer”:true,“status”:“open”}}

 

Response is 
Error: Unprocessable Entity

No further error info is provided in the response.

Appreciate any help provided

Accepted Solution (1)

Accepted Solutions
Busfox
Shopify Staff
Shopify Staff
628 49 106

This is an accepted solution.

Hi @dlinventory,

 

You aren't passing a location_id value. Shopify needs to know which location the item(s) should be fulfilled from. This doc can help you find the proper location_id to use.

 

Cheers,

Andrew | 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 the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 4 (4)
Visely-Team
Shopify Partner
1843 210 464

Can you share the endpoint/URL you are POST-ing to?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
Busfox
Shopify Staff
Shopify Staff
628 49 106

This is an accepted solution.

Hi @dlinventory,

 

You aren't passing a location_id value. Shopify needs to know which location the item(s) should be fulfilled from. This doc can help you find the proper location_id to use.

 

Cheers,

Andrew | 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 the Shopify Help Center or the Shopify Blog

dlinventory
New Member
2 0 0

Greatly appreciate the help. 
Looks like we need to iterate thru the locations to find the location_id that supports the ordered product.
thanks

thanjaipvr
Tourist
3 0 1

Hi,

 

I am updating the tracking no for the fulfillment but I get the 422 Unprocessable Entity

The url is given below

admin/api/2021-07/fulfillments/3785222520993/update_tracking.json

The payload
{
    "fulfillment": {
        "notify_customer"false,
        "tracking_info": {
            "number""1919",
            "url""http://www.my-pvr-url.com",
            "company""pvr-company"
        }
    }
}
I tried adding location but it is not working
Please let me know the root cause.
 
I also tried with 
{
  "fulfillment": {
    "tracking_number""1111",
    "id"4254913200289
  }
}
 
This gives 406 Unacceptable
Please advise