Create, update & destroy customers
The Customer object
{
"first_name": "Jhon",
"last_name": "Doe",
"date_of_birth": "2000-12-01",
"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. |
date_of_birth | String | false | Defines the date of birth of the customer. Format: Y-m-d . |
emails | Object | false | Defines email addresses 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
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