Billing

Adds a list of accounts for managed billing to a primary account.

POST
/loc/v1/managedaccounts/actions/add

This endpoint allows user to add managed accounts to a primary account.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Request Body

application/json

Service name and list of accounts to add

Service name and list of accounts to add

accountName*string

Account identifier

serviceName*serviceName

Service name

Value in

  • "Location"
  • "fota"
type*string

SKU name

managedAccList*array<string>

managed account list

Response Body

application/json

application/json

curl -X POST "https://example.com/loc/v1/managedaccounts/actions/add" \  -H "Content-Type: application/json" \  -d '{    "accountName": "1234567890-00001",    "serviceName": "Location",    "type": "TS-LOC-COARSE-CellID-Aggr",    "managedAccList": [      "1223334444-00001",      "2334445555-00001",      "3445556666-00001"    ]  }'
{  "txid": "2c90bd28-eeee-ffff-gggg-7e3bd4fbff33",  "statusList": [    {      "id": "1223334444-00001",      "status": "Success",      "reason": "Success"    },    {      "id": "2334445555-00001",      "status": "Success",      "reason": "Success"    },    {      "id": "3445556666-00001",      "status": "Success",      "reason": "Success"    }  ]}