# Nested subscription schedule settings under default_settings

## What’s new

On subscription schedules, `invoice_settings`, `default_payment_method`, `billing_thresholds` and `collection_method` are now nested under `default_settings`.

## Impact

Lets you more easily manage the various settings associated with subscription schedules. By nesting the `invoice_settings`, `default_payment_method`, `billing_thresholds`, and `collection_method` properties under a new `default_settings` field, the subscription schedule API becomes more organized and intuitive.

## Changes

#### REST API

| Parameters | Change | Resources or endpoints |
| --- | --- | --- |
| `billing_thresholds`, `collection_method`, `days_until_due`, `invoice_settings` | Changed | [SubscriptionSchedule](/api/subscription_schedules/object?api-version=2024-06-20) |

#### Ruby

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `billing_thresholds`, `collection_method`, `default_payment_method`, `default_source`, `invoice_settings` | Removed | [SubscriptionSchedule](/api/subscription_schedules/object?api-version=2024-06-20), [SubscriptionScheduleCreateParams](/api/subscription_schedules/create?api-version=2024-06-20), [SubscriptionScheduleUpdateParams](/api/subscription_schedules/update?api-version=2024-06-20) |

#### Python

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `billing_thresholds`, `collection_method`, `default_payment_method`, `default_source`, `invoice_settings` | Removed | [SubscriptionSchedule](/api/subscription_schedules/object?api-version=2024-06-20), [SubscriptionScheduleCreateParams](/api/subscription_schedules/create?api-version=2024-06-20), [SubscriptionScheduleModifyParams](/api/subscription_schedules/update?api-version=2024-06-20) |

#### PHP

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `billing_thresholds`, `collection_method`, `default_payment_method`, `default_source`, `invoice_settings` | Removed | [SubscriptionSchedule](/api/subscription_schedules/object?api-version=2024-06-20), [SubscriptionSchedule.create().$params](/api/subscription_schedules/create?api-version=2024-06-20), [SubscriptionSchedule.update().$params](/api/subscription_schedules/update?api-version=2024-06-20) |

#### Java

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `billingThresholds`, `collectionMethod`, `defaultPaymentMethod`, `defaultSource`, `invoiceSettings` | Removed | [SubscriptionSchedule](/api/subscription_schedules/object?api-version=2024-06-20), [SubscriptionScheduleCreateParams](/api/subscription_schedules/create?api-version=2024-06-20), [SubscriptionScheduleUpdateParams](/api/subscription_schedules/update?api-version=2024-06-20) |

#### Node.js

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `billing_thresholds`, `collection_method`, `default_payment_method`, `default_source`, `invoice_settings` | Removed | [SubscriptionSchedule](/api/subscription_schedules/object?api-version=2024-06-20), [SubscriptionScheduleCreateParams](/api/subscription_schedules/create?api-version=2024-06-20), [SubscriptionScheduleUpdateParams](/api/subscription_schedules/update?api-version=2024-06-20) |

#### Go

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `BillingThresholds`, `CollectionMethod`, `DefaultPaymentMethod`, `DefaultSource`, `InvoiceSettings` | Removed | [SubscriptionSchedule](/api/subscription_schedules/object?api-version=2024-06-20), [SubscriptionScheduleParams](/api/subscription_schedules/create?api-version=2024-06-20) |

#### .NET

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `BillingThresholds`, `CollectionMethod`, `DefaultPaymentMethod`, `DefaultSource`, `InvoiceSettings` | Removed | [SubscriptionSchedule](/api/subscription_schedules/object?api-version=2024-06-20), [SubscriptionScheduleCreateOptions](/api/subscription_schedules/create?api-version=2024-06-20), [SubscriptionScheduleUpdateOptions](/api/subscription_schedules/update?api-version=2024-06-20) |

## Upgrade

#### REST API

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. If you use an SDK, upgrade to the corresponding SDK version for this API version.
   - If you don’t use an SDK, update your [API requests](https://docs.stripe.com/api/versioning.md) to include `Stripe-Version: 2019-11-05`
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Ruby

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Ruby SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Python

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Python SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### PHP

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your PHP SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Java

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Java SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Node.js

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Node SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Go

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Go SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### .NET

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your .NET SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).
