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

# Finalizar uma fatura

> Finalizar uma fatura.

Finaliza um rascunho após a revisão. Congela os itens, termos e dados atuais do cliente, aplica o crédito disponível e devolve a invoice completa com link público. Se não houver valor a cobrar, fica `paid`, sem criar tentativa de pagamento.

Repetir a finalização de uma invoice `open` ou `paid` não consome crédito nem cria outro pagamento ou evento. Uma invoice `void` ou `uncollectible` retorna `409`.

Antes de finalizar um rascunho avulso, corrija um vencimento que já passou. Uma falha preserva o rascunho, sem reservar número ou crédito. A entrega segue o valor de `delivery` salvo na fatura.

**id** `string` *required*

ID da invoice (`inv_*`).

```json Response 200 theme={"theme":"css-variables"}
{
  "id": "inv_ztXkaV1WLnrmCafN",
  "object": "invoice",
  "affiliates": [],
  "allow_late_payment": true,
  "amount_credit_balance_applied": 0,
  "amount_discount": 0,
  "amount_due": 12990,
  "amount_due_now": 12990,
  "amount_paid": 0,
  "amount_remaining": 12990,
  "amount_subtotal": 12990,
  "amount_tax": 0,
  "amount_total": 12990,
  "attempt_count": 0,
  "billing_reason": "manual",
  "collection_method": "send_invoice",
  "created_at": "2026-05-19T18:00:00Z",
  "currency": "brl",
  "customer": "cus_9KaTnfYPTCwvFLAd",
  "customer_billing_address": {
    "city": "São Paulo",
    "country": "BR",
    "line1": "Av. Paulista, 1000",
    "line2": "Conjunto 101",
    "postal_code": "01310-100",
    "state": "SP"
  },
  "customer_billing_name": "Cliente Exemplo",
  "customer_document": "12345678901",
  "customer_document_type": "cpf",
  "customer_email": "nome@email.com",
  "customer_name": "Cliente Exemplo",
  "default_payment_method": null,
  "description": "Mensalidade de junho",
  "due_date": "2026-06-10T12:00:00Z",
  "ending_balance": 0,
  "finalized_at": "2026-05-19T18:00:00Z",
  "hosted_invoice_url": "https://billing.chargefy.io/invoice/ilink_8Pz6wKf3tVn2Qa9LmXr4Bc7D",
  "interest": {
    "percent_per_month": 1
  },
  "interest_amount": null,
  "invoice_pdf_url": "https://billing.chargefy.io/invoice/inv_ztXkaV1WLnrmCafN.pdf",
  "late_fee": {
    "type": "percentage",
    "value": 2
  },
  "late_fee_amount": null,
  "latest_charge": null,
  "line_items": [
    {
      "id": "ili_GyVv5CghtCEFZTQj",
      "object": "invoice_line_item",
      "amount_discount": 0,
      "amount_subtotal": 12990,
      "amount_tax": 0,
      "amount_total": 12990,
      "currency": "brl",
      "description": "Mensalidade de junho",
      "discountable": true,
      "metadata": {},
      "period_end": null,
      "period_start": null,
      "position": 0,
      "price": null,
      "price_data": {
        "currency": "brl",
        "unit_amount": 12990
      },
      "product": null,
      "proration": false,
      "proration_details": {},
      "quantity": 1,
      "recurring_interval": null,
      "recurring_interval_count": null,
      "subscription_item": null,
      "unit_amount": 12990
    }
  ],
  "livemode": true,
  "marked_uncollectible_at": null,
  "metadata": {},
  "next_payment_attempt": null,
  "number": "K7M2-0001",
  "paid_at": null,
  "paid_out_of_band": false,
  "payment_intent": "pi_9kQ2mVx7LpZ4TfRb",
  "payment_method_types": [
    "pix",
    "boleto",
    "credit_card"
  ],
  "payment_settings": {
    "payment_method_options": null
  },
  "starting_balance": 0,
  "statement_descriptor": "MENSALIDADE",
  "status": "open",
  "subscription": null,
  "surcharge_amount": 0,
  "updated_at": "2026-05-19T18:00:00Z",
  "voided_at": null
}
```


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