Premium APIsSoftware ManagementSoftware Management V3API Reference Pages V3

Get an Account's License Status

GET /licenses/{accountName}/index/{lastSeenDeviceId}

Returns information about an account’s Software Management Services FOTA licenses and a list of licensed devices. Note: This request is only used with accounts that have a monthly recurring billing (MRC) subscription. Accounts with event-based billing do not need to track licenses.

HTTP Request

GET https://thingspace.verizon.com/api/fota/v3/licenses/{acc}/index/{lastSeenDeviceId}

Header Parameters

The request header must contain a current ThingSpace authorization token, set the content to "JSON" and a current VZ-M2M-session token.

Parameter NameData TypeDescription
Authorization (required)stringHTTP Authorization request header containing a valid Bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token returned by a Connectivity Management POST /session/login request.
Content-Type (required)stringMust be application/json.

Request Parameters

You must include the accountName in the path and the lastSeenDeviceId query parameter to specify the starting record.

Parameter NameData TypeDescription
accountName (required)stringThe name of the account for which you want the license status. An account name is usually numeric, and must include any leading zeros.
lastSeenDeviceId (required)stringOnly return devices with IMEIs larger than this value. Use 0 for the first request. If hasMoreData=true in the response, use the lastSeenDeviceId value from the response in the next request.

Request Body

None

Success Responses

Status 200 Example Success Response

{  
  "accountName":"0000123456-00001",
  "totalLicenses":5000,
  "assignedLicenses":4319,
  "hasMoreData": true,
  "lastSeenDeviceId": 1000,
  "deviceList":[  
    {
      "deviceId": "15-digit IMEI",
      "assignmentTime": "2017-11-29 20:15:42.738 +0000 UTC"
      },
    {
      "deviceId": "15-digit IMEI",
      "assignmentTime": "2017-11-29 20:15:42.738 +0000 UTC"
      },
    {
      "deviceId": "15-digit IMEI",
      "assignmentTime": "2017-11-29 20:15:42.738 +0000 UTC"
      },
    {
      "deviceId": "15-digit IMEI",
      "assignmentTime": "01-01-1900 0:0:0 +0000 UTC"
      }
      ]
}

Success Parameters

Parameter NameData TypeDescription
accountNamestringThe name (number) of the billing account.
totalLicenseintegerThe number of monthly licenses in the Monthly Recurring Charge (MRC) subscription for devices.
assignedLicensesintegerThe number of licenses assigned.
hasMoreDatabooleanTrue if there are more devices to retrieve.
lastSeenDeviceIdstringIf hasMoreData=true, this is the startIndex to use for the next request. 0 if hasMoreData=false.
maxPageSizeintegerMaximum page size.
deviceListarrayAn array of devices by their International Mobile Equipemt Identifier (IMEI).
deviceIdstringThe Device's IMEI.
assignmentTimestring ($date-time)The date and time that a Software Management Services license was assigned to the device.

Failure Responses

All error messages are returned in this format:

 { 
   "errorCode": "error code string",
   "errorMessage": "error message string"
}

Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.

On this page