GET /subscriptions/{account}
Returns the current status of an account’s Device Location Service subscription.
See also:
Get Location Service Usage
There are two types of subscriptions:
NOTES:
Only recurring subscriptions are supported at this time.
License usage and billing events are counted by device, not by request. A single request to get the location of 10 devices would use 10 licenses or count as 10 billing events, not just 1.
Requests for cached location information do not use licenses or count as billing events.
GET https://thingspace.verizon.com/api/loc/v1/subscriptions/{account}
You must include the account name in the path.
Parameter Name | Data Type | Description |
---|---|---|
account required |
string | The name of the account for which you want to get the subscription status. An account name is usually in the format of 10 digits, a hyphen, and then five more digits. Must include any leading zeros. |
The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token.
Parameter Name | Data Type | Description |
---|---|---|
Authorization required |
string | HTTP Authorization bearer token. |
VZ-M2M-Token required |
string | A valid session token returned by POST /api/m2m/v1/session/login. |
None.
Status 200
A success response includes the account subscription status in a JSON array.
Parameter Name | Data Type | Description |
---|---|---|
accountName | string | The billing account that you requested subscription information for |
locType | string | The Device Location subscription type, which will be one of these values:
|
maxAllowance | string | The number of billable location requests allowed per billing cycle |
purchaseTime | string | The most recent time that licenses were purchased |
{
"accountName": "2024009649-00001",
"locType": "TS-LOC-COARSE-CellID-5K",
"maxAllowance": "5000",
"purchaseTime": "2017-05-10 06:25:25.171 +0000 UTC",
}
Status 400
All error messages are returned in this format:
{
"errorCode": "The type of error, such as INVALID_REQUEST.",
"errorMessage": "Additional error information."
}
Error codes and messages are listed on the Error Codes page, along with explanations and suggestions for corrective actions.