Request Details

Method Controller Resource Parameters
GET product store store_id

Parameters Guide

Parameter Accepts
store_id int id of store in Beep Database

Example Request Format

Direct Url https://api.beepxtra.com/product/store/1
Curl [code]CURL -A "YOURAPPNAME|1.0|AppID|AppKEY|product" -X GET https://api.beepxtra.com/product/store/1
PHP SDK $beepapi->request('get', 'product', 'store/1');

Sample Response

Success
{  
   "success":true,
   "request":{  
      "method":"GET",
      "controller":"product",
      "resource":"store",
      "parameters":{  
         "\/product\/store\/608":""
      },
      "url_elements":[  
         "product",
         "store",
         "608"
      ]
   },
   "error":{  
      "errorid":0,
      "message":0
   },
   "data":[  
      {  
         "id":"11",
         "barcode":"5026",
         "prod_name":"Doprol 2-Laags 100 Mtr Tissue Wit Doos \u00e1 36 Rolol",
         "prod_alias":"doprol-2laags-100-mtr-tissue-wit-doos--36-rolol",
         "prod_description":"",
         "prod_image":"images",
         "outlet_price":"32.63",
         "outlet_discount":"5",
         "quantity":"3.00",
         "reorder_level":"3",
         "delivery_type":"",
         "weight":"0.00",
         "shipping_cost":"0.00",
         "availability":"1",
         "promo_price":"0.00",
         "promo_start_date":null,
         "promo_end_date":null,
         "outlet_prod_name":"Doprol 2-Laags 100 Mtr Tissue Wit Doos \u00e1 36 Rol",
         "outlet_prod_alias":"doprol-2laags-100-mtr-tissue-wit-doos--36-rol",
         "outlet_prod_desc":"",
         "outlet_prod_image":"images",
         "catid":"116",
         "cat_name":"Other Business & Industrial",
         "cat_alias":"Other-Business-Industrial",
         "cat_desc":"Other Business & Industrial"
      },
      {  
         "id":"16",
         "barcode":"5012",
         "prod_name":"Toiletpapier Coreless 2-Laags 900 Vel Pak \u00e1 36 Stuks",
         "prod_alias":"toiletpapier-coreless-2laags-900-vel-pak--36-stuks",
         "prod_description":"",
         "prod_image":"images",
         "outlet_price":"0.00",
         "outlet_discount":"5",
         "quantity":"4.00",
         "reorder_level":"2",
         "delivery_type":"",
         "weight":"0.00",
         "shipping_cost":"0.00",
         "availability":"1",
         "promo_price":"0.00",
         "promo_start_date":null,
         "promo_end_date":null,
         "outlet_prod_name":"Toiletpapier Coreless 2-Laags 900 Vel Pak \u00e1 36 Stuks",
         "outlet_prod_alias":"toiletpapier-coreless-2laags-900-vel-pak--36-stuks",
         "outlet_prod_desc":"",
         "outlet_prod_image":"images",
         "catid":"116",
         "cat_name":"Other Business & Industrial",
         "cat_alias":"Other-Business-Industrial",
         "cat_desc":"Other Business & Industrial"
      },
      {  
         "id":"416",
         "barcode":"5027",
         "prod_name":"Toiletpapier Maxi Jumbo Tissue 2-Laags 400 Meter",
         "prod_alias":"toiletpapier-maxi-jumbo-tissue-2laags-400-meter",
         "prod_description":"",
         "prod_image":"images",
         "outlet_price":"10.00",
         "outlet_discount":"5",
         "quantity":"7.00",
         "reorder_level":"4",
         "delivery_type":"",
         "weight":"0.00",
         "shipping_cost":"0.00",
         "availability":"1",
         "promo_price":"0.00",
         "promo_start_date":null,
         "promo_end_date":null,
         "outlet_prod_name":"Toiletpapier Maxi Jumbo Tissue 2-Laags 400 Meter",
         "outlet_prod_alias":"toiletpapier-maxi-jumbo-tissue-2laags-400-meter",
         "outlet_prod_desc":"",
         "outlet_prod_image":"images",
         "catid":"116",
         "cat_name":"Other Business & Industrial",
         "cat_alias":"Other-Business-Industrial",
         "cat_desc":"Other Business & Industrial"
      }
   ]
}
Error
{  
   "success":false,
   "request":{  
      "method":"GET",
      "controller":"product",
      "resource":"store",
      "parameters":{  
         "\/product\/store\/1":""
      },
      "url_elements":[  
         "product",
         "store",
         "1"
      ]
   },
   "error":{  
      "errorid":1000,
      "message":"No products found."
   },
   "data":{  
      "error":"No products found."
   }
}

Response Guide

Parameter Type Details
error String Returns Error Object with errorid and errormsg
id int The internal id of the product in Beep Database
barcode string The listed barcode in beep database (Notice: No verification against international standards - user submitted)
prod_name string Product name
prod_alias string The alias used for SEF URLs
prod_desctiption string The description of the product
prod_image string The product image path if available (defaults to "images" if N/A)
outlet_price double The price of the product as listed by the current outlet
outlet_discount double The Beep discount % of the product as listed by the current outlet
quantity int The current quantity in stock as listed by the current outlet
reorder_level int The minimum stock quantity before the outlet is notified to reorder
delivery_type string The default delivery type offered by the outlet (Defaults to "pickup")
promo_start_date date The starting date if a special promo price has been applied
promo_end_date date The ending date if a special promo price has been applied
outlet_prod_name string Product name override if specified by outlet
outlet_prod_alias string The alias override if specified by outlet
outlet_prod_desctiption string The description override if specified by outlet
outlet_prod_image string The product image path override if specified by outlet
catid int The internal category id where the product is listed (See categories)
cat_name string Category name
cat_alias string The category alias for SEF URLs
cat_desc string The category description if available (Defaults to cat_name)