Catalog side API provides GET or POST interface to get information about categories, products, manufacturers (brands) and other information related to the products set up in AbanteCart.
Any request can contain GET language parameter. This will switch response data to new language. Example: language=es
language parameter needs to be passed only one time. It is stored in the session for all next requests. |
You can get all product details by unique product ID.
Route: a/product/product
Method: GET
|
Example request:
http://demo.abantecart.com/index.php?rt=a/product/product&product_id=85
with key: http://demo.abantecart.com/index.php?rt=a/product/product&product_id=85&api_key=[key_string]
{ "product_id":"85", "model":"Ck0010", "sku":"", "location":"", "stock_status_id":"1", "manufacturer_id":"13", "shipping":"1", "price":"$45.00", "tax_class_id":"1", "date_available":"2011-09-01", "weight":"0.08", "weight_class_id":"5", "length":"0.00", "width":"0.00", "height":"0.00", "length_class_id":"0", "status":"1", "date_added":"2011-09-02 11:48:08", "date_modified":"2011-09-07 04:24:25", "viewed":"21", "sort_order":"0", "subtract":"1", "minimum":"1", "cost":"0.0000", "language_id":"1", "name":"Forbidden euphoria Eau de Parfum Spray ", "meta_keywords":"", "meta_description":"", "description":" \r\n\tPossessing an innate confidence and sophistication, she is just starting to explore her sexuality. What she doesn't yet know is that she already is every man's fantasy.”, "store_id":"0", "manufacturer":"Calvin Klein", "stock_status":"In Stock", "thumbnail":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/image\/thumbnails\/18\/6d\/azdemoproduct351jpg-100054-180x180.jpg", "special":false, "discounts":[ ], "product_price":"45.0000", "stock":null, "options":{ "323":{ "product_option_id":"323", "attribute_id":"0", "group_id":"0", "name":"Fragrance Size", "option_value":{ "669":{ "product_option_value_id":"669", "attribute_value_id":"0", "group_id":"0", "name":"1 oz", "sku":"", "price":"0.0000", "prefix":"$", "weight":"0.00000000", "weight_type":"lbs" }, "670":{ "product_option_value_id":"670", "attribute_value_id":"0", "group_id":"0", "name":"1.7 oz", "sku":"", "price":"18.0000", "prefix":"$", "weight":"0.00000000", "weight_type":"lbs" }, "671":{ "product_option_value_id":"671", "attribute_value_id":"0", "group_id":"0", "name":"3.4 oz", "sku":"", "price":"23.5000", "prefix":"$", "weight":"0.00000000", "weight_type":"lbs" } }, "sort_order":"0", "element_type":"S", "html_type":"selectbox", "required":"0" } }, "text_stars":"", "stars":"", "average":0, "tags":[ { "tag":"fragrance" }, { "tag":"women" } ] } |
You can get all product resource by unique product ID.
Route: a/product/resources
Method: GET
|
Example request:
http://demo.abantecart.com/index.php?rt=a/product/resources&product_id=85
{ "total":3, "resources":[ { "original":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/resources\/image\/18\/6d\/6.jpg", "thumb":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/image\/thumbnails\/18\/6d\/azdemoproduct351jpg-100054-45x45.jpg" }, { "origial":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/resources\/image\/18\/6d\/7.jpg", "thumb":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/image\/thumbnails\/18\/6d\/azdemoproduct352jpg-100055-45x45.jpg" }, { "origial":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/resources\/image\/18\/6d\/8.jpg", "thumb":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/image\/thumbnails\/18\/6d\/azdemoproduct35jpg-100056-45x45.jpg" } ] } |
You can get all related products to given product with unique product ID.
Route: a/product/related
Method: GET
|
Example request: http://demo.abantecart.com/index.php?rt=a/product/related&product_id=85
{ "total":2, "related_products":[ { "product_id":"83", "name":"Armani Code Sport", "model":"GRM004", "rating":0, "stars":"", "price":"$37.50", "options":[ ], "special":null, "image":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/image\/thumbnails\/18\/6b\/azdemoproduct32jpg-100021-38x38.jpg", "thumb":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/image\/thumbnails\/18\/6b\/azdemoproduct32jpg-100021-120x120.jpg", "cart_add_rt":"a\/checkout\/cart" }, { "product_id":"84", "name":"Armani Code Pour Femme", "model":"GRM005", "rating":0, "stars":"", "price":"$30.00", "options":{ "322":{ "product_option_id":"322", "attribute_id":"0", "group_id":"0", "name":"Size", "option_value":{ "666":{ "product_option_value_id":"666", "attribute_value_id":"0", "group_id":"0", "name":"30 ml", "sku":"", "price":"0.0000", "prefix":"$", "weight":"0.00000000", "weight_type":"lbs" }, "667":{ "product_option_value_id":"667", "attribute_value_id":"0", "group_id":"0", "name":"50 ml", "sku":"", "price":"20.0000", "prefix":"$", "weight":"0.00000000", "weight_type":"lbs" }, "668":{ "product_option_value_id":"668", "attribute_value_id":"0", "group_id":"0", "name":"75 ml", "sku":"", "price":"32.0000", "prefix":"$", "weight":"0.00000000", "weight_type":"lbs" } }, "sort_order":"0", "element_type":"S", "html_type":"selectbox", "required":"0" } }, "special":null, "image":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/image\/thumbnails\/18\/6b\/azdemoproduct34jpg-100018-38x38.jpg", "thumb":"http:\/\/dev01.algozone.net\/abantecart_branch100\/public_html\/image\/thumbnails\/18\/6b\/azdemoproduct34jpg-100018-120x120.jpg", "cart_add_rt":"a\/product\/product" } ] } |
You can get product reviews by unique product ID.
Route: a/product/product/review
Method: GET