Skip to main content

Documentation

Invoice Created Webhook

The INVOICE_CREATED webhook is sent when an invoice is created.

  • INVOICE_CREATED Webhook

  • {
        "id": "wh_66e84017f7f098cf032318b16bf4f4ef",
        "data": {
            "id": "invoice_67debdcfd6f4ffde1a9a9ebbd16cf25b",
            "tax": 0,
            "type": "payment",
            "lines": [],
            "total": 30,
            "payout": null,
            "status": "draft",
            "billing": "pay_automatically",
            "payment": null,
            "currency": "USD",
            "customer": "cus_b24574372d44f1ae3b6778ef3cbd1a3b",
            "discount": null,
            "due_date": 1705107682,
            "metadata": {},
            "subtotal": 30,
            "created_at": 1702515682,
            "period_end": 1705239597,
            "description": "",
            "tax_percent": 0,
            "period_start": 1702561197,
            "subscription": "sub_74b79f2bf8ecbbc03b155c043842ec70",
            "attempt_count": 0,
            "payout_fields": null,
            "billing_reason": "subscription_cycle",
            "days_until_due": 30,
            "payment_fields": null,
            "payment_method": "card_ce59a4f6bf7b98ba031bfc09367ae6d5",
            "discount_amount": 0,
            "next_payment_attempt": 1702515682,
            "statement_descriptor": "",
            "automatic_attempt_count": 0
        },
        "type": "INVOICE_CREATED",
        "status": "NEW",
        "created_at": 1702515723,
        "extended_timestamp": 1702515723936,
        "trigger_operation_id": "9b6f5cd8-ece8-4c38-a451-d34eac2322d3"
    }