Link Search Menu Expand Document

Profile

A profile represents a Centrapay user’s attributes.

Contents

Updating a user’s profile EXPERIMENTAL

POST https://service.centrapay.com/api/me/profile/update

curl -X POST "https://service.centrapay.com/api/me/profile/update" \
  -H "authorization: $jwt" \
  -H "content-type: application/json" \
  -d '{
    "givenName": "John",
    "familyName": "Doe",
    "featureUpdates": false,
    "marketingUpdates": true,
    "email": "john.doe@centrapay.com"
  }'

Optional Fields (Note at least one field must be provided in the request)

Field Type Description
givenName String First name
familyName String Last name
featureUpdates Boolean Whether a user would like to receive emails for feature updates
marketingUpdates Boolean Whether a user would like to receive emails for marketing updates
email String Email address

Example response payload

{
  "givenName": "John",
  "familyName": "Doe",
  "featureUpdates": false,
  "marketingUpdates": true,
  "email": "john.doe@centrapay.com",
}