Payezydevelopers
Sandbox

API reference / Organizations and teams

Accept an invitation

POST/v1/invitations/accept

Accepts an invitation. The email link sends token. Someone with no organization yet may instead send invitation_id from Me.pending_claims for an owner claim already addressed to their verified email. Exactly one of the two is set.

Before you call it

  • CredentialAny signed-in member or API key of the organization.

Request body

FieldWhat it does
tokenstringSecret from the invitation or claim link
invitation_idstring (uuid)A pending owner claim for the signed-in email, from Me.pending_claims

Response 200

Joined the organization

FieldWhat it does
org_idstring (uuid)requiredNo description in the spec yet.
org_namestringrequiredNo description in the spec yet.
org_typeenumrequiredNo description in the spec yet.

One of individual business platform

org_statusenumrequiredNo description in the spec yet.

One of kyc_required kyc_pending active restricted suspended closed

role_keystringrequiredNo description in the spec yet.
role_namestringrequiredNo description in the spec yet.
permissionsstring[]requiredNo description in the spec yet.
platform_namestringThe platform partner this organization banks through, if any

Errors to handle

CodeWhat it means and what to do
invitation_inactive409this invitation is no longer valid; ask the platform for a new one
invitation_email_mismatch403this invitation was sent to a different email address
email_not_verified403verify your email address to continue

Every error is a Problem document. Branch on code; quote request_id to support.