GET /subscriptions/{acc}
Retrieves the number of FOTA subscriptions for devices by account.
This API returns information for licenses applied to devices.
GET https://thingspace.verizon.com/api/fota/v3/subscriptions/{acc}
You must include the account name in the path.
Parameter Name | Data Type | Description |
---|---|---|
acc required |
string | Account identifier. |
The request header must contain a current ThingSpace authorization token, set the content to "JSON" and a current VZ-M2M-session token.
Parameter Name | Data Type | Description |
---|---|---|
Authorization required |
string | HTTP Authorization request header containing a valid Bearer token. |
VZ-M2M-Token required |
string | A valid session token returned by a Connectivity Management POST /session/login request. |
Content-Type required |
string | Must be application/json . |
None
Retrieve the number of licenses assigned to HTTP devices for the account.
curl GET https://thingspace.verizon.com/api/fota/v3/subscriptions/0000123456-00001
-H 'VZ-M2M-Token: {M2M token}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {bearer token}' \
Status 200
Parameter Name | Data Type | Description |
---|---|---|
accountName | string | The name (number) of the billing account. |
purchaseType | string | Comma-separated list of subscription models used by the account:
|
licenseCount | integer | The Number of monthly licenses in an MRC subscription. This is zero for accounts that have only Event subscriptions. |
licenseUsedCount | integer | Number of licenses currently assigned to devices. |
updateTime | string($date-time) | The date and time when the subscription was last updated. |
{
"accountName": "0000123456-000001",
"purchaseType": "TS-HFOTA-EVNT,TS-HFOTA-MRC",
"licenseCount": 500,
"licenseUsedCount": 400,
"updateTime": "2020-09-17T21:11:32.170Z"
}
Status 400
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.