Shopify Inventory POST API

Solved
Mohammed27
Tourist
10 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"

Accepted Solutions (2)

Accepted Solutions
Mohammed27
Tourist
10 2 0

This is an accepted solution.

yes its correct.

 

Skype ID : abdulaltaf70

View solution in original post

Mohammed27
Tourist
10 2 0

This is an accepted solution.

 

Thanks Mr. Jivan for pointing correct item_id and location_id.

 

 

View solution in original post

Replies 6 (6)
Jivan_Suhagiya
Shopify Partner
515 74 113

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
Mohammed27
Tourist
10 2 0

After changed body to JSON 

 i am getting below error

{
    "errors""Not Found"
}

 

Mohammed27_0-1602672843838.png

 

Jivan_Suhagiya
Shopify Partner
515 74 113

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
Mohammed27
Tourist
10 2 0

This is an accepted solution.

yes its correct.

 

Skype ID : abdulaltaf70

Mohammed27
Tourist
10 2 0

This is an accepted solution.

 

Thanks Mr. Jivan for pointing correct item_id and location_id.

 

 

Beekelen
New Member
1 0 0

Simple question: how often is this inventory level renewed? Is that automatically, hourly, daily or on request?

And is the inventory the shopowners number or is it an integration from Aliexpress, which makes it the inventory from Aliexpress?