CreateBulkEntityImportRequest
contacts object[]required
An array of contacts to import. These could be references to existing contacts or contacts to upsert
A reference to the entity. This has to be unique in this request, but can be reused between requests. This reference will be used in the result to match upserted entities to the input given. This is required if an upsert is expected. If an upsert is not required then passing only a known ID is allowed.
row1transactions object[]
An array of transactions to import. These could be references to existing transactions or transactions to upsert.
The ID of the contact. If the ID is known beforehand this can be used to insert child entities without updating the contact. If ONLY this property is passed than the refId is not required.
CTR_asdflQkGpgvqDbLA reference to the entity. This has to be unique in this request, but can be reused between requests. This reference will be used in the result to match upserted entities to the input given. This is required if an upsert is expected. If an upsert is not required then passing only a known ID is allowed.
row1-transaction1The date the transaction took place
data object
Additional data about the contact
The contact list to associate with this transaction for opt out
CG_asdflQkGpgvqDbLWhere the transaction has come from e.g. surveyResponse or supportCall
An external data reference for the transaction that will be used for deduplication
The type of the transaction when creating a system transaction.
enrichments object[]
An array of enrichments to import.
A reference to the entity. This has to be unique in this request, but can be reused between requests. This reference will be used in the result to match upserted entities to the input given.
row1-transaction1-BT_asdflQkGpgvqDbLsource objectrequired
The source of the enrichment. The provider and the context are combined with the metric field to determine a unique key for the enrichment.
The provider of the enrichment
response_enginecontext object
The context of the enrichment provides both a unique key and a reference back to the originating data. For example, an enrichment to a survey response will include the survey ID, the question ID and the response ID. This will allow a direct reference back to the raw data.
metric objectrequired
The value of the enrichment.
The type of the metric. A Gauge metric tracks a specific value at a point in time
The SES attribute for the metric.
ses://npsThe date that the metric was recorded
2022-01-01T00:00:00.000ZSome SES attributes are enum values. If they are enum values then this should be set to correctly map the numeric value to the appropriate enum value
enu://9The numeric value of the metric
9batches object[]
Transaction batches to add the transaction to
A reference to the entity. This has to be unique in this request, but can be reused between requests. This reference will be used in the result to match upserted entities to the input given.
row1-transaction1-BT_asdflQkGpgvqDbLThe batch to add the transaction
BT_asdflQkGpgvqDbLinteractionTopics object[]
An array of interaction topics to import. These could be references to existing interaction topics or interaction topics to upsert.
The ID of the interaction topic. If the ID is known beforehand this can be used to insert child entities without updating the interaction topic. If ONLY this property is passed than the refId is not required.
CIT_eIHCzFJNUifwz5QA reference to the entity. This has to be unique in this request, but can be reused between requests. This reference will be used in the result to match upserted entities to the input given. This is required if an upsert is expected. If an upsert is not required then passing only a known ID is allowed.
row1-interaction-topic1The date the interaction topic created or took place
data object
Additional data about the contact
An external data reference for the transaction that will be used for deduplication
Type of interaction topic e.g. ses://test
interactions object[]
An external data reference for the interaction being created
The ID of the contact. If the ID is known beforehand this can be used to insert child entities without updating the contact. If ONLY this property is passed than the refId is not required.
CTR_asdflQkGpgvqDbLA reference to the entity. This has to be unique in this request, but can be reused between requests. This reference will be used in the result to match upserted entities to the input given. This is required if an upsert is expected. If an upsert is not required then passing only a known ID is allowed.
row1-transaction1The date the transaction took place
data object
Additional data about the contact
The contact list to associate with this transaction for opt out
CG_asdflQkGpgvqDbLWhere the transaction has come from e.g. surveyResponse or supportCall
An external data reference for the transaction that will be used for deduplication
The type of the transaction when creating a system transaction.
enrichments object[]
An array of enrichments to import.
A reference to the entity. This has to be unique in this request, but can be reused between requests. This reference will be used in the result to match upserted entities to the input given.
row1-transaction1-BT_asdflQkGpgvqDbLsource objectrequired
The source of the enrichment. The provider and the context are combined with the metric field to determine a unique key for the enrichment.
The provider of the enrichment
response_enginecontext object
The context of the enrichment provides both a unique key and a reference back to the originating data. For example, an enrichment to a survey response will include the survey ID, the question ID and the response ID. This will allow a direct reference back to the raw data.
metric objectrequired
The value of the enrichment.
The type of the metric. A Gauge metric tracks a specific value at a point in time
The SES attribute for the metric.
ses://npsThe date that the metric was recorded
2022-01-01T00:00:00.000ZSome SES attributes are enum values. If they are enum values then this should be set to correctly map the numeric value to the appropriate enum value
enu://9The numeric value of the metric
9batches object[]
Transaction batches to add the transaction to
A reference to the entity. This has to be unique in this request, but can be reused between requests. This reference will be used in the result to match upserted entities to the input given.
row1-transaction1-BT_asdflQkGpgvqDbLThe batch to add the transaction
BT_asdflQkGpgvqDbLThe ID of the contact. If the ID is known beforehand this can be used to insert child entities without updating the contact. If ONLY this property is passed than the refId is not required.
CID_asdflQkGpgvqDbLThe given name of the contact
BobThe surname of the contact
SmithThe email of the contact
bob.smith@example.comAn external reference ID for the contact
abc1234The phone number of the contact
8015551234The ISO-639-1 code of the language
enWhether the contact is unsubscribed from the directory
trueThe date that the contact was unsubscribed. If not provided and unsubscribed === true, then the default is the current date time.
2022-01-01T00:00:00.000ZembeddedData object
Additional data about the contact
listMemberships object[]
Contact lists to add the contact to
A reference to the entity. This has to be unique in this request, but can be reused between requests. This reference will be used in the result to match upserted entities to the input given.
row1-CG_asdflQkGpgvqDbLThe list to subscribed the contact to
CG_asdflQkGpgvqDbLWhether the contact is unsubscribed from the contact list
trueThe date that the contact was unsubscribed. If not provided and unsubscribed === true, then the default is the current date time.
2022-01-01T00:00:00.000ZembeddedData object
Additional data about the contact list membership
{
"contacts": [
{
"refId": "row1",
"transactions": [
{
"id": "CTR_asdflQkGpgvqDbL",
"refId": "row1-transaction1",
"transactionDate": "2024-07-29T15:51:28.071Z",
"data": {
"key": "value"
},
"contactListId": "CG_asdflQkGpgvqDbL",
"platformType": "string",
"extRefId": "string",
"systemType": "string",
"enrichments": [
{
"refId": "row1-transaction1-BT_asdflQkGpgvqDbL",
"source": {
"provider": "response_engine",
"context": {
"surveyId": "SV_asdflQkGpgvqDbL",
"questionId": "QID1",
"responseId": "R_asdflQkGpgvqDbL"
}
},
"metric": {
"type": "string",
"field": "ses://nps",
"date": "2022-01-01T00:00:00.000Z",
"enumValue": "enu://9",
"numValue": 9
}
}
],
"batches": [
{
"refId": "row1-transaction1-BT_asdflQkGpgvqDbL",
"batchId": "BT_asdflQkGpgvqDbL"
}
]
}
],
"interactionTopics": [
{
"id": "CIT_eIHCzFJNUifwz5Q",
"refId": "row1-interaction-topic1",
"date": "2024-07-29T15:51:28.071Z",
"data": {
"key": "value"
},
"extRefId": "string",
"type": "string",
"interactions": [
{
"id": "CTR_asdflQkGpgvqDbL",
"refId": "row1-transaction1",
"transactionDate": "2024-07-29T15:51:28.071Z",
"data": {
"key": "value"
},
"contactListId": "CG_asdflQkGpgvqDbL",
"platformType": "string",
"extRefId": "string",
"systemType": "string",
"enrichments": [
{
"refId": "row1-transaction1-BT_asdflQkGpgvqDbL",
"source": {
"provider": "response_engine",
"context": {
"surveyId": "SV_asdflQkGpgvqDbL",
"questionId": "QID1",
"responseId": "R_asdflQkGpgvqDbL"
}
},
"metric": {
"type": "string",
"field": "ses://nps",
"date": "2022-01-01T00:00:00.000Z",
"enumValue": "enu://9",
"numValue": 9
}
}
],
"batches": [
{
"refId": "row1-transaction1-BT_asdflQkGpgvqDbL",
"batchId": "BT_asdflQkGpgvqDbL"
}
]
}
]
}
],
"id": "CID_asdflQkGpgvqDbL",
"firstName": "Bob",
"lastName": "Smith",
"email": "bob.smith@example.com",
"extRef": "abc1234",
"phone": 8015551234,
"language": "en",
"unsubscribed": true,
"unsubscribedDate": "2022-01-01T00:00:00.000Z",
"embeddedData": {
"key": "value"
},
"listMemberships": [
{
"refId": "row1-CG_asdflQkGpgvqDbL",
"listId": "CG_asdflQkGpgvqDbL",
"unsubscribed": true,
"unsubscribedDate": "2022-01-01T00:00:00.000Z",
"embeddedData": {
"key": "value"
}
}
]
}
]
}