Response format

Priceli API return the response as JSON. Baiclly if 'status' field is set to 1 the response is considered to be success. Success reponse may also include no items in case of searching for items that was not found.

Example of response for successful operation

{
  "status": 1,
  "count": 82,
  "total": 82,
  "pageLimit": -1,
  "pageNum": 1,
  "data": [
    {
      "id": "1",
      "chain_id": "7290492000005",
      "sub_chain_id": "1",
      "store_id": "501",
      "bikoret_no": "1",
      "store_type": "1",
      "chain_name": "Dor Alon",
      "sub_chain_name": "1",
      "store_name": "....",
      "address": "...",
      "city": "....",
      "zip_code": "6380407",
      "sys_updated_date": "2015-06-04 09:58:48",
      "sys_updated_date_sec": "1433609333"
    }
}

Example of response when some error occur:

{
  "status": -1,
  "http_code": 500,
  "message": "Some error message...",
  "error_code": 0
}