Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"object": {
"id": "sub_Ees5zGujQ85DxG",
"object": "subscription",
"application_fee_percent": null,
"billing": "charge_automatically",
"billing_cycle_anchor": 1554603702,
"billing_thresholds": null,
"cancel_at": null,
"cancel_at_period_end": false,
"canceled_at": null,
"created": 1552011702,
"current_period_end": 1554603702,
"current_period_start": 1552011702,
"customer": "cus_Ees5hLSHo1QYIT",
"days_until_due": null,
"default_source": null,
"discount": null,
"ended_at": null,
"items": {
"object": "list",
"data": [
{
"id": "si_Ees5pfDro5zY4q",
"object": "subscription_item",
"billing_thresholds": null,
"created": 1552011702,
"metadata": {
},
"plan": {
"id": "free-trial-30",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 0,
"billing_scheme": "per_unit",
"created": 1494366402,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": {
"feature_tier": "earthquaker"
},
"name": "Free Trial (30 days)",
"nickname": null,
"product": "prod_BUIOlReRJJdXQd",
"statement_descriptor": null,
"tiers": null,
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": 30,
"usage_type": "licensed"
},
"quantity": 1,
"subscription": "sub_Ees5zGujQ85DxG"
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/subscription_items?subscription=sub_Ees5zGujQ85DxG"
},
"latest_invoice": "in_1EBYLCDC8AtcNVbQpn4LTvh6",
"livemode": false,
"metadata": {
},
"plan": {
"id": "free-trial-30",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 0,
"billing_scheme": "per_unit",
"created": 1494366402,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": {
"feature_tier": "earthquaker"
},
"name": "Free Trial (30 days)",
"nickname": null,
"product": "prod_BUIOlReRJJdXQd",
"statement_descriptor": null,
"tiers": null,
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": 30,
"usage_type": "licensed"
},
"quantity": 1,
"schedule": null,
"start": 1552011702,
"status": "trialing",
"tax_percent": null,
"trial_end": 1554603702,
"trial_start": 1552011702
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.