Profiles
A profile represents a Centrapay user's attributes.
Profile Model
Attributes
-
userId
string -
givenName
string -
familyName
string -
featureUpdates
boolean -
marketingUpdates
boolean -
email
string -
emailVerified
boolean -
phoneNumber
string -
phoneVerified
boolean
Update Profile experimental
Update a user’s mutable attributes. At least one field must be provided in the request.
Attributes
-
givenName
string -
familyName
string -
featureUpdates
boolean -
marketingUpdates
boolean -
email
string
curl -X POST \ https://service.centrapay.com/api/me/profile/update \ -H 'authorization: <TOKEN>' \ -H 'content-type: application/json' \ -d '{ "givenName": "John", "familyName": "Doe", "featureUpdates": false, "marketingUpdates": true, "email": "john.doe@centrapay.com"}'
{ "userId": "9f4b3bae-dc30-11ea-ab70-2743d9be3dd5", "givenName": "John", "familyName": "Doe", "featureUpdates": true, "marketingUpdates": true, "email": "john.doe@centrapay.com", "emailVerified": true, "phoneNumber": "+64271112222", "phoneVerified": true}
Get Profile experimental
This endpoint allows you to retrieve a user's Profile.
curl -X GET \ https://service.centrapay.com/api/users/da75ad90-9a5b-4df0-8374-f48b3a8fbfcc/profile \ -H 'x-api-key: <TOKEN>'
{ "givenName": "John", "familyName": "Doe", "featureUpdates": false, "marketingUpdates": true, "email": "john.doe@centrapay.com"}