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}](/docs/premium-apis/device-location/api-endpoints/billing/listmanagedaccount) ## 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 Name | Data Type | Description | |:----------------|:-----------|:-------------| | **accountName** *(required)* | string | The 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)* | string | The name of the managed service. Must be `Location` for the Device Location Service. | | **status** *(required)* | string | Account 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](https://thingspace.verizon.com/documentation/api-documentation.html#/http/session-management/guides/getting-started). | Parameter Name | Data Type | Description | |:----------------|:-----------|:-------------| | **Authorization** *(required)* | string | HTTP Authorization bearer token: <br> `Authorization: Bearer {token}`. | | **VZ-M2M-Token** *(required)* | string | A valid session token returned by `POST /api/m2m/v1/session/login` using the primary account’s UWS credentials. | | **Content-Type** *(required)* | string | Must 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 Name | Data Type | Description | |:------------------|:-----------|:-------------| | accountName | string | The name of the primary account. | | managedAccList | array | List of managed accounts. | | id | string | The account name of the managed account. | | TxId | string | The unique transaction ID from the add or provision request, whichever is most recent. | ### Example Success Response ```json { "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: ```json { "errorCode": "The 3-digit HTML error code", "errorMessage": "string" } ``` Error codes and messages are listed on the [Error Codes page](https://thingspace.verizon.com/documentation/api-documentation.html#/http/device-location/error-codes), along with explanations and suggestions for corrective actions.