Skip to main content

Documentation

Invoice Finalized Webhook

The INVOICE_FINALIZED webhook is sent when an invoice is finalized.

  • INVOICE_FINALIZED Webhook

  • {
        "id": "wh_4a03fe490c223d088f74d06403dff610",
        "data": {
            "id": "invoice_d90416fef130a820d6eba14a0289b896",
            "tax": 0,
            "type": "payment",
            "lines": [],
            "total": 2,
            "number": 0,
            "payout": null,
            "status": "open",
            "billing": "pay_automatically",
            "payment": null,
            "currency": "USD",
            "customer": "cus_e99fe1f97543ad5e8f1c74d1fde5c407",
            "discount": null,
            "due_date": 1704848034,
            "metadata": {},
            "subtotal": 2,
            "created_at": 1702256034,
            "period_end": 1702465146,
            "description": "",
            "tax_percent": 0,
            "period_start": 1702378746,
            "subscription": "sub_d33e7fca810e55e9168032a8e6240a11",
            "attempt_count": 1,
            "payout_fields": null,
            "billing_reason": "subscription_cycle",
            "days_until_due": 30,
            "payment_fields": null,
            "payment_method": "card_85d62689c888bfb0cdb0079a7ce29bf1",
            "discount_amount": 0,
            "next_payment_attempt": 1702259634,
            "statement_descriptor": "",
            "automatic_attempt_count": 0
        },
        "type": "INVOICE_FINALIZED",
        "status": "CLO",
        "created_at": 1702256285,
        "extended_timestamp": 1702256285945,
        "trigger_operation_id": "cdbbd0eb-d1a6-4996-8be7-073c8e6acb25"
    }