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)
- deviceID
- token
Optional parameter (POST)
All optional parameters use POST method.
- date_min «filter date minimum based from sensor data»
- date_max «filter date maximum based from sensor data»
- pintypeID «filter pintypeID that want to be looked for. Can be in array format to filter multiple pintypeID at the same time. Value must exist in database. To get available pintypeID, please visit Get Available Asset Types»
- projectID «filter projectID that want to be looked for. Can be in array format to filter multiple projectID at the same time. Value must exist in database. To get available projectID, please visit Get Available Zones»
- projectgroupID «filter projectgroupID that want to be looked for. Can be in array format to filter multiple projectgroupID at the same time. Value must exist in database. To get available projectgroupID, please visit Get Available Groups»
- pinstagsID «filter pinstagsID that want to be looked for. Can be in array format to filter multiple pinstagsID at the same time. Value must exist in database. To get available pinstagsID, please visit Get Available Tags»
- sensorsID «filter sensorsID that want to be looked for. Can be in array format to filter multiple sensorsID at the same time. Value must exist in database. To get available sensorsID, please visit Get Available Sensors»
- projectpinID «filter projectpinID that want to be looked for. Can be in array format to filter multiple projectpinID at the same time. Value must exist in database. To get available projectID, please visit Get Available Pins on Map (Specific or All Zone) without mention latitude and longitude»
Example JSON Payload
{ "deviceID": "ABCD-EFGH-IJKL-MNOP", "token": "c43fa596e7916827106b591e2bb026cd", "projectID": [1, 2], "pintypeID": [1, 2] }
Possible return HTTP status code
- 200
- 401
- 405
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 }] } }