Created
April 9, 2022 17:59
-
-
Save pedro-vasconcelos/25b239d1a667b99bacd49cd78868806c to your computer and use it in GitHub Desktop.
stripe_event: customer.subscription.updated
This file contains 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_1KmiQtLueXt1u2tdrR8CT1wy", | |
"object": "event", | |
"api_version": "2020-08-27", | |
"created": 1649526646, | |
"data": { | |
"object": { | |
"id": "sub_1KmiMILueXt1u2tdRpX4m04k", | |
"object": "subscription", | |
"application_fee_percent": null, | |
"automatic_tax": { | |
"enabled": true | |
}, | |
"billing_cycle_anchor": 1649526362, | |
"billing_thresholds": null, | |
"cancel_at": null, | |
"cancel_at_period_end": false, | |
"canceled_at": null, | |
"collection_method": "charge_automatically", | |
"created": 1649526362, | |
"current_period_end": 1652118362, | |
"current_period_start": 1649526362, | |
"customer": "cus_LTfh1UFFn5ZxFf", | |
"days_until_due": null, | |
"default_payment_method": "pm_1KmiMHLueXt1u2tdEvtXCjLK", | |
"default_source": null, | |
"default_tax_rates": [], | |
"discount": null, | |
"ended_at": null, | |
"items": { | |
"object": "list", | |
"data": [ | |
{ | |
"id": "si_LTfhLFWyK3xU8C", | |
"object": "subscription_item", | |
"billing_thresholds": null, | |
"created": 1649526362, | |
"metadata": [], | |
"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" | |
}, | |
"quantity": 1, | |
"subscription": "sub_1KmiMILueXt1u2tdRpX4m04k", | |
"tax_rates": [] | |
}, | |
{ | |
"id": "si_LTfh6pBUPrHh3C", | |
"object": "subscription_item", | |
"billing_thresholds": null, | |
"created": 1649526362, | |
"metadata": [], | |
"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 | |
}, | |
"quantity": 25, | |
"subscription": "sub_1KmiMILueXt1u2tdRpX4m04k", | |
"tax_rates": [] | |
}, | |
{ | |
"id": "si_LTfhTEc3IOydya", | |
"object": "subscription_item", | |
"billing_thresholds": null, | |
"created": 1649526362, | |
"metadata": [], | |
"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 | |
}, | |
"quantity": 19, | |
"subscription": "sub_1KmiMILueXt1u2tdRpX4m04k", | |
"tax_rates": [] | |
} | |
], | |
"has_more": false, | |
"total_count": 3, | |
"url": "/v1/subscription_items?subscription=sub_1KmiMILueXt1u2tdRpX4m04k" | |
}, | |
"latest_invoice": "in_1KmiQqLueXt1u2tdLbPbN3AN", | |
"livemode": false, | |
"metadata": [], | |
"next_pending_invoice_item_invoice": null, | |
"pause_collection": null, | |
"payment_settings": { | |
"payment_method_options": null, | |
"payment_method_types": null | |
}, | |
"pending_invoice_item_interval": null, | |
"pending_setup_intent": null, | |
"pending_update": null, | |
"plan": null, | |
"quantity": null, | |
"schedule": null, | |
"start_date": 1649526362, | |
"status": "active", | |
"test_clock": null, | |
"transfer_data": null, | |
"trial_end": null, | |
"trial_start": null | |
}, | |
"previous_attributes": { | |
"items": { | |
"data": [ | |
{ | |
"id": "si_LTfhLFWyK3xU8C", | |
"object": "subscription_item", | |
"billing_thresholds": null, | |
"created": 1649526362, | |
"metadata": [], | |
"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" | |
}, | |
"quantity": 1, | |
"subscription": "sub_1KmiMILueXt1u2tdRpX4m04k", | |
"tax_rates": [] | |
}, | |
{ | |
"id": "si_LTfh6pBUPrHh3C", | |
"object": "subscription_item", | |
"billing_thresholds": null, | |
"created": 1649526362, | |
"metadata": [], | |
"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 | |
}, | |
"quantity": 20, | |
"subscription": "sub_1KmiMILueXt1u2tdRpX4m04k", | |
"tax_rates": [] | |
}, | |
{ | |
"id": "si_LTfhTEc3IOydya", | |
"object": "subscription_item", | |
"billing_thresholds": null, | |
"created": 1649526362, | |
"metadata": [], | |
"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 | |
}, | |
"quantity": 19, | |
"subscription": "sub_1KmiMILueXt1u2tdRpX4m04k", | |
"tax_rates": [] | |
} | |
] | |
}, | |
"latest_invoice": "in_1KmiMILueXt1u2tdrxWy48Hl" | |
} | |
}, | |
"livemode": false, | |
"pending_webhooks": 2, | |
"request": { | |
"id": "req_0iLraXDCUbJd8k", | |
"idempotency_key": "0111ed45-7b4f-46d0-887c-d8755893e691" | |
}, | |
"type": "customer.subscription.updated" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment