A profile represents a Centrapay user’s attributes.
Attributes
-
userId
-
givenName
-
familyName
-
featureUpdates
-
marketingUpdates
-
email
-
emailVerified
-
phoneNumber
-
phoneVerified
/api/me/profile/update
Update a user’s mutable attributes. At least one field must be provided in the request.
Attributes
-
givenName
-
familyName
-
featureUpdates
-
marketingUpdates
-
email
Request
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"
}
'
Response
{
"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
}
Request
curl -X GET \
https://service.centrapay.com/api/users/da75ad90-9a5b-4df0-8374-f48b3a8fbfcc/profile \
-H 'x-api-key: <TOKEN>'
Response
{
"givenName": "John",
"familyName": "Doe",
"featureUpdates": false,
"marketingUpdates": true,
"email": "john.doe@centrapay.com"
}