Customers

post
Create & Update Customer(s)

https://api.zaius.com/v3/profiles
Update the attributes and identifiers of a customer.
Request
Response
Body Parameters
attributes
required
object
Attributes like gender and first_name associated with this customer.
202: Accepted
{
"title": "Accepted",
"status": 202,
"timestamp": "2018-09-10T21:07:10-05:00"
}
Example Payload
[{
"attributes": {
"first_name": "Johnny",
"last_name": "Zaius",
"email": "sample@test.com",
"phone": "555-867-5309",
"street1": "123 Fake St",
"street2": "Apt 101",
"city": "Boston",
"state": "MA",
"zip": "02101",
"country": "USA",
"timezone": "America/New_York",
"gender": "M"
}
},
{
"attributes": {
"first_name": "Jenny",
"last_name": "Example",
"email": "example@notreal.com",
"phone": "555-555-5555",
"street1": "456 Imaginary Ln",
"city": "Leesburg",
"state": "Virginia",
"zip": "20175",
"country": "United States",
"timezone": "America/New_York",
"gender": "F"
}
}]

get
Get Customer Information

https://api.zaius.com/v3/profiles
Get the attributes and identifiers associated with a customer.
Request
Response
Query Parameters
example_identifier
optional
string
Replace this value with any valid identifier (e.g. vuid). If provided, email is not required as a query parameter.
email
required
string
The name and value for any single identifier (e.g. email, vuid, etc.)
202: Accepted
{
"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": [
{
"event": 0,
"message": "Missing required field `product_id`"
}
]
}
}
403: Forbidden
{
"message": "Forbidden"
}
404: Not Found
{
"title": "Accepted",
"status": 202,
"timestamp": "2018-09-10T21:07:10-05:00",
"detail": {
"message": "Unable to find profile for email = sample_bad@test.com"
}
}
Example Request
curl -iX GET \
'https://api.zaius.com/v3/profiles?email=sample@test.com' \
-H 'x-api-key: example.apiKey'

‚Äč