Fetching a customer profile
After a customer signs in, you can query the customer profile using the following endpoint.
GET: https://customers.prepr.io/customers/me
Customer object
To expand the customer object when querying a customer profile, add the following field names to the fields parameter.
Fields
field name | type | description |
---|---|---|
id | String | - |
first_name | String | Lists the first name of the customer. |
last_name | String | Lists the last name of the customer. |
date_of_birth | String | Lists the date of birth of the customer. Format: Y-m-d . |
emails | Array | Lists email addresses of the customer. |
reference_id | String | Lists the reference_id of the customer. |
tags | Array | Lists tags of the customer. |
segments | Array | Lists the segment the customer is in. |
GET: https://customers.prepr.io/customers/me?fields=custom,emails,tags
{
"id" : "234h-432847-x23498-763x4-324x234",
"first_name": "Jhon",
"last_name": "Doe",
"date_of_birth": "2000-12-01",
"emails": {
"items": [
{
"email": "jhon.doe@gmail.com"
}
]
},
"tags": {
"items": [
{
"body": "Amsterdam"
}
]
}
}
Was this article helpful?
We’d love to learn from your feedback