Events

For examples of typical events and their associated fields, review the Zaius Event reference:

post
Upload Event(s)

https://api.zaius.com/v3/events
Upload events to Zaius
Request
Response
Body Parameters
type
required
string
the event type (e.g. product)
action
required
string
the event action associated with the type (e.g. add_to_cart)
identifiers
required
object
any known identifiers associated with the customer that performed the event
data
optional
object
any additional fields you want to include on the event (e.g. product_id)
200: OK
{
"title": "Accepted",
"status": 202,
"timestamp": "2018-09-10T21:07:10-05:00"
}
400: Bad Request
{
"title": "Bad Request",
"status": 400,
"timestamp": "2018-09-10T21:07:10-05:00",
"detail": {
"invalids": []
}
}
403: Forbidden
{
"message": "Forbidden"
}
Example Payload
[
{
"type": "product",
"action": "add_to_cart",
"identifiers": {
"email": "tyler@zaius.com"
},
"data": {
"product_id": "123"
}
},
{
"type": "product",
"action": "remove_from_cart",
"identifiers": {
"email": "tyler@zaius.com"
},
"data": {
"product_id": "123"
}
}
]