Get all consumer users
GET/v1/auth/company/consumer-users
return only consumer users that have used the current company at least one time
Request
Query Parameters
Start key in base64 encoded json, key of the first item of the page. Put here the key received in last_key.
Possible values: <= 100
Default value: 20
Number of items per page
Company external id of the user to be searched
The email of the user to be searched
Responses
- 200
- 401
successful operation
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
Cents ID of the consumer user
Company external id of the user
first name and last name of the consumer user
email of the consumer user
Email anonymized flag (if email is anonymized or not)
phone number of the consumer user with the country code
Default value: EUR
Default currency
user_impact
object
user impact with its donations
total donated amount (in the smallest currency unit, so 1000 is 10.00€). Using consumer user main currency
detail of cost example related to donated amount
billable_address
object
the key is used to fetch the subsequent page (to be passed to start_key parameter). If it's empty, no further data is available
{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"external_id": 5.7496782767816784e+23,
"full_name": "Mario Rossi",
"email": "mario@email.com",
"email_anonymized": false,
"phone": 3933334445555,
"default_currency": "EUR",
"user_impact": {
"total_donations": 15000,
"cost_examples": {}
},
"billable_address": {
"street_address": "via Roma 5",
"city": "Milan",
"region_state": "Lombardia",
"zip_code": "20100",
"country": "Italy"
}
}
],
"last_key": "string"
}
Unauthorized