Target
Examples of valid target objects include the following.
Identifying by email address:
{
"email": "example@taguchi.com.au"
}
Identifying by email address and phone number:
{
"email": "example@taguchi.com.au",
"phone": "+61400000000"
}
Identifying by external ID:
{
"ref": "123e4567-e89b-12d3-a456-426614174000"
}
Identifying by Taguchi ID:
{
"id": 121293458
}
Status
Example success status:
{
"code": 200,
"name": "OK",
"description": ""
}
Example error status:
{
"code": 400,
"name": "Bad Request",
"description": "Subscriber profile object did not contain required identifying fields"
}
Message Send
Example message send action:
{
"target": {"email": "example@taguchi.com.au"},
"isTest": false,
"requestContent": null,
"sendTimestamp": "2023-01-01T10:00:00Z",
"activityId": 1209
}
Event Log
Example custom event log request:
{
"target": {"email": "example@taguchi.com.au"},
"isTest": false,
"data": {"total": 123.50, "products": [{"sku": "1290W", "price": 123.50}]},
"type": "p"
}
Example event notification passed back by Taguchi webhooks:
{
"target": {"id": 121293458},
"isTest": false,
"data": null,
"type": "s",
"loggedTimestamp": "2023-01-01T10:00:00Z",
"activityId": 1209,
"id": 174049918808633344
}
List Subscription
Example list subscription:
{
"listId": 12,
"importId": null,
"campaignId": null,
"subscribedTimestamp": "2023-01-01T05:00:00Z",
"unsubscribedTimestamp": null,
"subscriptionOption": null
}
Subscriber
Example subscriber profile:
{
"id": 121293458,
"ref": "123e4567-e89b-12d3-a456-426614174000",
"email": "example@taguchi.com.au",
"phone": "+61400000000",
"title": "Dr",
"firstname": "Jane",
"lastname": "Doe",
"notifications": null,
"extra": null,
"dob": "1970-01-01",
"address": "123 Example St",
"address2": null,
"address3": null,
"suburb": "Melbourne",
"state": "VIC",
"country": "Australia",
"postcode": "3127",
"gender": null,
"unsubscribedTimestamp": null,
"invalidTimestamp": null,
"resumeDate": null,
"organizationId": 482,
"campaignId": null,
"importId": null,
"custom": {
"CustomerValue": "high",
"IsLoyaltyMember": "true"
},
"lists": [
{
"listId": 12,
"importId": null,
"campaignId": null,
"subscribedTimestamp": "2023-01-01T05:00:00Z",
"unsubscribedTimestamp": null,
"subscriptionOption": null
}
]
}
Partition
Example partition:
{
"id": 0,
"ref": "string",
"organizationId": 482,
"status": "string",
"isArchived": true,
"custom": {
"alive": true,
"count": 1
}
}