ContactSyncRequest
contacts object[]required
An empty string counts as absent.
Possible values: >= 1, <= 500
ref objectrequired
Who the person is on the site — the link that finds the same contact even after a change of number.
wp_user: a WordPress user. wc_customer: a WooCommerce customer. wc_guest: a purchase without an account. lead: someone known only by a form or a cart.
Possible values: [wp_user, wc_customer, wc_guest, lead]
The person's id on the site. Someone without an account (wc_guest, lead) goes by the sha256 of their e-mail.
Possible values: non-empty and <= 191 characters
42In any format; it is normalized to E.164. Without the country code, country or options.defaultCountry applies.
Possible values: <= 40 characters
Country of the billing address (ISO 3166 alpha-2) — it is how a number typed without its country code is read.
Possible values: >= 2 characters and <= 2 characters
Possible values: <= 80 characters
Possible values: <= 80 characters
Possible values: <= 254 characters
Possible values: Value must match regular expression ^[a-z]{2}(-[A-Z]{2})?$
pt-BRattributes object
Custom fields, by key. They only fill what is empty — except the fields the site computes itself, which overwrite.
Custom fields, by key. They only fill what is empty — except the fields the site computes itself, which overwrite.
Names of tags to add. Missing ones are created.
Possible values: <= 20
Names of tags to take off the contact.
Possible values: <= 20
consent object
The consent the person gave or withdrew on the site. An opt-out always applies; an opt-in
only moves a contact from unknown to opted_in, never over an opt-out or a
suppression.
- Opt-in
- Opt-out
Possible values: [opted_in]
What the person agreed to and where: the ticked box's text, the order, the site.
Possible values: >= 3 characters and <= 500 characters
When the person agreed.
When the site read these values — it is what orders two snapshots of the same person.
options object
true starts flows and sends webhooks for what changed. false, for a backfill, fires nothing.
falseCountry used for phones without a country code, when the row has no country.
Possible values: >= 2 characters and <= 2 characters
{
"contacts": [
{
"ref": {
"kind": "wp_user",
"id": "42"
},
"phone": "string",
"country": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"locale": "pt-BR",
"attributes": {},
"tags": [
"string"
],
"removeTags": [
"string"
],
"consent": {
"status": "opted_in",
"evidence": "string",
"at": "2024-07-29T15:51:28.071Z"
},
"occurredAt": "2024-07-29T15:51:28.071Z"
}
],
"options": {
"triggers": false,
"defaultCountry": "string"
}
}