Shopify Inventory POST API

Solved
Mohammed27
Tourist
6 2 0

I am trying POST request from POSTMAN

below is my API URL

https://xxxx:xxxx@xxxx.myshopify.com/admin/api/2020-07/inventory_levels/set.json

with body as plain text

{
"location_id": 5585875779,
"inventory_item_id": 57308667905,
"available": 42
}

I am receiving below error

"inventory_item_id": "Required parameter missing or invalid"

0 Likes
Jivan_Suhagiya
Shopify Partner
458 62 95

Hi,
did you set JSON? please refer below screenshot

Jivan_Suhagiya_0-1602672339552.png

 

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
0 Likes
Mohammed27
Tourist
6 2 0

After changed body to JSON 

 i am getting below error

{
    "errors""Not Found"
}

 

Mohammed27_0-1602672843838.png

 

0 Likes
Jivan_Suhagiya
Shopify Partner
458 62 95

is that correct location id and inv item id?
do you have skype for quick chat?

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
0 Likes
Mohammed27
Tourist
6 2 0

This is an accepted solution.

yes its correct.

 

Skype ID : abdulaltaf70

0 Likes
Mohammed27
Tourist
6 2 0

This is an accepted solution.

 

Thanks Mr. Jivan for pointing correct item_id and location_id.

 

 

0 Likes