POST /v2/devices/history/actions/list
Retreives the provisioning history of an individual device.
The request header must set the content-type to JSON, contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.
Parameter Name | Data Type | Description |
---|---|---|
Authorization required |
string | HTTP Authorization bearer token: |
VZ-M2M-Token required |
string | A valid session token: |
Content-Type required |
string | Must be application/json: |
POST https://thingspace.verizon.com/api/m2m/v2/devices/history/actions/list
Parameter | Data Type | Description |
---|---|---|
accountName required |
string | The name of the account. This is numeric and is in the format "0000123456-00001". Leading zeros must be included. |
deviceFilter |
array | The ID of the device being queried. |
id |
string | The numeric ID of the device. |
kind |
string | The type of device ID represented by the ID value. This could be:
|
earliest | string ($date-time) | The start of the time period to query. |
latest | string ($date-time) |
The end of the time period to query. |
Example request:
{
"accountName":"0000123456-00001",
"deviceFilter":{
"kind":"iccid",
"id":"20-digit ICCID"
},
"earliest":"2021-10-15T04:49:35-00:00",
"latest":"2021-10-15T04:49:49-00:00"
}
Status 200
A successful response shows a system generated request ID to track the request.
Example Response:
{
"requestId": "d1f08526-5443-4054-9a29-4456490ea9f8"
}
These endpoints send responses asynchronously. In order to read the results a callback is required. To learn more about callbacks, please visit About Callback Services.
Example callback response:
{
"username":"username",
"password":"password",
"requestId":"13ce9d0e-7e84-470d-a621-4a52e31449b6",
"deviceResponse":{
"getProvisioningHistoryResponse":{
"pageNumber":1,
"totalPages":1,
"complete":true,
"provisioningHistory":[
{
"carrierName":"Name of the mobile service provider",
"iccid":"20-digit ICCID",
"profileStatus":"DISABLE",
"provisioningStatus":"UNKNOWN",
"occurredAt":"2021-10-13T23:07:35Z",
"imei":"15-digit IMEI",
"eid":"32-digit EID",
"fallbackAttribute":false
}
]
}
},
"callbackCount":1,
"maxCallbackThreshold":4
}
Parameter | Data Type | Description |
---|---|---|
username |
string | The username making the request. |
password |
string | The password associated with the username. |
requestId | string | The requestId being viewed. This is a system generated value from the request above. |
deviceResponse | array | Contains the getProvisioningHistoryResponse. |
getProvisioningHistoryResponse |
array | Contains the page the response is starting at, how many pages are in the response, if the response is complete and the provisioningHistory showing the record data added or changed in the time period of the query. |
provisioningHistory |
array | Details of the device's provisioning history. |
carrierName | array | The name of the carrier providing cellular network access. |
iccid | string | The Integrated Circuit Card Identifier or the serial number of the SIM card. For eSIM, this is system generated. |
profileStatus | string | Indicates the profile state and will be one of the following:
|
provisioningStatus | string | The provisioning state of the device and will be:
|
occurredAt | string($date-time) | The time stamp of when the record changed. |
imei | string | The International Mobile Equipment Identifier of the device. |
eid | string | The Electronic Identifier of the device. |
fallbackAttribute | boolean | If the fallback attribute has been set (true) or not (false). |
callbackCount | string | The number of responses for deviceResponse found. |
maxCallbackThreshold | string | The maximum number of responses for deviceResponse allowed. |
All error responses will be in the following format
{
"errorCode": "The 3-digit HTML error code",
"errorMessage": "string"
}