2.2.7.Stock

In order for Qwindo to have up to date stock information, the shop feed url can also be used to request the current stock of a product.

An example of a stock request would look like:

https://www.store.com/index.php?identifier=stock&product_id=10

for a product,
 
or

https://www.store.com/index.php?identifier=stock&variant_id=10

for a product variant,
 
The GET value “identifier” is used to specify the type of request, in this case “stock” to request the stock level of a specific product by product_id.
 
Stock Request Specification

Field
Descriptino
Type
Required
Length
product_id The product ID used in the store int yes  
stock The current stock value int yes  

 

Response

{
      "product_id":"10",
      "stock":"10",
}
Suggest Edit