Created
July 21, 2019 07:21
-
-
Save kehers/f9869c83c874a2c6138704fa78e17e6c to your computer and use it in GitHub Desktop.
Sample "customer.subscription.deleted" Stripe event
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_xxxxxxxxxxxxxxxx", | |
"object": "event", | |
"account": "acct_xxxxxxxxxxxxxxxx", | |
"api_version": "2019-05-16", | |
"created": 1562758323, | |
"data": { | |
"object": { | |
"id": "sub_xxxxxxxxxxxxxx", | |
"object": "subscription", | |
"application_fee_percent": null, | |
"billing": "charge_automatically", | |
"billing_cycle_anchor": 1435228277, | |
"billing_thresholds": null, | |
"cancel_at": null, | |
"cancel_at_period_end": false, | |
"canceled_at": 1562758323, | |
"collection_method": "charge_automatically", | |
"created": 1435228277, | |
"current_period_end": 1593081077, | |
"current_period_start": 1561458677, | |
"customer": "cus_xxxxxxxxxxxxxx", | |
"days_until_due": null, | |
"default_payment_method": null, | |
"default_source": null, | |
"default_tax_rates": [ | |
], | |
"discount": null, | |
"ended_at": 1562758323, | |
"items": { | |
"object": "list", | |
"data": [ | |
{ | |
"id": "si_xxxxxxxxxxxxxxxxxxxxxxx", | |
"object": "subscription_item", | |
"billing_thresholds": null, | |
"created": 1435228277, | |
"metadata": { | |
}, | |
"plan": { | |
"id": "yearly", | |
"object": "plan", | |
"active": true, | |
"aggregate_usage": null, | |
"amount": 1499, | |
"billing_scheme": "per_unit", | |
"created": 1434390436, | |
"currency": "usd", | |
"interval": "year", | |
"interval_count": 1, | |
"livemode": false, | |
"metadata": { | |
}, | |
"nickname": null, | |
"product": "prod_xxxxxxxxxxxxxx", | |
"tiers": null, | |
"tiers_mode": null, | |
"transform_usage": null, | |
"trial_period_days": null, | |
"usage_type": "licensed" | |
}, | |
"quantity": 1, | |
"subscription": "sub_xxxxxxxxxxxxxx" | |
} | |
], | |
"has_more": false, | |
"total_count": 1, | |
"url": "/v1/subscription_items?subscription=sub_xxxxxxxxxxxxxx" | |
}, | |
"latest_invoice": "in_xxxxxxxxxxxxxxxxxxxxxxx", | |
"livemode": false, | |
"metadata": { | |
}, | |
"plan": { | |
"id": "yearly", | |
"object": "plan", | |
"active": true, | |
"aggregate_usage": null, | |
"amount": 1499, | |
"billing_scheme": "per_unit", | |
"created": 1434390436, | |
"currency": "usd", | |
"interval": "year", | |
"interval_count": 1, | |
"livemode": false, | |
"metadata": { | |
}, | |
"nickname": null, | |
"product": "prod_xxxxxxxxxxxxxx", | |
"tiers": null, | |
"tiers_mode": null, | |
"transform_usage": null, | |
"trial_period_days": null, | |
"usage_type": "licensed" | |
}, | |
"quantity": 1, | |
"schedule": null, | |
"start": 1435228277, | |
"start_date": 1435228277, | |
"status": "canceled", | |
"tax_percent": null, | |
"trial_end": null, | |
"trial_start": null | |
} | |
}, | |
"livemode": false, | |
"pending_webhooks": 1, | |
"request": { | |
"id": null, | |
"idempotency_key": null | |
}, | |
"type": "customer.subscription.deleted" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment