{
    "object": "event",
    "type": "invoice.updated",
    "pending_webhooks": 1,
    "created": 1560063585,
    "livemode": false,
    "request": {
        "idempotency_key": null,
        "id": "req_wRT7KgbXvlQMfC"
    },
    "data": {
        "previous_attributes": {
            "status": "draft",
            "due_date": null,
            "invoice_pdf": null,
            "status_transitions": {
                "finalized_at": null
            },
            "number": "B7C8CA7D-DRAFT",
            "ending_balance": null,
            "payment_intent": null,
            "hosted_invoice_url": null
        },
        "object": {
            "default_tax_rates": [],
            "livemode": false,
            "tax": null,
            "number": "B7C8CA7D-0001",
            "attempt_count": 0,
            "currency": "usd",
            "payment_intent": "pi_1EjL0HHuGUuNWDDZ6TdrsWzQ",
            "default_payment_method": null,
            "total": 3000,
            "account_name": null,
            "custom_fields": [
                {
                    "name": "Custom field",
                    "value": "test value"
                }
            ],
            "customer_name": "Test Customer",
            "customer_shipping": null,
            "customer_tax_ids": [],
            "invoice_pdf": "https://pay.stripe.com/invoice/invst_444pftvnD8HFMJCXHn6TQKTDMc/pdf",
            "billing": "send_invoice",
            "footer": "Some random help and legal information.",
            "description": "Thank you for your business!",
            "customer_phone": null,
            "id": "in_1EjKuzHuGUuNWDDZmFUP3FxU",
            "webhooks_delivered_at": 1560063257,
            "charge": null,
            "period_end": 1560063257,
            "discount": null,
            "customer_tax_exempt": "none",
            "post_payment_credit_notes_amount": 0,
            "metadata": {},
            "status": "open",
            "due_date": 1562655586,
            "pre_payment_credit_notes_amount": 0,
            "customer_email": "test_customer@test.gmail.com",
            "collection_method": "send_invoice",
            "statement_descriptor": null,
            "attempted": false,
            "amount_paid": 0,
            "object": "invoice",
            "amount_remaining": 3000,
            "paid": false,
            "customer_address": null,
            "auto_advance": true,
            "ending_balance": 0,
            "billing_reason": "manual",
            "hosted_invoice_url": "https://pay.stripe.com/invoice/invst_444pftvnD8HFMJCXHn6TQKTDMc",
            "period_start": 1560063257,
            "subtotal": 3000,
            "tax_percent": null,
            "subscription": null,
            "customer": "cus_FDmT2sIGjFskP2",
            "total_tax_amounts": [],
            "application_fee_amount": null,
            "next_payment_attempt": null,
            "created": 1560063257,
            "status_transitions": {
                "voided_at": null,
                "finalized_at": 1560063585,
                "marked_uncollectible_at": null,
                "paid_at": null
            },
            "default_source": null,
            "lines": {
                "has_more": false,
                "total_count": 2,
                "object": "list",
                "data": [
                    {
                        "discountable": true,
                        "livemode": false,
                        "description": "Watermelons",
                        "subscription": null,
                        "proration": false,
                        "object": "line_item",
                        "period": {
                            "start": 1560063400,
                            "end": 1560063400
                        },
                        "tax_rates": [],
                        "currency": "usd",
                        "amount": 1000,
                        "invoice_item": "ii_1EjKxIHuGUuNWDDZhiVHinLl",
                        "tax_amounts": [],
                        "plan": null,
                        "quantity": 2,
                        "type": "invoiceitem",
                        "id": "ii_1EjKxIHuGUuNWDDZhiVHinLl",
                        "metadata": {}
                    },
                    {
                        "discountable": true,
                        "livemode": false,
                        "description": "Apples",
                        "subscription": null,
                        "proration": false,
                        "object": "line_item",
                        "period": {
                            "start": 1560063257,
                            "end": 1560063257
                        },
                        "tax_rates": [],
                        "currency": "usd",
                        "amount": 2000,
                        "invoice_item": "ii_1EjKuzHuGUuNWDDZKrPUb2KA",
                        "tax_amounts": [],
                        "plan": null,
                        "quantity": 10,
                        "type": "invoiceitem",
                        "id": "ii_1EjKuzHuGUuNWDDZKrPUb2KA",
                        "metadata": {}
                    }
                ],
                "url": "/v1/invoices/in_1EjKuzHuGUuNWDDZmFUP3FxU/lines"
            },
            "account_country": "US",
            "starting_balance": 0,
            "amount_due": 3000,
            "receipt_number": null
        }
    },
    "id": "evt_1EjL0IHuGUuNWDDZCFLOYrNv",
    "api_version": "2019-03-14"
}
