REQ: { "id": "evt_1Pr9zrFUCobZzZgnzrq67cqE", "object": "event", "api_version": "2020-08-27", "created": 1724467595, "data": { "object": { "id": "sub_1OGrOSFUCobZzZgnSgEPYgHK", "object": "subscription", "application": null, "application_fee_percent": null, "automatic_tax": { "enabled": false, "liability": null }, "billing_cycle_anchor": 1701039940, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": 1732662340, "cancel_at_period_end": true, "canceled_at": 1724467595, "cancellation_details": { "comment": null, "feedback": null, "reason": "cancellation_requested" }, "collection_method": "charge_automatically", "created": 1701039940, "currency": "usd", "current_period_end": 1732662340, "current_period_start": 1701039940, "customer": "cus_P51RpJu7GtzoxO", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [ ], "description": null, "discount": null, "discounts": [ ], "ended_at": null, "invoice_settings": { "account_tax_ids": null, "issuer": { "type": "self" } }, "items": { "object": "list", "data": [ { "id": "si_P51RWfkWmKDdgA", "object": "subscription_item", "billing_thresholds": null, "created": 1701039941, "discounts": [ ], "metadata": { }, "plan": { "id": "price_1Nd19YFUCobZzZgndoYXbKsk", "object": "plan", "active": true, "aggregate_usage": null, "amount": 6540, "amount_decimal": "6540", "billing_scheme": "per_unit", "created": 1691544336, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": true, "metadata": { }, "meter": null, "nickname": null, "product": "prod_NMAkRQCPD8LZLw", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { "id": "price_1Nd19YFUCobZzZgndoYXbKsk", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1691544336, "currency": "usd", "custom_unit_amount": null, "livemode": true, "lookup_key": null, "metadata": { }, "nickname": null, "product": "prod_NMAkRQCPD8LZLw", "recurring": { "aggregate_usage": null, "interval": "year", "interval_count": 1, "meter": null, "trial_period_days": null, "usage_type": "licensed" }, "tax_behavior": "exclusive", "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 6540, "unit_amount_decimal": "6540" }, "quantity": 1, "subscription": "sub_1OGrOSFUCobZzZgnSgEPYgHK", "tax_rates": [ ] } ], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_1OGrOSFUCobZzZgnSgEPYgHK" }, "latest_invoice": "in_1OGrOSFUCobZzZgn5qvObrDm", "livemode": true, "metadata": { "tr_iid": "discount", "tr_cid": "asrstr2400" }, "next_pending_invoice_item_invoice": null, "on_behalf_of": null, "pause_collection": { "behavior": "void", "resumes_at": null }, "payment_settings": { "payment_method_options": null, "payment_method_types": [ "card" ], "save_default_payment_method": "off" }, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": { "id": "price_1Nd19YFUCobZzZgndoYXbKsk", "object": "plan", "active": true, "aggregate_usage": null, "amount": 6540, "amount_decimal": "6540", "billing_scheme": "per_unit", "created": 1691544336, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": true, "metadata": { }, "meter": null, "nickname": null, "product": "prod_NMAkRQCPD8LZLw", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "quantity": 1, "schedule": null, "start_date": 1701039940, "status": "active", "test_clock": null, "transfer_data": null, "trial_end": null, "trial_settings": { "end_behavior": { "missing_payment_method": "create_invoice" } }, "trial_start": null }, "previous_attributes": { "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "cancellation_details": { "reason": null } } }, "livemode": true, "pending_webhooks": 1, "request": { "id": "req_GTzXffWPEkDaMe", "idempotency_key": "8f5fc4b1-c520-4b4c-b176-741de3207ee3" }, "type": "customer.subscription.updated" } REQ: { "id": "evt_1Pr9zvFUCobZzZgnqqR75i9D", "object": "event", "api_version": "2020-08-27", "created": 1724467599, "data": { "object": { "id": "sub_1OGrOSFUCobZzZgnSgEPYgHK", "object": "subscription", "application": null, "application_fee_percent": null, "automatic_tax": { "enabled": false, "liability": null }, "billing_cycle_anchor": 1701039940, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1724467595, "cancellation_details": { "comment": null, "feedback": null, "reason": "cancellation_requested" }, "collection_method": "charge_automatically", "created": 1701039940, "currency": "usd", "current_period_end": 1732662340, "current_period_start": 1701039940, "customer": "cus_P51RpJu7GtzoxO", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [ ], "description": null, "discount": null, "discounts": [ ], "ended_at": 1724467599, "invoice_settings": { "account_tax_ids": null, "issuer": { "type": "self" } }, "items": { "object": "list", "data": [ { "id": "si_P51RWfkWmKDdgA", "object": "subscription_item", "billing_thresholds": null, "created": 1701039941, "discounts": [ ], "metadata": { }, "plan": { "id": "price_1Nd19YFUCobZzZgndoYXbKsk", "object": "plan", "active": true, "aggregate_usage": null, "amount": 6540, "amount_decimal": "6540", "billing_scheme": "per_unit", "created": 1691544336, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": true, "metadata": { }, "meter": null, "nickname": null, "product": "prod_NMAkRQCPD8LZLw", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { "id": "price_1Nd19YFUCobZzZgndoYXbKsk", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1691544336, "currency": "usd", "custom_unit_amount": null, "livemode": true, "lookup_key": null, "metadata": { }, "nickname": null, "product": "prod_NMAkRQCPD8LZLw", "recurring": { "aggregate_usage": null, "interval": "year", "interval_count": 1, "meter": null, "trial_period_days": null, "usage_type": "licensed" }, "tax_behavior": "exclusive", "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 6540, "unit_amount_decimal": "6540" }, "quantity": 1, "subscription": "sub_1OGrOSFUCobZzZgnSgEPYgHK", "tax_rates": [ ] } ], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_1OGrOSFUCobZzZgnSgEPYgHK" }, "latest_invoice": "in_1OGrOSFUCobZzZgn5qvObrDm", "livemode": true, "metadata": { "tr_iid": "discount", "tr_cid": "asrstr2400" }, "next_pending_invoice_item_invoice": null, "on_behalf_of": null, "pause_collection": { "behavior": "void", "resumes_at": null }, "payment_settings": { "payment_method_options": null, "payment_method_types": [ "card" ], "save_default_payment_method": "off" }, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": { "id": "price_1Nd19YFUCobZzZgndoYXbKsk", "object": "plan", "active": true, "aggregate_usage": null, "amount": 6540, "amount_decimal": "6540", "billing_scheme": "per_unit", "created": 1691544336, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": true, "metadata": { }, "meter": null, "nickname": null, "product": "prod_NMAkRQCPD8LZLw", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "quantity": 1, "schedule": null, "start_date": 1701039940, "status": "canceled", "test_clock": null, "transfer_data": null, "trial_end": null, "trial_settings": { "end_behavior": { "missing_payment_method": "create_invoice" } }, "trial_start": null } }, "livemode": true, "pending_webhooks": 1, "request": { "id": "req_WrwX6l63e65QWB", "idempotency_key": null }, "type": "customer.subscription.deleted" }