> ## 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_EXPIRED

> Disparado quando o prazo de pagamento vence — PIX ou boleto não pago dentro do período.

Corresponde ao evento interno `order.expired`. O comprador gerou um PIX ou boleto mas não pagou dentro do prazo.

## Quando é disparado

* QR Code PIX expirou sem pagamento
* Boleto bancário venceu sem compensação

## Payload

```json theme={null}
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "order_id": 123,
  "creation_date": 1736611200000,
  "event": "PURCHASE_EXPIRED",
  "version": "2.0.0",
  "data": {
    "purchase": {
      "transaction": "abc123-uuid-do-pedido",
      "status": "EXPIRED",
      "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": "PIX",
        "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`        | `EXPIRED`                           |
| `purchase.approved_date` | `null` — pagamento nunca confirmado |
| `purchase.refund_date`   | `null`                              |
| `purchase.payment.type`  | Geralmente `PIX` ou `BILLET`        |
