Created
April 18, 2019 11:13
-
-
Save jumasheff/120a644e547cff3440947035618a5730 to your computer and use it in GitHub Desktop.
`invoice.payment_failed` payload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "created": 1326853478, | |
| "livemode": false, | |
| "id": "evt_00000000000000", | |
| "type": "invoice.payment_failed", | |
| "object": "event", | |
| "request": null, | |
| "pending_webhooks": 1, | |
| "api_version": "2017-04-06", | |
| "data": { | |
| "object": { | |
| "id": "in_00000000000000", | |
| "object": "invoice", | |
| "amount_due": 199200, | |
| "amount_paid": 0, | |
| "amount_remaining": 199200, | |
| "application_fee": null, | |
| "attempt_count": 4, | |
| "attempted": true, | |
| "auto_advance": false, | |
| "billing": "charge_automatically", | |
| "billing_reason": null, | |
| "charge": "ch_00000000000000", | |
| "closed": false, | |
| "created": 1489532021, | |
| "currency": "usd", | |
| "custom_fields": null, | |
| "customer": "cus_00000000000000", | |
| "date": 1489532021, | |
| "default_payment_method": null, | |
| "default_source": null, | |
| "description": null, | |
| "discount": null, | |
| "due_date": null, | |
| "ending_balance": 0, | |
| "finalized_at": 1489535686, | |
| "footer": null, | |
| "forgiven": false, | |
| "hosted_invoice_url": "https://pay.stripe.com/invoice/invst_cNMDDNKRoRrx0ylpq5kqHRm7aA", | |
| "invoice_pdf": "https://pay.stripe.com/invoice/invst_cNMDDNKRoRrx0ylpq5kqHRm7aA/pdf", | |
| "lines": { | |
| "data": [ | |
| { | |
| "id": "sub_00000000000000", | |
| "object": "line_item", | |
| "amount": 199200, | |
| "currency": "usd", | |
| "description": null, | |
| "discountable": true, | |
| "livemode": false, | |
| "metadata": { | |
| }, | |
| "period": { | |
| "end": 1592669928, | |
| "start": 1561047528 | |
| }, | |
| "plan": { | |
| "id": "design_00000000000000", | |
| "object": "plan", | |
| "active": true, | |
| "aggregate_usage": null, | |
| "amount": 199200, | |
| "billing_scheme": "per_unit", | |
| "created": 1455909052, | |
| "currency": "usd", | |
| "interval": "year", | |
| "interval_count": 1, | |
| "livemode": false, | |
| "metadata": { | |
| }, | |
| "name": "Yearly Payments", | |
| "nickname": null, | |
| "product": "prod_00000000000000", | |
| "statement_descriptor": null, | |
| "tiers": null, | |
| "tiers_mode": null, | |
| "transform_usage": null, | |
| "trial_period_days": null, | |
| "usage_type": "licensed" | |
| }, | |
| "proration": false, | |
| "quantity": 1, | |
| "subscription": null, | |
| "subscription_item": "si_00000000000000", | |
| "type": "subscription" | |
| } | |
| ], | |
| "has_more": false, | |
| "object": "list", | |
| "url": "/v1/invoices/in_19xOWPHSXXGBOz0EtkCgMK2M/lines" | |
| }, | |
| "livemode": false, | |
| "metadata": { | |
| }, | |
| "next_payment_attempt": null, | |
| "number": "8FD121C-0001", | |
| "paid": false, | |
| "payment_intent": "pi_00000000000000", | |
| "period_end": 1489531940, | |
| "period_start": 1457995940, | |
| "receipt_number": null, | |
| "starting_balance": 0, | |
| "statement_descriptor": null, | |
| "status": "open", | |
| "status_transitions": { | |
| "finalized_at": 1489535686, | |
| "marked_uncollectible_at": null, | |
| "paid_at": null, | |
| "voided_at": null | |
| }, | |
| "subscription": "sub_00000000000000", | |
| "subtotal": 199200, | |
| "tax": null, | |
| "tax_percent": null, | |
| "total": 199200, | |
| "webhooks_delivered_at": 1489532049 | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment