Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "created": 1326853478,
- "livemode": false,
- "id": "customer.subscription.updated_00000000000000",
- "type": "customer.subscription.updated",
- "object": "event",
- "request": null,
- "pending_webhooks": 1,
- "api_version": "2018-02-28",
- "data": {
- "object": {
- "id": "sub_00000000000000",
- "object": "subscription",
- "application_fee_percent": null,
- "billing": "charge_automatically",
- "billing_cycle_anchor": 1467049692,
- "cancel_at_period_end": false,
- "canceled_at": 1469049273,
- "created": 1466452097,
- "current_period_end": 1469641692,
- "current_period_start": 1467049692,
- "customer": "cus_00000000000000",
- "days_until_due": null,
- "default_source": null,
- "discount": null,
- "ended_at": 1469049273,
- "items": {
- "object": "list",
- "data": [
- {
- "id": "si_00000000000000",
- "object": "subscription_item",
- "created": 1466452098,
- "metadata": {},
- "plan": {
- "id": "free_00000000000000",
- "object": "plan",
- "active": true,
- "aggregate_usage": null,
- "amount": 0,
- "billing_scheme": "per_unit",
- "created": 1469049102,
- "currency": "usd",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
- "metadata": {},
- "nickname": null,
- "product": "prod_00000000000000",
- "tiers": null,
- "tiers_mode": null,
- "transform_usage": null,
- "trial_period_days": null,
- "usage_type": "licensed"
- },
- "quantity": 1,
- "subscription": "sub_00000000000000"
- }
- ],
- "has_more": false,
- "total_count": 1,
- "url": "/v1/subscription_items?subscription=sub_8fuB1DvSYjw8QN"
- },
- "livemode": false,
- "metadata": {},
- "plan": {
- "id": "free_00000000000000",
- "object": "plan",
- "active": true,
- "aggregate_usage": null,
- "amount": 0,
- "billing_scheme": "per_unit",
- "created": 1469049102,
- "currency": "usd",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
- "metadata": {},
- "nickname": null,
- "product": "prod_00000000000000",
- "tiers": null,
- "tiers_mode": null,
- "transform_usage": null,
- "trial_period_days": null,
- "usage_type": "licensed"
- },
- "quantity": 1,
- "start": 1469049193,
- "status": "canceled",
- "tax_percent": null,
- "trial_end": null,
- "trial_start": null
- },
- "previous_attributes": {
- "plan": {
- "id": "OLD_00000000000000",
- "object": "plan",
- "active": true,
- "aggregate_usage": null,
- "amount": 5000,
- "billing_scheme": "per_unit",
- "created": 1495895227,
- "currency": "usd",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
- "metadata": {
- "A": "Value-A",
- "B": "Value-B",
- "C": "Value-C"
- },
- "nickname": null,
- "product": "prod_00000000000000",
- "tiers": null,
- "tiers_mode": null,
- "transform_usage": null,
- "trial_period_days": 1,
- "usage_type": "licensed",
- "name": "Old plan"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement