swepayError Catalog

Native Accounting Ops

No Membership 403

The caller has no active membership for the requested tenant.

type https://errors.swepay.com.br/accounting-ops/no-tenant-membership

What this means

Returned by tenant selection when the caller's identity has no active, unexpired membership for the tenant being selected. A tenant id that does not exist at all is reported the same way, so the response never discloses which tenants exist.

Common causes

  • The caller was removed from the tenant, or their membership expired.
  • The caller is trying to select a tenant they were never invited to.
  • The tenant id does not exist.

How to resolve

Call GET /me/tenants to see the tenants the caller actually belongs to and select one of those instead. If the caller is expected to have access to this tenant, ask a tenant administrator to grant membership — this is not something the caller can resolve by retrying.

Example response

HTTP 403 · application/problem+json
{
  "type": "https://errors.swepay.com.br/accounting-ops/no-tenant-membership",
  "title": "No Membership",
  "status": 403,
  "detail": "The caller has no active membership for the requested tenant.",
  "instance": "/me/tenants/00000000-0000-0000-0000-000000000000/select"
}

References

Machine-readable: /accounting-ops/no-tenant-membership.json