Superfy Platform API Documentation


Fullness Data API

Require Authentication

This API is used to generate Fullness Data Report (Fullness Heatmap and its Raw Data) for the company based on combination of deviceID and token. It returns all bins including its fill level


URL

api/reports/fullnessdata

Required parameter (POST)

Optional parameter (GET)

All optional parameters use GET method. So it should be embedded in the URL, e.g: api/reports/fullnessdata?o=projectName

Optional parameter (POST)

All optional parameters use POST method.

Example JSON Payload

{
	"deviceID": "ABCD-EFGH-IJKL-MNOP",
	"token": "c43fa596e7916827106b591e2bb026cd",
	"projectID": [1, 2],
	"pintypeID": [1, 2],
	"latmin": -6.802423572540,
	"latmax": -5.202423572540,
	"longmin": 105.779052734375,
	"longmax": 107.779052734375
}

Possible return HTTP status code

Return message

{
  "status": "success",
  "message": {
    "current_parameter": "?offset=0",
    "next_parameter": "?offset=0",
    "previous_parameter": "?offset=0",
    "start": 0,
    "total": 1,
    "lists": [{
      "projectpinID": 9,
      "name": "test pin type API aedit",
      "projectID": 1,
      "pintypeID": 2,
      "customlocationID": 1,
      "projectgroupID": 1,
      "pinAddress1": "Jalan Yunus III 64",
      "pinAddress2": "",
      "pinCity": "Kota Jakarta Barat",
      "pinState": "Daerah Khusus Ibukota Jakarta",
      "pinCountry": "ID",
      "pinZipCode": "11540",
      "latitude": -6.203551769257,
      "longitude": 106.78137969971,
      "timestampdata": 1470123190,
      "filllevel": 43,
	  "configfilllevel": 43
    }],
	"fillLevelSource": "ultrasound"
  }
}