2018-11-19 17:49:57 +01:00
|
|
|
{
|
2018-12-06 18:40:43 +01:00
|
|
|
"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": {
|
2018-11-19 17:49:57 +01:00
|
|
|
},
|
2018-12-06 18:40:43 +01:00
|
|
|
"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"
|
2018-11-19 17:49:57 +01:00
|
|
|
},
|
2018-12-06 18:40:43 +01:00
|
|
|
"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": {
|
2018-11-19 17:49:57 +01:00
|
|
|
},
|
2018-12-06 18:40:43 +01:00
|
|
|
"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
|
2018-11-19 17:49:57 +01:00
|
|
|
}
|
2018-12-06 18:40:43 +01:00
|
|
|
},
|
|
|
|
"livemode": true,
|
|
|
|
"pending_webhooks": 1,
|
|
|
|
"request": {
|
|
|
|
"id": "req_X3p7qbGSX2wZ8D",
|
|
|
|
"idempotency_key": null
|
|
|
|
},
|
|
|
|
"type": "customer.subscription.updated"
|
2018-11-19 17:49:57 +01:00
|
|
|
}
|