Standard APIsConnectivity ManagementAPI EndpointsDevice ManagementAdd Devices

API Reference

Add Devices to an Account

POST /devices/actions/add

Adds up to 200 new devices to an account, without activating lines of service for them. Use this resource if you want to manage some device settings before you are ready to activate service for the devices.

NOTE: This is not a required or recommended step. You do not need to add devices to an account before activating them. Verizon recommends using /devices/actions/activate to add devices and activate service for them in a single step.

The devices that you want to add must already exist in the Verizon Device Management Database (DMD). After you add devices, they are in the “Pre-active” provisioning state in the ThingSpace Platform. They do not appear in your Verizon Wireless billing account or in the My Business Account or Verizon Enterprise Center portals.

To activate lines of service for devices after you have added them, see /devices/actions/activate.

HTTP Request

POST https://thingspace.verizon.com/api/m2m/v1/devices/actions/add

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 (required)stringHTTP Authorization bearer token.
VZ-M2M-Token (required)stringA valid session token returned by POST /session/login.
Content-Type (required)stringMust be application/json.

Request Body

Add two 4G devices:

{
      "accountName": "0000123456-00001",
      "customFields": [
        {
          "key": "CustomField2",
          "value": "SuperVend"
        }
      ],
       "devicesToAdd":[  
          {  
             "deviceIds":[  
                {  
                   "kind":"imei",
                   "id":"15-digit IMEI"
                },
                {  
                   "kind":"iccid",
                   "id":"20-digit ICCID"
                }
             ]
          },
          {  
             "deviceIds":[  
                {  
                   "kind":"imei",
                   "id":"15-digit IMEI"
                },
                {  
                   "kind":"iccid",
                   "id":"20-digit ICCID"
                }
             ]
          }
       ],
      "state": "Pre-active",
      "groupName": "West Region",
      "skuNumber": "up to 20-character SKU",
      "smrsOid": "object ID of the device in the subscription manager"
}

Request Body Parameters

All parameters are (required) unless marked (optional)

Parameter NameData TypeDescription
accountName (optional, but recommended)stringThe billing account to which the devices are added. If you have access to multiple billing accounts, then you must specify an account. If you have access to only one account, the devices are added to that account even if you don’t include this parameter. An account name is usually numeric and must include any leading zeros.
Note: By coding for the account number today, you prevent future code from breaking if you ever add a new sub-account.
customFields (optional)arrayThe names and values (key, value) for any custom fields that you want set for the devices as they are added to the account.
key (required for customFields)stringThe name of the custom field. Valid names are CustomField1, CustomField2, CustomField3, CustomField4 and CustomField5.
value (required for customFields)stringThe value of the custom field.
devicesToAddarrayThe devices that you want to add by deviceId value.
deviceIdarrayAn array of device identifier values (kind, id)
kind, idstringThe type (kind) and value (id) of the device identifiers. For 4G devices: IMEI (up to 16 digits) and ICCID (up to 20 digits), in that order. For eUICC devices: IMEI and EID (the request must also include an smsrOid)
NOTE: If you are using a skuNumber to add 4G devices, you must provide only the ICCID identifier.
statestringThe initial service state for the devices. The only valid state is Pre-active.
groupName (optional)stringThe name of a device group to add the devices to. They are added to the default device group if you don’t include this parameter.
skuNumber (optional)stringThe Stock Keeping Unit (SKU) number of a 4G device type with an embedded SIM. This can be used with ICCID device identifiers instead of an IMEI when adding 4G devices. The SkuNumber is used with all devices in the request, so all devices must be of the same type.
NOTE: Only 4G devices with embedded SIMs can be added by SKU at this time.
smsrOid (required for devices with eUICC)stringThe Subscription Manager Secure Routing Object ID of the device.

Success Responses

Status 200

Contains a device identifier and a success or failure response for each device in the request.

[
      {
        "deviceIds": [
          {
            "id": "20-digit ICCID",
            "kind": "iccid"
          }
        ],
        "response": "Success"
      }
]

Success Respone Parameters

Parameter NameData TypeDescription
deviceIdsarrayIdentifiers for the device.
kindstringThe type of the device identifier. Valid types of identifiers are: EID, ICCID and IMEI.
idstringThe value of the device identifier.
responsestringThe status message for the current device. This will be Success or Failed.

Failure Responses

All error messages are returned in this format:

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

On this page