Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.chargefy.io/llms.txt

Use this file to discover all available pages before exploring further.

Quando dispara

  • Parceiro chama POST /v1/checkout-sessions (API direta)
  • Comprador clica num payment link e a Chargefy materializa uma session
  • Admin cria uma session pelo dashboard

Ação esperada

  • Salvar data.id e data.metadata pra reconciliação
  • Não marcar pedido como pago — ainda nem foi confirmado pelo comprador

Envelope

{
  "type": "checkout.session.created",
  "id": "evt_8h3K2pQ9mN4tR7vL",
  "created_at": "2026-05-03T18:31:00Z",
  "data": {
    "id": "id_111",
    "client_secret": "9f4c2a1b8e3d7f06a5c4b2e1d8f3a6b09c5e2a1f4b7d8c3e6a9f1d2c4b5e8a0f",
    "url": "https://pay.chargefy.io/session/9f4c2a1b8e3d7f06a5c4b2e1d8f3a6b09c5e2a1f4b7d8c3e6a9f1d2c4b5e8a0f",
    "status": "open",
    "mode": "payment",
    "payment_status": "unpaid",
    "currency": "brl",
    "amount_subtotal": 19990,
    "amount_discount": 0,
    "amount_tax": 0,
    "amount_total": 19990,
    "organization_id": "id_222",
    "customer_id": null,
    "customer_email": null,
    "customer_name": null,
    "customer_tax_id": null,
    "success_url": "https://meusite.com/sucesso",
    "cancel_url": null,
    "allow_discount_codes": true,
    "require_billing_address": false,
    "no_fees_installments": false,
    "discount_id": null,
    "livemode": true,
    "payment_method_types": ["credit_card", "pix", "boleto"],
    "metadata": { "order_id": "ord_123" },
    "expires_at": "2026-05-04T18:31:00Z",
    "created_at": "2026-05-03T18:31:00Z",
    "line_items": [ /* ... */ ],
    "payment_data": null
  }
}
data é o DTO completo de PublicCheckoutSession — mesmo shape em todos os eventos checkout.session.*.