enumerating InventoryLevel object gives error 422 Unprocessable Entity

Highlighted
New Member
1 0 0

Hi

We are facing an issue while using Shopify API.

If we enumerate Store and Location Objects through the API, then it works fine, But if we enumerate InventoryLevel object then It gives error (422 Unprocessable Entity). We are getting the same results while hitting the API either through Slince PHP Wrapper or through by Postman. We use the same credentials for enumerating Store/Location and InventoryLevel Objects. On Shopify item quantity is positive and we are Tracking the quantity.


Slince Output

Slince\Shopify\Exception\ClientException
Client error: `GET https://yourstore.myshopify.com/admin/api/2019-10/inventory_levels.json?location_id=12345678912` resulted in a `422 Unprocessable Entity` response

 


Postman Outputs

https://yourstore.myshopify.com/admin/api/2019-10/inventory_levels.json?inventory_item_ids=123456789...


"inventory_levels": []

 

https://yourstore.myshopify.com/admin/api/2019-10/inventory_levels.json?location_id=12345678912

status
422Unprocessable Entity

 

Any help will be appreciated. Thanks in advance.

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hey @inceptra ,

 

If you could provide the value of the X-Request-ID header from the Status 422 Error response, we can investigate through the platform logs why this error is being thrown

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes