POST /report/async/aggregate
Calculate an aggregated report by day with number of sessions and usage information. User will receive an asynchronous callback for the specified list of devices (Max 10000) and date range (Max 180 days).
See also:
POST /report/aggregate
- Synchronous report for aggregated device usagePOST /report/sessions
- Daily usage report for an individual deviceA vz-m2m-token
is required to use these APIs. To obtain a token, please visit Getting Started to get a token.
POST https://thingspace.verizon.com/api/hyper-precise/v1/report/async/aggregate
Parameter | Data Type | Description |
---|---|---|
X-Portal-Initiated required |
string | A flag for using a listener. Set to true or false. |
accountNumber required |
string | The unique identifier for the account. |
startDate | string | Start date of session to include. If not specified information will be shown from the earliest available (180 days). ISO 8601 format.. |
endDate | string | End date of session to include. If not specified information will be shown to the latest available. ISO 8601 format.. |
imei required |
string | Number of devices returning usage info. Could be 0, 1 or more. If 0 the query will return all devices belonging to customer. |
deviceGroup | string | User defined group name the devices are a member of. |
dataPlan | string | The data plan the devices beign queried belong to. |
noSessionFlag | string | Filters on devices which return only "no sessions". |
Example request:
curl -X 'POST' \
'https://thingspace.verizon.com/api/hyper-precise/v1/report/async/aggregate' \
-H 'accept: application/json' \
-H 'VZ-M2M-Token: 35246' \
-H 'X-Portal-Initiated: true' \
-H 'accountNumber: 1654' \
-H 'imei: 0' \
-H 'Content-Type: application/json' \
-d '{
"accountNumber": "string",
"startDate": "string",
"endDate": "string",
"imei": "string",
"deviceGroup": "string",
"dataPlan": "string",
"noSessionFlag": "string"
}'
Status 200
A successful request returns a Transaction ID (txid) and the status of "Queued".
Example response:
{
"txid": "string",
"status": "QUEUED"
}
Code and Meaning | Format |
---|---|
400 - Bad Request. |
|
401 - Unauthorized request. Access token is missing or invalid. |
|
403 - Forbidden request. |
|
404 - Bad request. Not found. |
|
409 - Bad request. Conflict state. |
|
500 - Internal Server Error. |
|