Consent

Customers that have not given marketing consent cannot receive marketing messages.

https://api.zaius.com/v3/lists/subscriptions
This endpoint allows you to update consent for a customer.
Request
Response
Body Parameters
email
required
string
The customer's email
opted_in
required
boolean
The user's subscription status. The first time a contactable email is received by Zaius, it is opted in unless otherwise noted.
200: OK
{
"title": "Accepted",
"status": 202,
"timestamp": "2019-07-30T23:55:00.519Z"
}
400: Bad Request
{
"title": "Bad Request",
"status": 400,
"timestamp": "2019-07-30T23:53:48.615Z",
"detail": {
"message": "Unable to parse request body."
}
}
Example Payload
[
{
"email": "sample@test.com",
"opted_in": false
}
]