zulip/zerver/webhooks/stripe/fixtures/customer_subscription_updat...

112 lines
3.0 KiB
JSON
Raw Normal View History

{
"id": "evt_1DeFo8DEQaroqDjsk4tzzzdV",
"object": "event",
"api_version": "2018-11-08",
"created": 1544075636,
"data": {
"object": {
"id": "sub_E6STM5w5EX3K28",
"object": "subscription",
"application_fee_percent": null,
"billing": "send_invoice",
"billing_cycle_anchor": 1572609600,
"cancel_at_period_end": false,
"canceled_at": null,
"created": 1544074670,
"current_period_end": 1572609600,
"current_period_start": 1544075635,
"customer": "cus_00000000000000",
"days_until_due": 7,
"default_source": null,
"discount": null,
"ended_at": null,
"items": {
"object": "list",
"data": [
{
"id": "si_E6STR3cU0bwWFG",
"object": "subscription_item",
"created": 1544074671,
"metadata": {
},
"plan": {
"id": "plan_E6SQ6RAtmLVtzg",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 100,
"billing_scheme": "per_unit",
"created": 1544074513,
"currency": "usd",
"interval": "year",
"interval_count": 1,
"livemode": true,
"metadata": {
},
"nickname": "flatrate",
"product": "prod_E6SPZ5RKfKClNL",
"tiers": null,
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"quantity": 800,
"subscription": "sub_E6STM5w5EX3K28"
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/subscription_items?subscription=sub_E6STM5w5EX3K28"
},
"livemode": true,
"metadata": {
},
"plan": {
"id": "plan_E6SQ6RAtmLVtzg",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 100,
"billing_scheme": "per_unit",
"created": 1544074513,
"currency": "usd",
"interval": "year",
"interval_count": 1,
"livemode": true,
"metadata": {
},
"nickname": "flatrate",
"product": "prod_E6SPZ5RKfKClNL",
"tiers": null,
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"quantity": 800,
"start": 1544075635,
"status": "trialing",
"tax_percent": null,
"trial_end": 1572609600,
"trial_start": 1544075635
},
"previous_attributes": {
"billing_cycle_anchor": 1544074670,
"current_period_end": 1575610670,
"current_period_start": 1544074670,
"start": 1544074670,
"status": "active",
"trial_end": null,
"trial_start": null
}
},
"livemode": true,
"pending_webhooks": 1,
"request": {
"id": "req_X3p7qbGSX2wZ8D",
"idempotency_key": null
},
"type": "customer.subscription.updated"
}