Getting a list of customer attributes
You can download a complete list of customer attributes from ExpertSender. It will not contain system attributes, but only attributes defined by you in the Settings > Customers > Customer attributes section.
You can read more about it here: Customer attributes.
GET method
The GET method is used to obtain a list of all currently used customer attributes along with their properties.
Your GET query must contain:
- Server address (endpoint): https://api.ecdp.app/customerattributes
- API key: your API key, found in Settings > API.
A valid API query for a list of customer attributes looks like this: https://client.ecdp.app/customerattributes
What data will be included in the response?
The response to a correctly submitted query contains the following data:
Parameter | Type | Description |
id | Integer($int32) | Customer attribute’s identification number visible under Settings > Customers > Customer attributes. |
name | string | Customer attribute’s name assigned by you in Settings > Customers > Customer attributes. |
type | string | Attribute type with its properties: String, Text, Number, Money, Date, DateTime, SingleSelct, Boolean, Url. |
Query response codes
200: Success
The query has been processed and the server has returned a response. Sample response syntax looks as follows:
{
"status": 0,
"data": [
{
"id": 0,
"name": "string",
"type": "string"
}
]
}
401: Unauthorized
The request was missing an API key or you are requesting access to information that you do not have permission to access. Sample response syntax looks as follows:
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}