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

# Cancelar PIX pendente

> Cancele uma cobrança enquanto ela aguarda pagamento.

Cancela uma cobrança PIX. Requer `pix:write` e não recebe body.

<ParamField path="id" type="string" required>
  UUID público da cobrança.
</ParamField>

A cobrança só pode ser cancelada no status `waiting_payment`. Em qualquer outro estado, a API retorna `422 payment_not_cancellable`.

<ResponseExample>
  ```json theme={null}
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "store": { "id": "uuid-da-loja", "name": "Padrão" },
    "status": "cancelled",
    "amount": 19.9,
    "currency": "BRL"
  }
  ```
</ResponseExample>
