Update inventory fail

Claudio6
New Member
2 0 0

Hi we trying to update the inventory quantity using the API with CURL using this code : 

-X POST "admin/api/2021-04/inventory_levels/set.json" -H "Accept:application/json" -H "Content-Type:application/json" -d "{"location_id":59977662651, "inventory_item_id":40197458690235, "available":20}"

But we received this error as result {"status":400,"error":"The json provided is not formatted correctly: 809: unexpected token at '{location_id:59977662651,'"}.

Can someone help us resolving this problem? Thank you.

0 Likes
HunkyBill
Shopify Expert
4481 45 485

Umm... fix your JSON?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes