Payezydevelopers
Sandbox

API reference / Organizations and teams

Remove a member

DEL/v1/orgs/{orgId}/members/{userId}

Removes a person from the organization. An organization always keeps one active owner.

Before you call it

  • Permissionmembers:manage
  • 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.
userIdpath, uuidrequiredA member's user id from the member list.

Response 204

Removed

No body.

Errors to handle

CodeWhat it means and what to do
last_owner409an organization must keep at least one owner
insufficient_rank403You tried to assign, invite or revoke a role ranked above your own.

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

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