contactUpdate

Field
Type
Description
firstName string
Contact first name.
lastName string
Contact last name.
channels array of channel
List of media channels. You can add maximum two channels of the same type. It is necessary to specify at least one channel.
address address
Contact address.
fields array of contactField
Values of additional fields of contact.
addressBookId int
Catalog ID. The value can be obtained with /v1/addressbooks GET method. Optional parameter.
id long
Contact ID.
contactKey string
Contact key.
externalCustomerId string
External сontact id.
ordersInfo ordersInfo
Deprecated field, don't use it.
languageCode string
Language code. Optional parameter.
timeZone string
Time zone. Optional parameter. See column TZ database name

JSON example

{
  "firstName" : "...",
  "lastName" : "...",
  "channels" : [ {
    "type" : "email",
    "value" : "...",
    "device" : {
      "appId" : "...",
      "deviceModel" : "...",
      "os" : "...",
      "locale" : "...",
      "clientVersion" : "native",
      "appVersion" : "...",
      "active" : false
    },
    "webPushSubscription" : {
      "appId" : ...,
      "userAgent" : "...",
      "userAgentVersion" : "...",
      "userAgentLanguage" : "...",
      "os" : "...",
      "ip" : "...",
      "subscriptionPage" : "...",
      "swActiveVersion" : "..."
    }
  }, ... ],
  "address" : {
    "region" : "...",
    "town" : "...",
    "address" : "...",
    "postcode" : "..."
  },
  "fields" : [ {
    "id" : ...,
    "value" : "..."
  }, ... ],
  "addressBookId" : ...,
  "id" : ...,
  "contactKey" : "...",
  "externalCustomerId" : "...",
  "ordersInfo" : {
    "lastDate" : "...",
    "count" : ...
  },
  "languageCode" : "...",
  "timeZone" : "..."
}