Created
April 8, 2022 14:16
-
-
Save pedro-vasconcelos/ee337fd7e7c2b1e29bd4b27315dc265d to your computer and use it in GitHub Desktop.
stripe_event: invoice.updated
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
| { | |
| "id": "evt_1KmIGOLueXt1u2tdEnLqTC0R", | |
| "object": "event", | |
| "api_version": "2020-08-27", | |
| "created": 1649426050, | |
| "data": { | |
| "object": { | |
| "id": "in_1KmIGJLueXt1u2tdImwBUcnx", | |
| "object": "invoice", | |
| "account_country": "BG", | |
| "account_name": "Hotspotty LTD", | |
| "account_tax_ids": null, | |
| "amount_due": 4420, | |
| "amount_paid": 4420, | |
| "amount_remaining": 0, | |
| "application_fee_amount": null, | |
| "attempt_count": 1, | |
| "attempted": true, | |
| "auto_advance": false, | |
| "automatic_tax": { | |
| "enabled": true, | |
| "status": "complete" | |
| }, | |
| "billing_reason": "subscription_create", | |
| "charge": "ch_3KmIGJLueXt1u2td0UmZZ6kU", | |
| "collection_method": "charge_automatically", | |
| "created": 1649426047, | |
| "currency": "usd", | |
| "custom_fields": null, | |
| "customer": "cus_LTEjLB1kgFBXwA", | |
| "customer_address": { | |
| "city": "Hadleychester", | |
| "country": "IE", | |
| "line1": "854 Davis Mill", | |
| "line2": "6380 Manuela Springs", | |
| "postal_code": "80693", | |
| "state": null | |
| }, | |
| "customer_email": "[email protected]", | |
| "customer_name": "Business", | |
| "customer_phone": null, | |
| "customer_shipping": null, | |
| "customer_tax_exempt": "reverse", | |
| "customer_tax_ids": [ | |
| { | |
| "type": "eu_vat", | |
| "value": "IE3333333UH" | |
| } | |
| ], | |
| "default_payment_method": null, | |
| "default_source": null, | |
| "default_tax_rates": [], | |
| "description": null, | |
| "discount": { | |
| "id": "di_1KmIGILueXt1u2tdEPZGNWVb", | |
| "object": "discount", | |
| "checkout_session": null, | |
| "coupon": { | |
| "id": "USD30_RTKO7", | |
| "object": "coupon", | |
| "amount_off": 3000, | |
| "created": 1649342473, | |
| "currency": "usd", | |
| "duration": "once", | |
| "duration_in_months": null, | |
| "livemode": false, | |
| "max_redemptions": null, | |
| "metadata": [], | |
| "name": "$30 Off - USD30_RTKO7", | |
| "percent_off": null, | |
| "redeem_by": null, | |
| "times_redeemed": 1, | |
| "valid": true | |
| }, | |
| "customer": "cus_LTEjLB1kgFBXwA", | |
| "end": null, | |
| "invoice": null, | |
| "invoice_item": null, | |
| "promotion_code": "promo_1KlwamLueXt1u2tdn9cMFvRE", | |
| "start": 1649426046, | |
| "subscription": "sub_1KmIGILueXt1u2td2kqWnipR" | |
| }, | |
| "discounts": [ | |
| "di_1KmIGILueXt1u2tdEPZGNWVb" | |
| ], | |
| "due_date": null, | |
| "ending_balance": 0, | |
| "footer": null, | |
| "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1JoEuhLueXt1u2td/test_YWNjdF8xSm9FdWhMdWVYdDF1MnRkLF9MVEVqTElnc1A5R2NRTDRTdW5yRUdoaTRsMldWeTdkLDM5OTY2ODUy0200F83sPNvh?s=ap", | |
| "invoice_pdf": "https://pay.stripe.com/invoice/acct_1JoEuhLueXt1u2td/test_YWNjdF8xSm9FdWhMdWVYdDF1MnRkLF9MVEVqTElnc1A5R2NRTDRTdW5yRUdoaTRsMldWeTdkLDM5OTY2ODUy0200F83sPNvh/pdf?s=ap", | |
| "last_finalization_error": null, | |
| "lines": { | |
| "object": "list", | |
| "data": [ | |
| { | |
| "id": "il_1KmIGJLueXt1u2tdER9HET6B", | |
| "object": "line_item", | |
| "amount": 2500, | |
| "currency": "usd", | |
| "description": "1 × Business (at $25.00 / month)", | |
| "discount_amounts": [ | |
| { | |
| "amount": 1010, | |
| "discount": "di_1KmIGILueXt1u2tdEPZGNWVb" | |
| } | |
| ], | |
| "discountable": true, | |
| "discounts": [], | |
| "livemode": false, | |
| "metadata": [], | |
| "period": { | |
| "end": 1652018046, | |
| "start": 1649426046 | |
| }, | |
| "plan": { | |
| "id": "price_1KlLdOLueXt1u2tdNzu89pWW", | |
| "object": "plan", | |
| "active": true, | |
| "aggregate_usage": null, | |
| "amount": 2500, | |
| "amount_decimal": "2500", | |
| "billing_scheme": "per_unit", | |
| "created": 1649200682, | |
| "currency": "usd", | |
| "interval": "month", | |
| "interval_count": 1, | |
| "livemode": false, | |
| "metadata": [], | |
| "nickname": "Business Feature Plan", | |
| "product": "prod_LSG9VwY3WKLbnq", | |
| "tiers_mode": null, | |
| "transform_usage": null, | |
| "trial_period_days": null, | |
| "usage_type": "licensed" | |
| }, | |
| "price": { | |
| "id": "price_1KlLdOLueXt1u2tdNzu89pWW", | |
| "object": "price", | |
| "active": true, | |
| "billing_scheme": "per_unit", | |
| "created": 1649200682, | |
| "currency": "usd", | |
| "livemode": false, | |
| "lookup_key": null, | |
| "metadata": [], | |
| "nickname": "Business Feature Plan", | |
| "product": "prod_LSG9VwY3WKLbnq", | |
| "recurring": { | |
| "aggregate_usage": null, | |
| "interval": "month", | |
| "interval_count": 1, | |
| "trial_period_days": null, | |
| "usage_type": "licensed" | |
| }, | |
| "tax_behavior": "exclusive", | |
| "tiers_mode": null, | |
| "transform_quantity": null, | |
| "type": "recurring", | |
| "unit_amount": 2500, | |
| "unit_amount_decimal": "2500" | |
| }, | |
| "proration": false, | |
| "proration_details": { | |
| "credited_items": null | |
| }, | |
| "quantity": 1, | |
| "subscription": "sub_1KmIGILueXt1u2td2kqWnipR", | |
| "subscription_item": "si_LTEjxYiZw6zJT6", | |
| "tax_amounts": [ | |
| { | |
| "amount": 0, | |
| "inclusive": false, | |
| "tax_rate": "txr_1KmIBzLueXt1u2tdaR28CLL2" | |
| } | |
| ], | |
| "tax_rates": [], | |
| "type": "subscription" | |
| }, | |
| { | |
| "id": "il_1KmIGJLueXt1u2tdVxzA8U4I", | |
| "object": "line_item", | |
| "amount": 1800, | |
| "currency": "usd", | |
| "description": "60 × Hotspots (Tier 3 at $0.30 / month)", | |
| "discount_amounts": [ | |
| { | |
| "amount": 728, | |
| "discount": "di_1KmIGILueXt1u2tdEPZGNWVb" | |
| } | |
| ], | |
| "discountable": true, | |
| "discounts": [], | |
| "livemode": false, | |
| "metadata": [], | |
| "period": { | |
| "end": 1652018046, | |
| "start": 1649426046 | |
| }, | |
| "plan": { | |
| "id": "price_1KlLdPLueXt1u2tdXD73qduR", | |
| "object": "plan", | |
| "active": true, | |
| "aggregate_usage": null, | |
| "amount": null, | |
| "amount_decimal": null, | |
| "billing_scheme": "tiered", | |
| "created": 1649200683, | |
| "currency": "usd", | |
| "interval": "month", | |
| "interval_count": 1, | |
| "livemode": false, | |
| "metadata": [], | |
| "nickname": "Monthly Plan", | |
| "product": "prod_LSG9zz7NuiNfVH", | |
| "tiers_mode": "volume", | |
| "transform_usage": null, | |
| "trial_period_days": null, | |
| "usage_type": "licensed" | |
| }, | |
| "price": { | |
| "id": "price_1KlLdPLueXt1u2tdXD73qduR", | |
| "object": "price", | |
| "active": true, | |
| "billing_scheme": "tiered", | |
| "created": 1649200683, | |
| "currency": "usd", | |
| "livemode": false, | |
| "lookup_key": null, | |
| "metadata": [], | |
| "nickname": "Monthly Plan", | |
| "product": "prod_LSG9zz7NuiNfVH", | |
| "recurring": { | |
| "aggregate_usage": null, | |
| "interval": "month", | |
| "interval_count": 1, | |
| "trial_period_days": null, | |
| "usage_type": "licensed" | |
| }, | |
| "tax_behavior": "exclusive", | |
| "tiers_mode": "volume", | |
| "transform_quantity": null, | |
| "type": "recurring", | |
| "unit_amount": null, | |
| "unit_amount_decimal": null | |
| }, | |
| "proration": false, | |
| "proration_details": { | |
| "credited_items": null | |
| }, | |
| "quantity": 60, | |
| "subscription": "sub_1KmIGILueXt1u2td2kqWnipR", | |
| "subscription_item": "si_LTEjxGm7xncJaL", | |
| "tax_amounts": [ | |
| { | |
| "amount": 0, | |
| "inclusive": false, | |
| "tax_rate": "txr_1KmIBzLueXt1u2tdaR28CLL2" | |
| } | |
| ], | |
| "tax_rates": [], | |
| "type": "subscription" | |
| }, | |
| { | |
| "id": "il_1KmIGJLueXt1u2tdZVcpBobk", | |
| "object": "line_item", | |
| "amount": 3120, | |
| "currency": "usd", | |
| "description": "156 × Super Simulations (Tier 4 at $0.20 / month)", | |
| "discount_amounts": [ | |
| { | |
| "amount": 1262, | |
| "discount": "di_1KmIGILueXt1u2tdEPZGNWVb" | |
| } | |
| ], | |
| "discountable": true, | |
| "discounts": [], | |
| "livemode": false, | |
| "metadata": [], | |
| "period": { | |
| "end": 1652018046, | |
| "start": 1649426046 | |
| }, | |
| "plan": { | |
| "id": "price_1KlLdQLueXt1u2tdGUWqIXUf", | |
| "object": "plan", | |
| "active": true, | |
| "aggregate_usage": null, | |
| "amount": null, | |
| "amount_decimal": null, | |
| "billing_scheme": "tiered", | |
| "created": 1649200684, | |
| "currency": "usd", | |
| "interval": "month", | |
| "interval_count": 1, | |
| "livemode": false, | |
| "metadata": [], | |
| "nickname": "Monthly Plan", | |
| "product": "prod_LSG9r7UIDjZUdp", | |
| "tiers_mode": "volume", | |
| "transform_usage": null, | |
| "trial_period_days": null, | |
| "usage_type": "licensed" | |
| }, | |
| "price": { | |
| "id": "price_1KlLdQLueXt1u2tdGUWqIXUf", | |
| "object": "price", | |
| "active": true, | |
| "billing_scheme": "tiered", | |
| "created": 1649200684, | |
| "currency": "usd", | |
| "livemode": false, | |
| "lookup_key": null, | |
| "metadata": [], | |
| "nickname": "Monthly Plan", | |
| "product": "prod_LSG9r7UIDjZUdp", | |
| "recurring": { | |
| "aggregate_usage": null, | |
| "interval": "month", | |
| "interval_count": 1, | |
| "trial_period_days": null, | |
| "usage_type": "licensed" | |
| }, | |
| "tax_behavior": "exclusive", | |
| "tiers_mode": "volume", | |
| "transform_quantity": null, | |
| "type": "recurring", | |
| "unit_amount": null, | |
| "unit_amount_decimal": null | |
| }, | |
| "proration": false, | |
| "proration_details": { | |
| "credited_items": null | |
| }, | |
| "quantity": 156, | |
| "subscription": "sub_1KmIGILueXt1u2td2kqWnipR", | |
| "subscription_item": "si_LTEjFFzjOQFW7Y", | |
| "tax_amounts": [ | |
| { | |
| "amount": 0, | |
| "inclusive": false, | |
| "tax_rate": "txr_1KmIBzLueXt1u2tdaR28CLL2" | |
| } | |
| ], | |
| "tax_rates": [], | |
| "type": "subscription" | |
| } | |
| ], | |
| "has_more": false, | |
| "total_count": 3, | |
| "url": "/v1/invoices/in_1KmIGJLueXt1u2tdImwBUcnx/lines" | |
| }, | |
| "livemode": false, | |
| "metadata": [], | |
| "next_payment_attempt": null, | |
| "number": "005187F3-0707", | |
| "on_behalf_of": null, | |
| "paid": true, | |
| "paid_out_of_band": false, | |
| "payment_intent": "pi_3KmIGJLueXt1u2td0EVmUd22", | |
| "payment_settings": { | |
| "payment_method_options": null, | |
| "payment_method_types": null | |
| }, | |
| "period_end": 1649426046, | |
| "period_start": 1649426046, | |
| "post_payment_credit_notes_amount": 0, | |
| "pre_payment_credit_notes_amount": 0, | |
| "quote": null, | |
| "receipt_number": null, | |
| "starting_balance": 0, | |
| "statement_descriptor": null, | |
| "status": "paid", | |
| "status_transitions": { | |
| "finalized_at": 1649426047, | |
| "marked_uncollectible_at": null, | |
| "paid_at": 1649426050, | |
| "voided_at": null | |
| }, | |
| "subscription": "sub_1KmIGILueXt1u2td2kqWnipR", | |
| "subtotal": 7420, | |
| "tax": 0, | |
| "test_clock": null, | |
| "total": 4420, | |
| "total_discount_amounts": [ | |
| { | |
| "amount": 3000, | |
| "discount": "di_1KmIGILueXt1u2tdEPZGNWVb" | |
| } | |
| ], | |
| "total_tax_amounts": [ | |
| { | |
| "amount": 0, | |
| "inclusive": false, | |
| "tax_rate": "txr_1KmIBzLueXt1u2tdaR28CLL2" | |
| } | |
| ], | |
| "transfer_data": null, | |
| "webhooks_delivered_at": null | |
| }, | |
| "previous_attributes": { | |
| "amount_paid": 0, | |
| "amount_remaining": 4420, | |
| "attempt_count": 0, | |
| "attempted": false, | |
| "charge": null, | |
| "paid": false, | |
| "status": "open", | |
| "status_transitions": { | |
| "paid_at": null | |
| } | |
| } | |
| }, | |
| "livemode": false, | |
| "pending_webhooks": 2, | |
| "request": { | |
| "id": "req_4cQY7vsdITqrAI", | |
| "idempotency_key": "89423f9f-5025-4277-9e97-b04dc9e331b1" | |
| }, | |
| "type": "invoice.updated" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment