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

0 Likes
Visely-Team
Shopify Partner
1838 210 439

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
0 Likes
Busfox
Shopify Staff
Shopify Staff
619 49 98

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,

0 Likes
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

0 Likes
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
 
0 Likes