POST /report/sessions
Detailed report of session duration and number of bytes transferred per day for an individual device.
See also:
POST /report/aggregate
- Aggregate report of device usage, run synchronouslyPOST /report/async/aggregate
- Aggregate report of device usage, run asynchronouslyA 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/sessions
Parameter | Data Type | Description |
---|---|---|
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 | International Mobile Device Identifier. The unique identifier of the device. |
durationLow | integer | The Low value of session duration. |
durationHigh | integer | The High value of session duration. |
Example request:
{
"accountNumber": "string",
"startDate": "string",
"endDate": "string",
"imei": "string",
"durationLow": 0,
"durationHigh": 0
}
Status 200
A successful request returns the device's session information and a Transaction ID (txid
) for the report request.
Example response:
{
"sessions": [
{
"startTime": "string",
"endTime": "string",
"numBytes": 0
}
],
"id": "{10-digit device ID}",
"txid": "string"
}
Parameter | Data Type | Description |
---|---|---|
sessions | array | An object containing the start and end time of the session with the amount of data transferred. |
startTime | string | Start date of session. ISO 8601 format. |
endTime | string | End date of session. ISO 8601 format. |
numBytes | integer | Amount of data transferred, measured in Bytes. |
id | string | The 10-digit ID of the device. |
txid | string | Transaction ID of the request. |
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. |
|