Superfy Platform API Documentation


Current Overfull Asset API

Require Authentication

This API is used to generate Current Overfull Asset Report for the company based on combination of deviceID and token. Overfull = fill level > 100%


URL

api/reports/currentoverfull

Required parameter (POST)

Optional parameter (GET)

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

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",
      "filllevel": 48,
      "configfilllevel": 48,
      "timestampdata": 1463638887
    }],
    "fillLevelSource": "ultrasound"
  }
}