Retrieves the list of your subscription schedules.
Parameters
- customerstring
Only return subscription schedules for the given customer.
More parameters
- canceled_
atobject Only return subscription schedules that were created canceled the given date interval.
- canceled_at.
gtinteger Minimum value to filter by (exclusive)
- canceled_at.
gteinteger Minimum value to filter by (inclusive)
- canceled_at.
ltinteger Maximum value to filter by (exclusive)
- canceled_at.
lteinteger Maximum value to filter by (inclusive)
- completed_
atobject Only return subscription schedules that completed during the given date interval.
- completed_at.
gtinteger Minimum value to filter by (exclusive)
- completed_at.
gteinteger Minimum value to filter by (inclusive)
- completed_at.
ltinteger Maximum value to filter by (exclusive)
- completed_at.
lteinteger Maximum value to filter by (inclusive)
- createdobject
Only return subscription schedules that were created during the given date interval.
- created.
gtinteger Minimum value to filter by (exclusive)
- created.
gteinteger Minimum value to filter by (inclusive)
- created.
ltinteger Maximum value to filter by (exclusive)
- created.
lteinteger Maximum value to filter by (inclusive)
- ending_
beforestring A cursor for use in pagination.
ending_
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withbefore obj_
, your subsequent call can includebar ending_
in order to fetch the previous page of the list.before=obj_ bar - limitinteger
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- released_
atobject Only return subscription schedules that were released during the given date interval.
- released_at.
gtinteger Minimum value to filter by (exclusive)
- released_at.
gteinteger Minimum value to filter by (inclusive)
- released_at.
ltinteger Maximum value to filter by (exclusive)
- released_at.
lteinteger Maximum value to filter by (inclusive)
- scheduledboolean
Only return subscription schedules that have not started yet.
- starting_
afterstring A cursor for use in pagination.
starting_
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withafter obj_
, your subsequent call can includefoo starting_
in order to fetch the next page of the list.after=obj_ foo
Returns
A object with a data
property that contains an array of up to limit
subscription schedules, starting after subscription schedule starting_
. Each entry in the array is a separate subscription schedule object. If no more subscription schedules are available, the resulting array will be empty.
{ "object": "list", "url": "/v1/subscription_schedules", "has_more": false, "data": [ { "id": "sub_sched_1Mr3YdLkdIwHu7ixjop3qtff", "object": "subscription_schedule", "application": null, "canceled_at": null, "completed_at": null, "created": 1724058651, "current_phase": null, "customer": "cus_NcI8FsMbh0OeFs", "default_settings": { "application_fee_percent": null, "automatic_tax": { "enabled": false, "liability": null }, "billing_cycle_anchor": "automatic", "collection_method": "charge_automatically", "default_payment_method": null, "default_source": null, "description": null, "invoice_settings": { "issuer": { "type": "self" } }, "on_behalf_of": null, "transfer_data": null }, "end_behavior": "release", "livemode": false, "metadata": {}, "phases": [ { "add_invoice_items": [], "application_fee_percent": null, "billing_cycle_anchor": null, "collection_method": null, "currency": "usd", "default_payment_method": null, "default_tax_rates": [], "description": null, "discounts": null, "end_date": 1818666418, "invoice_settings": null, "items": [ { "discounts": null, "metadata": {}, "plan": "price_1Mr3YcLkdIwHu7ixYCFhXHNb", "price": "price_1Mr3YcLkdIwHu7ixYCFhXHNb", "quantity": 1, "tax_rates": [] } ], "metadata": {}, "on_behalf_of": null, "proration_behavior": "create_prorations", "start_date": 1787130418, "transfer_data": null, "trial_end": null } ], "released_at": null, "released_subscription": null, "renewal_interval": null, "status": "not_started", "subscription": null, "test_clock": null } ]}