Standard APIsConnectivity ManagementAPI EndpointsEmbedded SIM Including Consumer eSIMProfile To Activate Device

API Reference

Activate a Device (for eUICC)

Uses and Requirements

Activate a eUICC device, or multiple devices, for a profile.

Request Components

HTTP Request:

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

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 Parameters

ParameterData TypeDescription
devices requiredarrayAn array of deviceIds. Each deviceId will contain: id kind
idstringThe numeric ID of the device.
kindstringThe the type of device ID represented by the ID value. This could be: imei iccid mdn eid
smsrOidstringSystem Management Service Request Object ID. This is a system generated ID to track transaction requests made by the device.
carrierNamestringThe name of the carrier providing cellular network access.
accountName requiredstringThe name of the account.
servicePlanstringThe service plan the account is subscribed to. This drives billing for usage.
mdnZipCodestringThe 5-digit zip code of the profile
carrierIpPoolNamestringThe name of the pool of IP addresses assigned to the profile.
primaryPlaceOfUseobjectAn object with 2 arrays containing the account owner's name and address information.
customerName required for primaryPlaceOfUseobjectThe customer name to be used for line usage taxation.
title optional for customerNamestringAn optional title for the customer, such as “Mr.” or “Dr.”
firstName required for customerNamestringThe customer’s first name. Valid values are any string of up to 20 alphanumeric characters, space, dash, exclamation point, and pound sign.
middleName optional for customerNamestringThe customer’s middle name.
lastName required for customerNamestringThe customer’s last name. Valid values are any string of up to 25 alphanumeric characters, space, dash, exclamation point, and pound sign.
suffix optionalstringAn optional suffix for the customer name, such as “Jr.” or “III.”
address required for primaryPlaceOfUseobjectThe customer address for the line’s primary place of use, for line usage taxation.
addresLine1 required for addressstringThe street address for the line’s primary place of use. This must be a physical address for taxation; it cannot be a P.O. box.
addressLine2 optional for addressstringOptional additional street address information.
city required for addressstringThe city where the address is located
state required for addressstringThe two-letter abbreviation of the state for the line’s primary place of use. To see examples of the two-letter codes (i.e. TX for Texas), please see the Wikipedia page on ISO-3166-2:US
zip required for addressstringThe Zip code for the line’s primary place of use.
zip4 optionalstringThe ZIP+4 for the line’s primary place of use.
country required for addressstringEither “US” or “USA” for the country of the line’s primary place of use.

Request Body

Example request:

{
    "devices": [
        {
            "deviceIds": [
                {
                    "kind": "eid",
                    "id": "32-digit EID"
                },
                {
                    "kind": "iccid",
                    "id": "20-digit ICCID"
                }
            ]
        }
    ],
    "carrierName": "name of the mobile service provider",
    "accountName": "0000123456-00001",
    "servicePlan": "name of the service plan (for Consumer eSIM for enterprise the value will be 'HybridESim')",
    "mdnZipCode": "5 digit zip code",
    "carrierIpPoolName":"",
    "primaryPlaceOfUse": {
        "customerName": {
            "title": "Mr",
            "firstName": "First name",
            "lastName": "Surname"
        },
        "address": {
            "addressLine1": "line 1 of the address",
            "city": "city of the address",
            "state": "state of the address",
            "zip": "5 digit zip code",
            "country": "country of the address"
        }
    }
}

Success Responses

Status 200

A successful response shows a system generated request ID to track the request.

Example Success Response:

{
  "requestId": "d1f08526-5443-4054-9a29-4456490ea9f8"
}

Callback Response Parameters

These endpoints send responses asynchronously. In order to read the results a callback is required. To learn more about callbacks, please visit About Callback Services. The callback that must be subscribed to is DeviceProfileService.

Example callback responses:

{
   "username":"username",
   "password":"password",
   "requestId":"d1f08526-5443-4054-9a29-4456490ea9f8",
   "deviceIds":[
      {
         "id":"20-digit ICCID",
         "kind":"iccid"
      },
      {
         "id":"15-digit IMEI",
         "kind":"imei"
      },
      {
         "id":"32-digit EID",
         "kind":"eid"
      },
      {
         "id":"10-digit MDN",
         "kind":"mdn"
      }
   ],
   "deviceResponse":{
      "deviceProfileResponse":{
         "deviceIdentifierCollection":[
            {
               "id":"20-digit ICCID",
               "kind":"iccid"
            },
            {
               "id":"15-digit IMEI",
               "kind":"imei"
            },
            {
               "id":"32-digit EID",
               "kind":"eid"
            },
            {
               "id":"10-digit MDN",
               "kind":"mdn"
            }
         ],
         "state":"Active",
         "profileStatus":"ENABLE",
         "euiccStatus":"EXECUTED_SUCCESS",
         "euiccStatusCode":"1.2.365",
         "euiccStatusDesc":"EUICC device profile has been updated",
         "euiccSubAddressUpdateStatus":"EXECUTED_SUCCESS",
         "euiccSubAddressUpdateStatusCode":"1",
         "euiccSubAddressUpdateStatusDesc":"SUCCESS: Address has been updated",
         "carrierName":"the name of the mobile service provider",
         "profileRole":"LEAD"
      }
   },
   "status":"SUCCESS",
   "callbackCount":1,
   "maxCallbackThreshold":4
}

Callback Parameters

ParameterData TypeDescription
usernamestringThe username making the request.
passwordstringThe password associated with the username.
deviceIdsarrayAn array of devices being queried by the request. Each deviceId will contain: id kind
idstringThe numeric ID of the device.
kindstringThe the type of device ID represented by the ID value. This could be: imei iccid mdn eid
deviceResponsearrayContains the deviceProfileResponse, status and number of callback records returned.
deviceProfileResponsearrayContains the details and status of the devices and the request.
deviceIdentifierCollectionarraySimilar to deviceIds above, but this lists the devices responding.
statestringThe state of the device(s) responding.
profileStatusstringIndicates the profile state
euiccStatusstringThis shows how the device, or devices, has responded to the request. eUICC is embedded universal integrated circuit card and refers to the SIM card for the device. For more information, visit Working with eUICC Devices.
euiccStatusCodestringThe system generated status code for an eUICC device.
euiccStatusDescstringDescription of the eUICC status code
euiccSubAddressUpdateStatusstringStatus of any address update requests.
euiccSubAddressUpdateStatusCodestringA system generated status code for an address update request.
euiccSubAddressUpdateStatusDescstringA description of the status code from above.
carrierNamestringThe name of the mobile service provider
profileRolestringThe role (and permissions) of the profile.
statusstringThe status of the deviceResponse.
callbackCountstringThe number of responses for deviceResponse found.
maxCallbackThresholdstringThe maximum number of responses for deviceResponse allowed.

Failure Responses

All error responses will be in the following format

{
  "errorCode": "The 3-digit HTML error code",
  "errorMessage": "string"
}

On this page