Superfy Platform API Documentation


Fullness Frequency API

Require Authentication

This API is used to generate Fullness Frequency Report for the company based on combination of deviceID and token. Full = fill level > 90%


URL

api/reports/fullnessfrequency

Required parameter (POST)

Optional parameter (GET)

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

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]
}

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",
      "total_days": 1
    }]
  }
}