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

# PURCHASE_CANCELLED

> Disparado quando a tentativa de pagamento é recusada pela operadora ou banco.

Corresponde ao evento interno `order.failed`. O pedido foi criado mas o pagamento foi negado.

## Quando é disparado

* Cartão de crédito recusado (saldo insuficiente, dados inválidos, bloqueio do banco)
* Falha no processamento do pagamento

## Payload

```json theme={null}
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "order_id": 123,
  "creation_date": 1736524900000,
  "event": "PURCHASE_CANCELLED",
  "version": "2.0.0",
  "data": {
    "purchase": {
      "transaction": "abc123-uuid-do-pedido",
      "status": "CANCELLED",
      "order_date": 1736524700000,
      "approved_date": null,
      "refund_date": null,
      "full_price": {
        "value": 297.00,
        "currency_value": "BRL"
      },
      "price": {
        "value": 197.00,
        "currency_value": "BRL"
      },
      "payment": {
        "type": "CREDIT_CARD",
        "installments_number": 1
      },
      "fees": {
        "value": 0.0,
        "currency_value": "BRL"
      },
      "net_amount": {
        "value": null,
        "currency_value": "BRL"
      },
      "gateway_transaction_id": null,
      "offer": {
        "code": "abc12345",
        "name": "Oferta Principal"
      },
      "order_bump": {
        "is_order_bump": false,
        "parent_purchase_transaction": null
      },
      "tracking": {
        "source": "google",
        "utm_source": "google",
        "utm_medium": "cpc",
        "utm_campaign": "black-friday",
        "utm_content": null,
        "utm_term": null,
        "src": null,
        "sck": null
      }
    },
    "product": {
      "id": 1,
      "name": "Curso de Marketing Digital"
    },
    "buyer": {
      "name": "João Silva",
      "first_name": "João",
      "last_name": "Silva",
      "email": "joao@exemplo.com",
      "checkout_phone": "+5511999990000",
      "document": "123.456.789-00",
      "document_type": "CPF"
    },
    "order_bumps": []
  }
}
```

## Campos-chave

| Campo                    | Valor neste evento                      |
| ------------------------ | --------------------------------------- |
| `purchase.status`        | `CANCELLED`                             |
| `purchase.approved_date` | `null` — pagamento nunca foi confirmado |
| `purchase.refund_date`   | `null`                                  |

<Note>
  Use este evento em ferramentas de recuperação de vendas para acionar fluxos de retentativa ou oferecer métodos alternativos de pagamento ao comprador.
</Note>
