Create, update & destroy customers
The Customer object
{
"first_name": "Jhon",
"last_name": "Doe",
"date_of_birth": "2000-12-01",
"gender": "male",
"source" : "ios app",
"custom" : {
"paid" : true
},
"emails": {
"items": [
{
"email": "jhon.doe@gmail.com"
}
]
},
"tags": {
"items": [
{
"body": "Amsterdam"
}
]
}
}
argument | type | required | description |
---|---|---|---|
id | String | ||
first_name | String | false | Defines the first name of the customer. |
last_name | String | false | Defines the last name of the customer. |
gender | String | false | Defines the gender of the customer. Options: male , female , other . |
date_of_birth | String | false | Defines the date of birth of the customer. Format: Y-m-d . |
source | String | false | Mostly used to define imports etc. |
emails | Object | false | Defines email addresses of the customer. |
custom | Object | false | Defines the custom properties of the customer. |
reference_id | String | false | Defines the reference_id of the customer. |
tags | Object | false | Defines tags of the customer. |
Create
To create a customer.
POST: https://customers.prepr.io/customers
Scopes: customers
customers_publish
Update
To update an existing customer.
PUT: https://customers.prepr.io/customers/{id}
Scopes: customers
customers_publish
Anonymize
The anonymize function removes customer data but keeps events untouched.
PUT: https://customers.prepr.io/customers/{id}/anonymize
Scopes: customers
customers_publish
Destroy
To delete a customer.
DELETE: https://customers.prepr.io/customers/{id}
Scopes: customers
customers_delete
Was this article helpful?
We’d love to learn from your feedback