Superfy Platform API Documentation


Collection Data API

Require Authentication

This API is used to generate Collection Summary Data Report for the company based on combination of deviceID and token. It returns all bins including its fill level and time before and after asset is collected.


URL

api/reports/collectionsummary

Required parameter (POST)

Optional parameter (GET)

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

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": 11,
      "name": "Pin Custom",
      "projectID": 2,
      "pintypeID": 1,
      "customlocationID": 0,
      "projectgroupID": 0,
      "pinAddress1": "Jalan Anggrek 28C",
      "pinAddress2": "",
      "pinCity": "Kota Jakarta Barat",
      "pinState": "Daerah Khusus Ibukota Jakarta",
      "pinCountry": "ID",
      "pinZipCode": "11530",
      "collectionType": "ACTUAL",
      "collectionTime": 1478846752
    }]
  }
}