Skip to content

Instantly share code, notes, and snippets.

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 pedro-vasconcelos/0a4963c767cf15b098e393ef4ebc8e4a to your computer and use it in GitHub Desktop.
Save pedro-vasconcelos/0a4963c767cf15b098e393ef4ebc8e4a to your computer and use it in GitHub Desktop.
stripe_event: subscription_schedule.created
{
"id": "evt_1KmyWeLueXt1u2tdRPt7x5dZ",
"object": "event",
"api_version": "2020-08-27",
"created": 1649588507,
"data": {
"object": {
"id": "sub_sched_1KmyWdLueXt1u2tdqnTEjx1V",
"object": "subscription_schedule",
"canceled_at": null,
"completed_at": null,
"created": 1594857600,
"current_phase": {
"end_date": 1597536000,
"start_date": 1594857600
},
"customer": "cus_LTn5xX5Or3vZGT",
"default_settings": {
"application_fee_percent": null,
"automatic_tax": {
"enabled": true
},
"billing_cycle_anchor": "automatic",
"billing_thresholds": null,
"collection_method": "charge_automatically",
"default_payment_method": null,
"default_source": null,
"invoice_settings": {
"days_until_due": null
},
"transfer_data": null
},
"end_behavior": "release",
"livemode": false,
"metadata": [],
"phases": [
{
"add_invoice_items": [],
"application_fee_percent": null,
"automatic_tax": {
"enabled": true
},
"billing_cycle_anchor": null,
"billing_thresholds": null,
"collection_method": null,
"coupon": null,
"default_payment_method": null,
"default_tax_rates": [],
"end_date": 1597536000,
"invoice_settings": null,
"items": [
{
"billing_thresholds": null,
"plan": "price_1KmpS3LueXt1u2tdEtZQKyyx",
"price": "price_1KmpS3LueXt1u2tdEtZQKyyx",
"quantity": 100,
"tax_rates": []
},
{
"billing_thresholds": null,
"plan": "price_1KmpS4LueXt1u2td3lzW9y43",
"price": "price_1KmpS4LueXt1u2td3lzW9y43",
"quantity": 100,
"tax_rates": []
},
{
"billing_thresholds": null,
"plan": "price_1KmpS2LueXt1u2tdHyi4uhic",
"price": "price_1KmpS2LueXt1u2tdHyi4uhic",
"quantity": 1,
"tax_rates": []
}
],
"proration_behavior": "create_prorations",
"start_date": 1594857600,
"transfer_data": null,
"trial_end": null
}
],
"released_at": null,
"released_subscription": null,
"renewal_interval": null,
"status": "active",
"subscription": "sub_1KmpVmLueXt1u2tdkmwwgrYG",
"test_clock": "clock_1KmpDSLueXt1u2tdsyMHIfzh"
}
},
"livemode": false,
"pending_webhooks": 2,
"request": {
"id": "req_uWqq3tzgp8LR9W",
"idempotency_key": "e18a1223-5432-4fb8-9598-685cd3976dd2"
},
"type": "subscription_schedule.created"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment