Company membership

Accept an invitation (existing user)

Accepts all pending invitations bound to the given invitation_token for the already-authenticated user, activating the memberships (sets the user, clears the token, marks them active). Use this when the invitee already has a Cardda account and is logged in.

post/v1/company_memberships/user_accept_invitation

Request

  • Base URL
    https://api.cardda.com
  • URL
    https://api.cardda.com/v1/company_memberships/user_accept_invitation
  • Auth
    HTTP bearer

Parameters

#/paths/~1v1~1users/get/parameters/0 (unresolved $ref)

Request body

invitation_tokenstring required

Response

The activated memberships.

idstring uuid required
user_idstring nullable

Firebase UID of the member. Null while the invitation is still pending.

company_idstring uuid required
emailstring nullable
rolestring

Role name (e.g. owner, admin, member, or a custom company role name).

status'pending' | 'active' | 'canceled'
legal_representativeboolean
has_powers_to_actboolean nullable
partnerboolean
partner_typeinteger nullable
participation_ratenumber nullable

Ownership participation percentage (0-100).

is_indirect_participation_corporateboolean nullable
company_role_idstring uuid nullable
created_atstring date-time
updated_atstring date-time

Example response

[
  {
    "role": "member",
    "status": "active"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.