An Account Membership represents a user having access to a Centrapay Account. An Account Membership has a role which grants the user access to some or all of the operations and resources within the account.
A Member contains extended information about a user’s access to an account.
Attributes
/api/accounts/{accountId}/members
This endpoint allows you to add or update the membership of a user to an account.
Attributes
-
userId
-
role
/api/accounts/{accountId}/members
This endpoint allows you to retrieve the list memberships to an account.
/api/accounts/{accountId}/members/{userId}
This endpoint allows you to revoke a users membership to an account.
Errors
-
LAST_OWNER_NOT_REVOKABLE
/api/account-memberships
This endpoint allows you to retrieve the accounts that the authenticated subject is a member of.
/api/users/{userId}/account-memberships
This endpoint allows you to retrieve the accounts that a user is a member of.