2016-12-02 23:09:09 +01:00
|
|
|
{
|
2018-12-06 20:10:27 +01:00
|
|
|
"id": "evt_1DeFYZDEQaroqDjsX811NXeq",
|
|
|
|
"object": "event",
|
|
|
|
"api_version": "2018-11-08",
|
|
|
|
"created": 1544074671,
|
|
|
|
"data": {
|
|
|
|
"object": {
|
|
|
|
"id": "sub_E6STM5w5EX3K28",
|
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
|
|
|
"billing": "send_invoice",
|
|
|
|
"billing_cycle_anchor": 1544074670,
|
|
|
|
"cancel_at_period_end": false,
|
|
|
|
"canceled_at": null,
|
|
|
|
"created": 1544074670,
|
|
|
|
"current_period_end": 1575610670,
|
|
|
|
"current_period_start": 1544074670,
|
|
|
|
"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": {
|
|
|
|
},
|
2016-12-02 23:09:09 +01:00
|
|
|
"plan": {
|
2018-12-06 20:10:27 +01:00
|
|
|
"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"
|
2016-12-02 23:09:09 +01:00
|
|
|
},
|
2018-12-06 20:10:27 +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": {
|
|
|
|
},
|
|
|
|
"nickname": "flatrate",
|
|
|
|
"product": "prod_E6SPZ5RKfKClNL",
|
|
|
|
"tiers": null,
|
|
|
|
"tiers_mode": null,
|
|
|
|
"transform_usage": null,
|
|
|
|
"trial_period_days": null,
|
|
|
|
"usage_type": "licensed"
|
|
|
|
},
|
|
|
|
"quantity": 800,
|
|
|
|
"start": 1544074670,
|
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
2016-12-02 23:09:09 +01:00
|
|
|
}
|
2018-12-06 20:10:27 +01:00
|
|
|
},
|
|
|
|
"livemode": true,
|
|
|
|
"pending_webhooks": 1,
|
|
|
|
"request": {
|
|
|
|
"id": "req_J85F0AkACDDTBU",
|
|
|
|
"idempotency_key": null
|
|
|
|
},
|
|
|
|
"type": "customer.subscription.created"
|
2016-12-02 23:09:09 +01:00
|
|
|
}
|