How to get stocklevel from product endpoint

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
switch-cheehau
Posts: 14
Joined: 23 Jun 2021, 02:39

How to get stocklevel from product endpoint

Post by switch-cheehau » 08 Jul 2021, 08:02

Hi Aimeos,

I'm trying to build an integration to help updating the stock level from 3rd portal.

How to get stock level from admin/jsonadm/product endpoint?
Does it make sense that when call to product endpoint, stocklevel is included?

If not, i have to call to admin/jsonadm/stock to get the stocklevel.
But from stock endpoint i cannot get product information as well.

User avatar
switch-cheehau
Posts: 14
Joined: 23 Jun 2021, 02:39

Re: How to get stocklevel from product endpoint

Post by switch-cheehau » 08 Jul 2021, 08:43

By the way,

i tried to call http://localhost/admin/jsonadm/product? ... tock,price

only price return, stock does not return anything

User avatar
aimeos
Administrator
Posts: 7882
Joined: 01 Jan 1970, 00:00

Re: How to get stocklevel from product endpoint

Post by aimeos » 11 Jul 2021, 16:07

It's currently not possible to get the stock levels together with product details in one request to the JsonAdm API so you have to perform two requests, one for the product and one for the stock levels.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
switch-cheehau
Posts: 14
Joined: 23 Jun 2021, 02:39

Re: How to get stocklevel from product endpoint

Post by switch-cheehau » 12 Jul 2021, 07:30

Hi Aimeos,

Thanks for the information

Post Reply