Add Managed Billing Accounts
Add accounts for managed billing
POST /managedaccounts/actions/add
Adds a list of accounts for managed billing to a primary account. The managed accounts must then activate the service. The primary account will receive consolidated billing for all Device Location services used by the managed accounts.
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
POST https://thingspace.verizon.com/api/subsc/v1/managedaccounts/actions/add
Resource Path and Query Parameters
None.
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 Name | Data Type | Description |
|---|---|---|
| Authorization (required) | string | HTTP Authorization bearer token: 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 credentials. |
| Content-Type (required) | string | Must be application/json: Content-Type: application/json. |
Request Body
The body contains the the primary account name and list of account that you want to manage under the primary account.
| 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 service to manage. Must be Location for the Device Location Service. |
| type (required) | string | The SKU of the location service that was purchased by the primary account. |
| managedAccList (required) | array | List of accounts to be added to the primary account as managed accounts. These accounts will be added to any accounts that are already on the list. |
| id (required) | string | The name of an account to be managed. |
Example Request Body
{
"accountName": "1234567890-00001",
"serviceName": "Location",
"type": "TS-LOC-COARSE-CellID-Aggr",
"managedAccList": [
"1223334444-00001",
"2334445555-00001",
"3445556666-00001"
]
}Success Responses
Status 200
A success response contains a unique transaction ID for the request, plus the list and status of accounts that were added.
| Parameter Name | Data Type | Description |
|---|---|---|
| TxId | string | Unique ID of this request. This ID must be used to activate each managed account that was added in this request. |
| statusList | array | The list of added accounts, and the status of each one. |
| id | string | The account name of a managed account that was in the request. |
| status | string | The status of the add request for this account, either Success or Fail. |
| reason | string | Either Success or additional information about a failure, such as Invalid account name. |
Example Success Response
{
"TxId": "2c90bd28-eeee-ffff-gggg-7e3bd4fbff33",
"statusList": [
{
"id": "0000123456-00001",
"status": "Success",
"reason": "Success"
},
{
"id": "0000123456-00002",
"status": "Success",
"reason": "Success"
},
{
"id": "0000123456-00003",
"status": "Success",
"reason": "Success"
}
]
}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.

