Update Product Stock

From KartRocket API
Jump to: navigation, search

Update Product Stock and Price

Request

User can update quantity and price of a product by making a HTTP GET Request on the following URL.


YOUR_STORE_URL_ON_KARTROCKET.'index.php?route=feed/web_api/stock&key='.WEB_API_KEY. '&sku='.PRODUCT_SKU. '&qty='.PRODUCT_QUANTITY. '&price='.PRODUCT_PRICE;

Example

http://api.kartrocket.co/index.php?route=feed/web_api/stock&key=APITEST&sku=SKU01&qty=10&price=999;

Response

{
   "success":true,
   "message":"Product with SKU : SKU01 has been updated."
}

Failed request: 
{
   "success": false,
   "message":"Respective Error Message."
}


Parameters Description

key : API Key provided by KartRocket.(Required)

sku : Product SKU in KartRocket system. (Required)

qty : New quantity of product. (Optional)

price : New price of product. (Required)

status : 0 (Disable) or 1 (Enable).