Create a consumer user or return the existing one (based on external_id or email)
PUT/v1/auth/company/consumer-users
Create a consumer user or return the existing one (based on external_id or email)
Request
- application/json
Body
required
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
billable_address
object
Default value: EUR
Default currency
Responses
- 201
- 401
- 422
- application/json
- Schema
- Example (from schema)
Schema
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
{
"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"
}
}
Unauthorized
Invalid input