ADD_CONSUMERS event
Use the ADD_CONSUMERS event to capture the guest's action of adding consumers to the product.
Sitecore CDP does not run identity on consumers. If the consumer is also the contact on the order and passes your organization's identity rules, the consumer will have a customer guest_type
. In all other scenarios, Sitecore CDP will create a traveller guest_type
for the consumer.
To send an ADD_CONSUMERS event, use the following required attributes:
Attribute |
Type |
Description |
Example |
---|---|---|---|
|
string (uppercase) |
The touchpoint where the user interacts with your brand. |
|
|
string (uppercase) |
The type of the event that takes place when the user interacts with your brand. |
|
|
string (uppercase ISO 639-1) |
The language the user is using your app in. |
|
|
string (uppercase ISO 4217) |
The alphabetic currency code of the currency the user is using in your app. |
|
|
string |
The name of the webpage where the interaction with your brand takes place. This is a custom value of your choice. |
|
|
string |
The name of the point of sale where the interaction with your brand takes place. |
|
|
string |
The browser ID. |
|
|
array of objects |
The consumer data. |
N/A |
The consumer
array of objects:
Attribute |
Type |
Description |
Example |
Required/optional |
---|---|---|---|---|
|
string (title case) |
The title of the consumer. |
|
Required |
|
string (title case recommended) |
The first name of the consumer. |
|
Required |
|
string (title case recommended) |
The last name of the consumer. |
|
Required |
|
string |
The gender of the consumer. |
|
Optional |
|
string (ISO 8601) |
The date of birth of the consumer. |
|
Optional |
|
string |
The mobile number of the consumer. |
|
Optional |
|
string (title case) |
The nationality of the consumer. |
|
Optional |
|
string |
The reference ID of the consumer. |
|
Optional |
|
array of strings |
A list of item IDs of core and dependent products that belong to the consumer. |
|
Optional |
{
"channel": "MOBILE_APP",
"type": "ADD_CONSUMERS",
"language": "EN",
"currency": "EUR",
"page": "payment page",
"pos": "spinair.com/france",
"browser_id": "a38b230c-11eb-4cf9-8d5d-274e9f344925",
"consumer": [{
"title": "Mr",
"firstname": "Jack",
"lastname": "Smith",
"dob": "1975-04-23T00:00",
"gender": "male",
"mobile": "+353123456",
"nationality": "Irish",
"reference_id": "1",
"item_id": [
"FLIGHT_1",
"FLIGHT_2",
"BAG_1",
"SEAT_1"
]
}, {
"title": "Ms",
"firstname": "Lily",
"lastname": "Smith",
"dob": "1980-01-15T00:00",
"gender": "female",
"mobile": "+353123458",
"nationality": "Irish",
"reference_id": "2",
"item_id": [
"FLIGHT_1",
"FLIGHT_2",
"BAG_2",
"SEAT_2"
]
}]
}