Skip to main content

User

The user file is used to create and update users on the MX platform. Usually, each user record will represent a given end-user. Details can be discussed with the MX integrations team.

User Fields

Field NameData TypeDescription
birthdateStringThe birthdate of the user. ISO 8601 format, without a timestamp. (YYYY-MM-DD).
credit_scoreIntegerThe credit score of the user.
emailStringEmail address of the user. Max length is 100. When set with Create User, this must adhere to the following format and rules: {user_name}@{domain}.{top_level_domain}.
  • user_name can include alphanumeric characters (letters and numbers) and special characters: ., !, #, $, %, &, ', *, +, /, =, ?, ^, _, {, }, |, ~, -.
  • @ symbol must exist between the user_name and domain.
  • domain must start/end with an alphanumeric character. It can include hyphens (-), but not consecutive hyphens. If there are multiple domain levels (for example, subdomains), they must follow the same rules.
  • At least one dot . must separate the domain and top_level_domain.
Examples of correct formatting:
  • user@example.com
  • user.name+test@sub-domain.example.co.uk
Examples of incorrect formatting:
  • @example.com (missing user_name)
  • user@domain..com (double dot in domain)
  • user@domain-.com (hyphen at the end of the domain)
first_nameStringThe first name of the user. Max length is 50.
genderStringOne of MALE or FEMALE.
guidStringThe unique identifier for the user. Defined by MX.
idStringThe unique partner-defined identifier for the user. It must be unique for all users belonging to a client. Can include numbers, letters, dash, and underscore. Max length is 1024.
is_disabledBooleanThis indicates whether a user is disabled from logging in. Defaults to false.
is_excluded_from_analyticsBooleanFlag indicating whether the user should be excluded from analytics activities.
last_nameStringThe last name of the user. Max length is 50.
metadataStringAdditional information a partner can store on the user.
phoneStringPhone number of the user. Max length is 15.
zip_codeStringThe postal code of the user. Postal codes from the following countries are supported: Canada, Indonesia, Japan, Malaysia, Philippines, South Korea, Thailand, United States, Vietnam.

User File Parameters

note

The action field tells us what data operation to perform for each row in the file. Options are upsert (an insert/update depending on if the object already exists) and delete (which will destroy the record). If no action is provided the default action is upsert.

note

The skip_webhook parameter prevents a webhook being sent for the action effected by each row. Accepted values are true or false. If skip_webhook is not provided, MX will default to your internal batch configuration setting.

FieldRequired for Upsert?Required for Delete?Type
idYesYesString
actionNoNoString
birthdateNoNoString
credit_scoreNoNoString
emailNoNoString
first_nameNoNoString
genderNoNoString
is_disabledNoNoBoolean
last_nameNoNoString
metadataNoNoString
phoneNoNoString
skip_webhookNoNoBoolean
zip_codeNoNoString

Sample File

The following is a sample User batch CSV file.

CSV
Language:text

_10
"action","id","first_name","last_name","email","phone"
_10
"upsert","U-39XBF7","John","Smith","example@example.com","5055551234"