Standard APIsConnectivity ManagementAPI EndpointsDevice ManagementUpdate Devices Contact Info

API Reference

Change Device Contact Information

Uses and Requirements

The existing Primary Place of Use values set for the devices are erased by this request and are replaced by the new values specified in the request. If you do not provide a value for a parameter, it is set to an empty string.

The M2M Platform sends a CarrierService callback message when the device contact information has been changed, or if there was a problem and the change could not be completed.

Request Components

HTTP Request

PUT https://thingspace.verizon.com/api/m2m/v1/devices/actions/contactInfo

Resource Path and Query Parameters

None.

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

Select the devices to change:

Parameter NameData TypeDescription
devices optional*array of deviceIds objectsA list of the devices that you want to change, specified by device identifier. You only need to provide one identifier per device. Do not include accountName, groupName, customFields, or servicePlan if you use this parameter.
kind, id required for devicesstringThe type and value of the device identifier. ESN - decimal, 11 digits ICCID - decimal, up to 20 digits IMEI - decimal, up to 16 digits MDN - decimal, 10 digits MEID - hexadecimal, 14 characters MSISDN - decimal, 11 digits
accountName optional *RecommendedstringThe name of the billing account that the devices belong to. An account name is usually numeric, and must include any leading zeros. *By coding for the account number today, you prevent future code from breaking if you ever add a new sub-account.
primaryPlaceOfUse requiredobjectThe customer name and the address of the device’s primary place of use. These values are applied to all devices in the request. The Primary Place of Use location may affect taxation or have other legal implications. You may want to speak with legal and/or financial advisers before entering values for these fields.
customerName required for primaryPlaceOfUseobjectThe customer name to be used for line usage taxation.
title optionalstringAn optional title for the customer, such as “Mr.” or “Dr.”
firstName required for customerNamestringThe customer’s first name.
middleName optionalstringThe customer’s middle name.
lastName required for customerNamestringThe customer’s last name.
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.
addressLine1 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 optionalstringOptional additional street address information.
city required for addressstringThe city for the line’s primary place of use.
state required for addressstringThe state for the line’s primary place of use.
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.
phone optionalstringA phone number where the customer can be reached.
phoneType optionalstringA single letter to indicate the customer phone type: M = Mobile H = Home F = Fax W = Work/Business P = Pager
emailAddress optionalstringAn email address for the customer.

Example Request Body

Change the contact information for two devices

{  
  "devices":[  
    {  
      "deviceIds":[  
        {  
          "kind":"ESN",
          "id":"19110173057"
        },
        {  
          "kind":"ESN",
          "id":"19110173057"
        }
      ]
    }
  ],
  "accountName":"0212345678-00001",
  "primaryPlaceOfUse":{  
    "address":{  
      "addressLine1":"9868 Scranton Rd",
      "addressLine2":"Suite A",
      "city":"San Diego",
      "state":"CA",
      "country":"USA",
      "zip":"92121",
      "zip4":"0001",
      "phone":"1234567890",
      "phoneType":"H",
      "emailAddress":"zaffod@theinternet.com"
    },
    "customerName":{  
      "firstName":"Zaffod",
      "lastName":"Beeblebrox",
      "middleName":"P",
      "title":"President",
      "suffix":"I"
    }
  }
}

Success Responses

Status 200

Parameter NameData TypeDescription
requestIdstringA unique string that associates the request with the results that are sent via a callback service. The ThingSpace Platform sends a separate callback message for each device that matched the request criteria, indicating whether the operation succeeded for that device and containing any requested information. All of the callback messages have the same requestId.

Example Success Response

{
  "requestId": "24da9f9a-d110-4a54-86b4-93fb76aab83c"
}

Example Success Callback Response

{
  "username":"",
  "password":"",
  "requestId":"24da9f9a-d110-4a54-86b4-93fb76aab83c",
  "deviceIds":[
    {  
      "kind":"ESN",
      "id":"19110173057"
    },
    {
      "kind":"ESN",
      "id":"19110173057"
    }
  ],
  "deviceResponse":{
    "contactInfoResponse":{
      "accountName":"0212345678-00001"
    }
  },
  "status":"Success",
  "callbackCount":1,
  "maxCallbackThreshold":4
}

On this page