> ## Documentation Index
> Fetch the complete documentation index at: https://scaleup-c34c4386.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DELETE /api/v1/organizations/:id/invites/:inviteId

> Revoga um convite pendente de uma organização

Revoga um convite pendente, alterando seu status para `revoked`. O convite não poderá mais ser aceito após a revogação.

## Autenticação

Requer **token de usuário (JWT Supabase)** via header `Authorization: Bearer`. O usuário deve pertencer à organização.

## Parâmetros de Path

**id** `string` *required*

ID da organização

**inviteId** `string` *required*

ID do convite a ser revogado

## Resposta

**message** `string`

`"Convite revogado"`

## Erros

| Código | Descrição |
| - | - |
| `404` | Organização não encontrada ou acesso negado |

## Exemplo

```bash cURL theme={null}
curl -X DELETE "https://api.chargefy.io/api/v1/organizations/org_abc123/invites/inv_xyz789" \
  -H "Authorization: Bearer $CHARGEFY_ACCESS_TOKEN"
```

```typescript SDK theme={null}
import { Chargefy } from '@chargefy/sdk';

const chargefy = new Chargefy({
  accessToken: process.env.CHARGEFY_ACCESS_TOKEN,
});

await chargefy.organizations.revokeInvite('org_abc123', 'inv_xyz789');
```

## Resposta de Exemplo

```json theme={null}
{
  "message": "Convite revogado"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.