Standard APIsConnectivity ManagementAPI EndpointsAccountsGet Account Information

API Reference

Get information about an account

GET /accounts/{accountname}

Uses and Requirements

Returns information about a specified account.

Request Components

HTTP Request:

GET https://thingspace.verizon.com/api/m2m/v1/accounts/{accountname}

Resource Path and Query Parameters

Resource Path and Query Parameters

You must include the account name in the path.

Parameter NameData TypeDescription
accountname requiredstringThe name of the account for which you want a list of states and services. An account name is usually numeric, and must include any leading zeros.

Header Parameters

The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token, and must set the content-type to JSON.

Parameter NameData TypeDescription
Authorization requiredstringHTTP Authorization bearer token.
VZ-M2M-Token requiredstringA valid session token returned by POST /session/login.
Content-Type requiredstringMust be application/json.

Request Body

None.

Success Responses

Status 200 A successful request returns an array of engagements. Each engagement includes an array of custom services, and each service includes an array of custom states:

Status 200

Parameter NameData TypeDescription
accountNamestringThe name of the account.
accountNumberstringThe billing number of the account.
organizationNamestringThe name of the organization that the account is part of.
isProvisioningAllowedbooleanTrue if devices can be added to the account and activated with a single request. False if devices must be added to the account before they can be activated.
carriersarrayThe names of all carriers for the account.
featuresarrayThe names of features that are enabled for the account.
ipPoolsarrayArray of IP pools that are available to the account.
poolNamestringThe name of the IP pool.
poolTypestringThe type of IP pool, such as “Static IP” or “Dynamic IP.”
isDefaultPoolBooleanTrue if this is the default IP pool for the account.
servicePlansarrayArray of service plans that are available to the account.
namestringThe service plan name.
codestringThe service plan code, used when adding devices or changing device service plans.
sizeKbstringThe amount of data included in the service plan.
carrierServicePlanCodestringInternal service plan reference code.
extendedAttributesstringAny extended attributes for the service plan.

Example Success Response

{
  "accountName":"Chintan_CPNStaticBulk",
  "accountNumber":"1234567890-77777",
  "organizationName":"ChintanCPNBulk",
  "isProvisioningAllowed":true,
  "carriers":[
    "Verizon Wireless"
  ],
  "features":[
    "Static IP",
    "Dynamic IP",
    "Customer PN"
  ],
  "ipPools":[
    {
      "poolName":"ACMESTATIC001",
      "poolType":"Static IP",
      "isDefaultPool":true
    },
    {
      "poolName":"ACMEDYNAMIC001",
      "poolType":"Dynamic IP",
      "isDefaultPool":false
    }
  ],
  "servicePlans":[
    {
      "name":"",
      "code":"92876",
      "sizeKb":,
      "carrierServicePlanCode":"",
      "extendedAttributes":""
    },
    {
      "name":"",
      "code":"92876",
      "sizeKb":,
      "carrierServicePlanCode":"",
      "extendedAttributes":""
    }
  ]
}

Failure Responses

Status 400

All error messages are returned in this format:

{
  "errorCode": "error code string",
  "errorMessage": "error message string"
}

On this page