I know I can get stock data when making a request for an individual product:
http://magentohost/api/rest/products/:id
But please tell me there is a way to get stock_data when requesting a list:
http://magentohost/api/rest/products
I'm trying to do large imports (>10k products) that include all this data, and doing it one-by-one is way too slow.
Anyone know a way around this?
http://magentohost/api/rest/stockitems
provides the list of product with stock inventory details for REST API.
Related
I am trying to access the special discounts that sellers offer when you buy multiple products from their shop.
I am using GetMultipleItems to get the data on a large set of books and their prices however a lot of the products we buy are a lot cheaper when multiple products are purchased form one seller. I would like to reflect that price in my software so getting these offers from the API would be incredibly useful.
Like in this example
Example offer
If anyone knows of a way to get that data it would be much appreciated.
Edit
After much searching I've found this which is the information I need to get for each listing. But still no ways to get the info in a request.
i'm doing an app using the prestashop webservice.
For some ressource it could be really long to get all the details of items; for instance, when i want to get all the product list and detail we have to :
retrieve all the id for the resource "products"
foreach prodct ask again the webservice to get the detail of each one
if we need the combination we have to loop again on each product association to get the combinations and ask again each time the webservice
I found a trick to de less request :
i get all the combinations
for each combination i get the details of each combination
for each combination i get the product details (if i doesn't get it once)
But finally it costs a lot in terms of requests.
Does anyone has a solution to override the webservice in prestashop to add a fetch type eager and get all the data at once for selected resources ?
Thank you !
I am using VirtoCommerce 2.9 and have some questions regarding the API and what would be the best way to get all the information I need, while keeping the number of API requests down.
Right now I am using the endpoint /api/catalog/search to find items that matches a number of attributes. But the response does not include prices and product texts. Both I would like to present to the end user. What would be the correct or best way to retrieve this information?
Thanks!
Cheers!
Currently search service does not return the description and price for the products.
To get this details you need to use separate queries
api/catalog/product/ids?respGroup='ItemSmall'
to get product detail with description and
api/pricing/evaluate
to retrieve actual products prices. You can call them in parallel for better performance.
Be aware to use WithProperties response group because it may cause
perfomance problem. Anyway product returned with all properties values
and this 'response group' is only responsible for retrieving properties meta-information
(as possible dictionary values, multilingual, required or optional flag etc) this information often used in admin area and in storefront almost not used.
Indexed search module will be serious changed in future versions, and you will be able to have more control over the product details in the search index.
I'm trying to load all Skus from a Bigcommerce store. I first tried to use the API path /products/skus/count to get a count of the number of skus in the store as outlined in the BC documentation at https://developer.bigcommerce.com/api/stores/v2/products/skus However, the /products/skus/count endpoint is returning {"count":0}. I know for a fact that I have hundreds of products with a sku. Ultimately I'd like to get a list or array of just the skus in my store. Has anyone else been able to use this API or know a way to load all the skus in my store without loading all the product object graphs as that is too slow of a solution as I don't need all the additional information nor do I want to page through all my products since it's limited to 250 items at a time. All of my other API calls are working great so I'm questioning whether there is an issue with the specific API.
Are you try to get the "sku" property for all products or the SKU resource associated with a product?
The api call at the url that you've given https://developer.bigcommerce.com/api/stores/v2/products/skus
will return all the SKU resource/object associated with a product. You can either get skus for all products using the resource "products/skus/count" or a specific product using "products/{productid}/skus/count". Both calls works as documented.
We are developing an app for mobile, Mainly using Google Shopping API.
In the response we are getting one store info for one particular product.
Is there any other way to get multiple store info for one product in the response for Google Shopping API
Regards,
Bhat
if you figure out the GTIN for a product, then search by that GTIN as the query, then each result should come back as a different store
it just means usually you have to do a search on the query, grab the top most relevant GTIN, then make another request to get the store info. Thats how I have done it anyways, would be interested to know if you solved it any other way :)