Superfy Platform API Documentation


Total Collected Asset per Date API

Require Authentication

This API is used to generate Total Collected Asset per Date Report for the company based on combination of deviceID and token.


URL

api/reports/collectionsummarybydate

Required parameter (POST)

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": {
    "total_all": 5,
    "lists": [{
      "calendar": "2016-05-21",
      "total_bin_collected": 2
    }, {
      "calendar": "2016-08-01",
      "total_bin_collected": 2
    }, {
      "calendar": "2016-08-02",
      "total_bin_collected": 1
    }]
  }
}