> ## Documentation Index
> Fetch the complete documentation index at: https://docs.delfinance.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancelar autorização

> Cancela uma recorrência de Pix Automático, do lado do recebedor ou do pagador.

> [!NOTE]
>
> Para o passo a passo completo, veja o guia [Cancelar](https://docs.delfinance.com.br/guias/pix/pix-automatico/cancelar.md).

## Headers

**Authorization** `string` *required*

Sua API key, sem o prefixo `Bearer`.

**IdempotencyKey** `string` *required*

Chave de idempotência. Use um valor novo a cada chamada.

## Path params

**recurrenceId** `string` *required*

Identificador da recorrência.

## Body

**cancellationReason** `string` *required*

Motivo: `REQUESTED_BY_PAYEE`, `REQUESTED_BY_PAYER`, `ACCOUNT_CLOSED`, `COMPANY_CLOSED`, `PAYER_DECEASED`, `REQUEST_ERROR_BY_RECEIVER`, `FRAUD_SUSPECTED`, `DUPLICATE_CONFIRMATION` ou `NO_RESPONSE_TO_PAIN009`.

## Response

**recurrenceId** `string`

Identificador da recorrência.

**requestedAt** `string`

Data e hora do pedido, em UTC, sem `Z`.

Se a recorrência não for encontrada, a resposta é `404`.

```bash cURL theme={null}
curl --location 'https://apisandbox.delbank.com.br/baas/api/v1/pix/automatic/authorizations/RR3822485720261027B7C8D9E0F1A/cancellations' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{apiKey}}' \
--header 'IdempotencyKey: {{$guid}}' \
--data '{
    "cancellationReason": "REQUESTED_BY_PAYEE"
}'
```

```json 200 theme={null}
{
    "recurrenceId": "RR3822485720261027B7C8D9E0F1A",
    "requestedAt": "2026-10-27T15:02:44.120"
}
```


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