Payezydevelopers
Sandbox

API reference / Organizations and teams

Invite a teammate

POST/v1/orgs/{orgId}/invitations

Emails a person a link to join this organization with the given role.

Before you call it

  • Permissionmembers:invite
  • Second factorRequired for browser sessions. An API key with the scope replaces it.

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.

Request body

FieldWhat it does
emailstring (email)requiredNo description in the spec yet.
role_keystringrequiredNo description in the spec yet.
deliveryenumHow an invitation reaches the invitee. screen sends no email and returns the link to the sender instead; it is only accepted in test environments (staging, local) and refused in production, which always emails.

One of email screen

Default "email"

Response 201

Invitation sent

FieldWhat it does
idstring (uuid)requiredNo description in the spec yet.
emailstringrequiredNo description in the spec yet.
role_keystringrequiredNo description in the spec yet.
statusenumrequiredNo description in the spec yet.

One of pending accepted revoked expired

expires_atstring (date-time)requiredNo description in the spec yet.
created_atstring (date-time)requiredNo description in the spec yet.
linkstringThe invitation link, returned by create and resend only when delivery was screen

Errors to handle

CodeWhat it means and what to do
already_member409this person is already a member
insufficient_rank403You tried to assign, invite or revoke a role ranked above your own.

Ask a member with a higher role, usually the owner.

invalid_email422Enter a valid billing email.
unknown_role422unknown role

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