Created
April 7, 2022 01:01
-
-
Save pedro-vasconcelos/592f4c7e9a13219fd8331113015566c5 to your computer and use it in GitHub Desktop.
stripe_event: invoice.payment_succeeded
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_1KljbYLueXt1u2tdEhw7mthT", | |
| "object": "event", | |
| "api_version": "2020-08-27", | |
| "created": 1649292824, | |
| "data": { | |
| "object": { | |
| "id": "in_1KljU1LueXt1u2tdtymyAbiX", | |
| "object": "invoice", | |
| "account_country": "BG", | |
| "account_name": "Hotspotty LTD", | |
| "account_tax_ids": null, | |
| "amount_due": 660, | |
| "amount_paid": 660, | |
| "amount_remaining": 0, | |
| "application_fee_amount": null, | |
| "attempt_count": 1, | |
| "attempted": true, | |
| "auto_advance": false, | |
| "automatic_tax": { | |
| "enabled": true, | |
| "status": "complete" | |
| }, | |
| "billing_reason": "subscription_cycle", | |
| "charge": "ch_3KljbTLueXt1u2td04PrKzdt", | |
| "collection_method": "charge_automatically", | |
| "created": 1583193600, | |
| "currency": "usd", | |
| "custom_fields": null, | |
| "customer": "cus_LSelmlkKQAXfey", | |
| "customer_address": { | |
| "city": "West Sammie", | |
| "country": "BG", | |
| "line1": "911 Antonietta Meadow", | |
| "line2": "39667 Robel Manor", | |
| "postal_code": "09101", | |
| "state": "Virginia" | |
| }, | |
| "customer_email": "[email protected]", | |
| "customer_name": "Pedro Vasconcelos", | |
| "customer_phone": null, | |
| "customer_shipping": null, | |
| "customer_tax_exempt": "none", | |
| "customer_tax_ids": [], | |
| "default_payment_method": null, | |
| "default_source": null, | |
| "default_tax_rates": [], | |
| "description": null, | |
| "discount": null, | |
| "discounts": [], | |
| "due_date": null, | |
| "ending_balance": 0, | |
| "footer": null, | |
| "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1JoEuhLueXt1u2td/test_YWNjdF8xSm9FdWhMdWVYdDF1MnRkLF9MU2VuMXJ2WjJKUVFSZzNhSTk4NEJ1V1pkNzhINTR2LDM5ODMzNjI00200Scmf8ebN?s=ap", | |
| "invoice_pdf": "https://pay.stripe.com/invoice/acct_1JoEuhLueXt1u2td/test_YWNjdF8xSm9FdWhMdWVYdDF1MnRkLF9MU2VuMXJ2WjJKUVFSZzNhSTk4NEJ1V1pkNzhINTR2LDM5ODMzNjI00200Scmf8ebN/pdf?s=ap", | |
| "last_finalization_error": null, | |
| "lines": { | |
| "object": "list", | |
| "data": [ | |
| { | |
| "id": "il_1GIOB2LueXt1u2tdEM7jlWUL", | |
| "object": "line_item", | |
| "amount": 50, | |
| "currency": "usd", | |
| "description": "1 × Super Simulations (Tier 1 at $0.50 / month)", | |
| "discount_amounts": [], | |
| "discountable": true, | |
| "discounts": [], | |
| "livemode": false, | |
| "metadata": [], | |
| "period": { | |
| "end": 1585872000, | |
| "start": 1583193600 | |
| }, | |
| "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": 1, | |
| "subscription": "sub_1KljSYLueXt1u2tdEQEreQ5V", | |
| "subscription_item": "si_LSemYJh2TadwA6", | |
| "tax_amounts": [ | |
| { | |
| "amount": 10, | |
| "inclusive": false, | |
| "tax_rate": "txr_1KldTsLueXt1u2tdOXHnXnOy" | |
| } | |
| ], | |
| "tax_rates": [], | |
| "type": "subscription" | |
| }, | |
| { | |
| "id": "il_1GIOB2LueXt1u2tdCx4c64sl", | |
| "object": "line_item", | |
| "amount": 500, | |
| "currency": "usd", | |
| "description": "1 × Pro (at $5.00 / month)", | |
| "discount_amounts": [], | |
| "discountable": true, | |
| "discounts": [], | |
| "livemode": false, | |
| "metadata": [], | |
| "period": { | |
| "end": 1585872000, | |
| "start": 1583193600 | |
| }, | |
| "plan": { | |
| "id": "price_1KlLdNLueXt1u2td1d5EZ9nI", | |
| "object": "plan", | |
| "active": true, | |
| "aggregate_usage": null, | |
| "amount": 500, | |
| "amount_decimal": "500", | |
| "billing_scheme": "per_unit", | |
| "created": 1649200681, | |
| "currency": "usd", | |
| "interval": "month", | |
| "interval_count": 1, | |
| "livemode": false, | |
| "metadata": [], | |
| "nickname": "Pro Feature Plan", | |
| "product": "prod_LSG9xgKks2ustM", | |
| "tiers_mode": null, | |
| "transform_usage": null, | |
| "trial_period_days": null, | |
| "usage_type": "licensed" | |
| }, | |
| "price": { | |
| "id": "price_1KlLdNLueXt1u2td1d5EZ9nI", | |
| "object": "price", | |
| "active": true, | |
| "billing_scheme": "per_unit", | |
| "created": 1649200681, | |
| "currency": "usd", | |
| "livemode": false, | |
| "lookup_key": null, | |
| "metadata": [], | |
| "nickname": "Pro Feature Plan", | |
| "product": "prod_LSG9xgKks2ustM", | |
| "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": 500, | |
| "unit_amount_decimal": "500" | |
| }, | |
| "proration": false, | |
| "proration_details": { | |
| "credited_items": null | |
| }, | |
| "quantity": 1, | |
| "subscription": "sub_1KljSYLueXt1u2tdEQEreQ5V", | |
| "subscription_item": "si_LSemm7vQuoHwtU", | |
| "tax_amounts": [ | |
| { | |
| "amount": 100, | |
| "inclusive": false, | |
| "tax_rate": "txr_1KldTsLueXt1u2tdOXHnXnOy" | |
| } | |
| ], | |
| "tax_rates": [], | |
| "type": "subscription" | |
| } | |
| ], | |
| "has_more": false, | |
| "total_count": 2, | |
| "url": "/v1/invoices/in_1KljU1LueXt1u2tdtymyAbiX/lines" | |
| }, | |
| "livemode": false, | |
| "metadata": [], | |
| "next_payment_attempt": null, | |
| "number": "005187F3-0696", | |
| "on_behalf_of": null, | |
| "paid": true, | |
| "paid_out_of_band": false, | |
| "payment_intent": "pi_3KljbTLueXt1u2td03LnL1v4", | |
| "payment_settings": { | |
| "payment_method_options": null, | |
| "payment_method_types": null | |
| }, | |
| "period_end": 1583193600, | |
| "period_start": 1580688000, | |
| "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": 1583280000, | |
| "marked_uncollectible_at": null, | |
| "paid_at": 1583280000, | |
| "voided_at": null | |
| }, | |
| "subscription": "sub_1KljSYLueXt1u2tdEQEreQ5V", | |
| "subtotal": 550, | |
| "tax": 110, | |
| "test_clock": "clock_1KljLyLueXt1u2td7Aq9Yp7c", | |
| "total": 660, | |
| "total_discount_amounts": [], | |
| "total_tax_amounts": [ | |
| { | |
| "amount": 110, | |
| "inclusive": false, | |
| "tax_rate": "txr_1KldTsLueXt1u2tdOXHnXnOy" | |
| } | |
| ], | |
| "transfer_data": null, | |
| "webhooks_delivered_at": 1583193600 | |
| } | |
| }, | |
| "livemode": false, | |
| "pending_webhooks": 3, | |
| "request": { | |
| "id": null, | |
| "idempotency_key": null | |
| }, | |
| "type": "invoice.payment_succeeded" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment