cannot update the Inventory number(inventory_levels/adjust.json)

wtkhr
Tourist
5 0 1

I executed following CURL command.

curl -H ‘Accept: application/json.’ -H ‘Content-Type: application/json.’ -X POST "https://(api-key/password).myshopify.com/admin/api/2021-07/inventory_levels/adjust.json" -d '{"location_id":3039563153583,"inventory_item_id":6828553568431,"available_adjustment":-8}'

And I get the following messages.

{"errors":{"inventory_item_id":"Required parameter missing or invalid"}

※I get the inventory_item_id from "products/(product_id)/variants.json"

And location_id from my admin site -> setting -> location

Any ideas what caused this error.

Thanks.

Replies 0 (0)