Update Product Option Stock

From KartRocket API
Revision as of 13:43, 29 May 2014 by Api (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Update Product Option Stock

Request

User can update quantity and price and weight of a product's option value by making a HTTP GET Request on the following URL.


YOUR_STORE_URL_ON_KARTROCKET.'index.php?route=feed/web_api/optionstock&key='.WEB_API_KEY. '&sku='.PRODUCT_SKU.
'&option_sku='.PRODUCT_OPTION_SKU.'&qty='.PRODUCT_OPTION_QUANTITY. '&price='.PRODUCT_OPTION_PRICE.'&weight='.PRODUCT_OPTION_WEIGHT;

Example

http://test.kartrocket.co/index.php?route=feed/web_api/ optionstock &key=1234XYZ&sku=SKU01&option_sku=OPTIONSKU01&qty=10&price=999&weight=1;

Response

Successful request:
{
   "success":true,
   "message":"Product with SKU : PRODUCT_OPTION_SKU 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)

option_sku : Product option SKU in KartRocket system. (Required)

qty : New quantity of product. (Optional)

price : New price of product. (Optional)

weight : New weight of product. (Optional)