Signing-up customers (deprecated)
Customers represent anonymous and registered people that are engaging with your content. They usually represent website visitors or shop buyers.
The Customer API provides methods to get, create, update and delete.
Creating a new customer
You can create a new Customer in your Prepr environment.
POST: https://customers.prepr.io/customers
Fields
argument | type | required | description |
---|---|---|---|
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. |
password | Object | false | Defines the password of the customer. |
terms | Object | false | Defines the accepted terms of the customer. |
sign_in | Boolean | false | Will add a sign in token to the response after creating the new customer. |
{
"first_name": "Jhon",
"last_name": "Doe",
"date_of_birth": "2000-12-01",
"company": "Prepr.io",
"job_title": "Developer",
"gender": "male",
"source" : "ios app",
"custom" : {
"paid" : true
},
"emails": {
"items": [
{
"email": "jhon.doe@gmail.com"
}
]
},
"tags": {
"items": [
{
"body": "Amsterdam"
}
]
},
"terms": {
"items": [
{
"id": "789asd-sad7asd8-asd8as7d8-2331"
}
]
},
"password": {
"password" : "E9Q8z6WK2k9PveT9bpBS4OjYkYSm55YE5AEmU6vmHU3U5l8q2KjI40kXbo8"
}
}
Was this article helpful?
We’d love to learn from your feedback