Premium APIsDevice LocationAPI Reference

Get a Managed Account List

Get a list of managed accounts

GET /managedaccounts/{accountName}/service/{servicename}/status/{status}

Returns a list of managed accounts for a primary account. The resource path specifies the type of service and the service status to use to filter the response.

NOTE: The accounts must be enabled for Aggregated Billing Services before you can use this request. See About Aggregated Billing Services for more information.

Uses and Requirements

This request must be sent with a VZ-M2M-Token created with the primary account’s credentials.

Note: This method uses the /subsc/v1 basepath, not /loc/v1 used by other Device Location API requests.

HTTP Request

GET https://thingspace.verizon.com/api/subsc/v1/managedaccounts/{accountName}/service/{servicename}/status/{status}

Resource Path and Query Parameters

You must include the name of the primary account in the path, and the name of the managed service. You can optionally include /status and a service status to restrict the results to only managed accounts with that status.

Parameter NameData TypeDescription
accountName (required)stringThe name of the primary billing account, which is usually in the format of 10 digits, a hyphen, and then five more digits. Must include any leading zeros.
serviceName (required)stringThe name of the managed service. Must be Location for the Device Location Service.
status (required)stringAccount state filter: ADD: managed accounts that have been added but not yet activated, or that have been cancelled. PROVISION: managed accounts that have been aded and for which service has been activated.

Header Parameters

The request header must 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 NameData TypeDescription
Authorization (required)stringHTTP Authorization bearer token:
Authorization: Bearer {token}.
VZ-M2M-Token (required)stringA valid session token returned by POST /api/m2m/v1/session/login using the primary account’s UWS credentials.
Content-Type (required)stringMust be application/json Content-Type: application/json

Request Body

None.

Success Responses

Status 200

A success response includes the primary account name and an array of managed accounts.

Parameter NameData TypeDescription
accountNamestringThe name of the primary account.
managedAccListarrayList of managed accounts.
idstringThe account name of the managed account.
TxIdstringThe unique transaction ID from the add or provision request, whichever is most recent.

Example Success Response

{
    "accountName": "2024009649-00001",
    "managedAccList": [
        {
          "id": "1223334444-00001",
          "TxId": "2c90bd28-ece4-42ef-9f02-7e3bd4fbff33"
        },
        {
          "id": "2334445555-00001",
          "TxId": "d4fbff33-ece4-9f02-42ef-2c90bd287e3b"
        }
    ]
}

Failure Responses

All error messages are returned in this format:

{
  "errorCode": "The 3-digit HTML error code",
  "errorMessage": "string"
}

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

On this page