Skip to content

Instantly share code, notes, and snippets.

@hugozap
Created August 15, 2020 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugozap/3dc9a04c682f81bf8f80475c64fa8960 to your computer and use it in GitHub Desktop.
Save hugozap/3dc9a04c682f81bf8f80475c64fa8960 to your computer and use it in GitHub Desktop.
{
"id": "sub_HAwfLuEoLetEJ3",
"object": "subscription",
"application_fee_percent": null,
"billing_cycle_anchor": 1588008574,
"billing_thresholds": null,
"cancel_at": null,
"cancel_at_period_end": false,
"canceled_at": null,
"collection_method": "charge_automatically",
"created": 1588008574,
"current_period_end": 1590600574,
"current_period_start": 1588008574,
"customer": "cus_HAwfE7FhKgxbJ6",
"days_until_due": null,
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
"discount": null,
"ended_at": null,
"items": {
"object": "list",
"data": [
{
"id": "si_HAwfKDKNOmRu6Q",
"object": "subscription_item",
"billing_thresholds": null,
"created": 1588008574,
"metadata": {},
"price": {
"id": "price_H1NlVtpo6ubk0m",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1585803008,
"currency": "usd",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": "Basic",
"product": "prod_H1Nl2JMpwPur6w",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"trial_period_days": 30,
"usage_type": "licensed"
},
"tiers": null,
"tiers_mode": null,
"transform_quantity": null,
"type": "recurring",
"unit_amount": 500,
"unit_amount_decimal": "500"
},
"quantity": 1,
"subscription": "sub_HAwfLuEoLetEJ3",
"tax_rates": []
}
],
"has_more": false,
"url": "/v1/subscription_items?subscription=sub_HAwfLuEoLetEJ3"
},
"latest_invoice": null,
"livemode": false,
"metadata": {},
"next_pending_invoice_item_invoice": null,
"pause_collection": null,
"pending_invoice_item_interval": null,
"pending_setup_intent": null,
"pending_update": null,
"quantity": 1,
"schedule": null,
"start_date": 1588008574,
"status": "active",
"tax_percent": null,
"trial_end": null,
"trial_start": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment