Intro

Contact identifiers

Each contact can be identified by its id, email or phoneNumber properties.


Properties

Contact can contain two types of properties:

  • System properties
  • Custom properties

System properties

System properties are:

PropertyTypeDescription
idstringContacts identifier in our system
emailstringEmail
phoneNumberstringPhone number
firstNamestringFirst name
lastNamestringLast name
genderstringContact's gender. Can be: m - male, f - female
birthdatestringBirthdate. Example: 1981-11-05
addressstringStreet, house number, apartment
countrystringCountry name
countryCodestringISO Country code (2 characters)
citystringCity
statestringState
postalCodestringContact's postal or zip code
tagsArray of stringContact tags. Tags are labels you create to organize and manage your audience. When creating a new contact we strongly advice to add source tag, i.e. "source: shopify"
consentsArray of ConsentContact consents. Consent is contact's permission to manage their data. Consent is usually (but not always, depends on country) given during opt in action.
optInsArray of OptInContact opt ins. Opt in is contact's subscription to email or SMS communication.
optOutsArray of OptOutContact opt outs. Opt out is contact's unsubscription to email or SMS communication.

Removing and modifying system properties:

System properties cannot be removed at the moment, only modified.

To modify a system property set its new value.

Properties which cannot be modified:

  • identifier properties: id, email and phoneNumber
  • tags, consents, optIns and optOuts

Custom properties

Custom properties can be specified in customProperties object.

Maximum 200 properties could be specified for one contact.

Name restrictions:

  • Property names can contain only latin characters, numbers, "_" (underscore) sign
  • Max name length - 128 symbols
  • Names are case-sensitive

Value restrictions:

  • String max length - 2048 characters
  • Objects are not supported
  • Floats are rounded to 6 digits precision

Supported types

TypeDescriptionExamples
boolBooleantrue, false
numberInteger or float1, 1.23
stringStringlorem ipsum
dateString, YYYY-MM-DD format2021-09-01
dateTimeString, ISO 8601 format2021-09-01T12:41:52Z, 2021-09-01T12:41:52+03:00
string arrayMultiple strings["elem1", "elem2"]

Removing and modifying custom properties:

To remove a custom property set its value to "". Omitting a custom property or setting its value to null won't remove the property.

To modify a custom property set its new value.


Example

The following is an example contact JSON structure:

{
    "email": "[email protected]",
    "firstName": "Vanessa",
    "lastName": "Kensington",
    "customProperties" {
        "age": 33,
        "hair_color": "brown",
        "married": true,
        "marriageDate":"2018-07-07",
        "loyaltyPoints": 125.8,
        "hobbies": ["traveling", "reading"]
    }
}