# 保留中の更新の一部として、サブスクのキャンセルをスケジュールするサポートを追加

## 新機能

請求の決済が成功した際に適用される[保留中の更新](https://docs.stripe.com/billing/subscriptions/pending-updates.md)の一部として、請求期間の終了時にサブスクをキャンセルできるようになりました。

The [cancel_at_period_end](https://docs.stripe.com/api/subscriptions/object.md?api-version=2026-09-30.endive#subscription_object-pending_update) property is a nullable Boolean added to [pending_update](https://docs.stripe.com/api/subscriptions/object.md?api-version=2026-09-30.endive#subscription_object-pending_update) for a [Subscription](https://docs.stripe.com/api/subscriptions/object.md?api-version=2026-09-30.endive). It indicates whether the subscription will cancel at the end of the current billing period when the pending update applies.

## 影響

[payment_behavior](https://docs.stripe.com/api/subscriptions/update.md?api-version=2026-09-30.endive#update_subscription-payment_behavior) を `pending_if_incomplete` に設定して[サブスクを更新する](https://docs.stripe.com/api/subscriptions/update.md?api-version=2026-09-30.endive)際に、`cancel_at_period_end` を渡せるようになりました。以前は、この組み合わせではエラーが返されていました。後続の更新に異なる `cancel_at_period_end` の値が含まれる場合、Stripe により既存の保留中の更新が失効します。

If the payment fails or requires customer action, Stripe stores the setting in the `pending_update` hash. After successfully applying the update, Stripe cancels the subscription after the period ends.

## 変更点

#### REST API

| Parameter | Change | Resources or endpoints |
| --- | --- | --- |
| `cancel_at_period_end` | Added | [Subscription.pending_update](/api/subscriptions/object?api-version=2026-09-30.endive#subscription_object-pending_update) |

#### Ruby

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `cancel_at_period_end` | Added | [Subscription::PendingUpdate](/api/subscriptions/object?api-version=2026-09-30.endive#subscription_object-pending_update) |

#### Python

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `cancel_at_period_end` | Added | [Subscription.PendingUpdate](/api/subscriptions/object?api-version=2026-09-30.endive#subscription_object-pending_update) |

#### PHP

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `cancel_at_period_end` | Added | [Subscription.pending_update](/api/subscriptions/object?api-version=2026-09-30.endive#subscription_object-pending_update) |

#### Java

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `cancelAtPeriodEnd` | Added | [Subscription.pending_update](/api/subscriptions/object?api-version=2026-09-30.endive#subscription_object-pending_update) |

#### Node.js

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `cancel_at_period_end` | Added | [Subscription.pending_update](/api/subscriptions/object?api-version=2026-09-30.endive#subscription_object-pending_update) |

#### Go

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `CancelAtPeriodEnd` | Added | [SubscriptionPendingUpdate](/api/subscriptions/object?api-version=2026-09-30.endive#subscription_object-pending_update) |

#### .NET

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `CancelAtPeriodEnd` | Added | [Subscription.PendingUpdate](/api/subscriptions/object?api-version=2026-09-30.endive#subscription_object-pending_update) |

## アップグレード

#### REST API

1. ワークベンチで[現在の API バージョンを確認](https://docs.stripe.com/workbench/guides.md#view-api-versions)してください。
2. SDK を使用している場合は、この API バージョンに対応する SDK バージョンにアップグレードします。
   - SDK を使用しない場合は、[API リクエスト](https://docs.stripe.com/api-versions.md#how-versions-are-specified-in-requests)を更新して `Stripe-Version: 2026-09-30.endive` を含めてください
3. [Webhook エンドポイント](https://docs.stripe.com/webhooks/versioning.md)に使用する API バージョンをアップグレードします。
4. 新しいバージョンに対して、[実装内容をテスト](https://docs.stripe.com/testing.md)します。
5. Connect を使用する場合は、[Connect の実装内容をテスト](https://docs.stripe.com/connect/testing.md)します。

[Stripe API のアップグレード](https://docs.stripe.com/upgrades.md)について、詳細をご確認ください。

#### Ruby

1. Workbench で[現在の API バージョンを表示します](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench)。
2. Ruby SDK を 最新バージョンにアップグレードします。
3. [Webhook エンドポイント](https://docs.stripe.com/webhooks/versioning.md)に使用する API バージョンをアップグレードします。
4. 新しいバージョンに対して、[実装内容をテスト](https://docs.stripe.com/testing.md)します。
5. Connect を使用する場合は、[Connect の実装内容をテスト](https://docs.stripe.com/connect/testing.md)します。
6. Workbench で[アップグレードを実行](https://docs.stripe.com/upgrades.md#perform-the-upgrade)します。[バージョンをロールバック](https://docs.stripe.com/upgrades.md#roll-back-your-api-version)できるのは 72 時間以内です。

[Stripe API のアップグレード](https://docs.stripe.com/upgrades.md)について、詳細をご確認ください。

#### Python

1. Workbench で[現在の API バージョンを表示します](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench)。
2. Python SDK を 最新バージョンにアップグレードします。
3. [Webhook エンドポイント](https://docs.stripe.com/webhooks/versioning.md)に使用する API バージョンをアップグレードします。
4. 新しいバージョンに対して、[実装内容をテスト](https://docs.stripe.com/testing.md)します。
5. Connect を使用する場合は、[Connect の実装内容をテスト](https://docs.stripe.com/connect/testing.md)します。
6. Workbench で[アップグレードを実行](https://docs.stripe.com/upgrades.md#perform-the-upgrade)します。[バージョンをロールバック](https://docs.stripe.com/upgrades.md#roll-back-your-api-version)できるのは 72 時間以内です。

[Stripe API のアップグレード](https://docs.stripe.com/upgrades.md)について、詳細をご確認ください。

#### PHP

1. Workbench で[現在の API バージョンを表示します](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench)。
2. PHP SDK を 最新バージョンにアップグレードします。
3. [Webhook エンドポイント](https://docs.stripe.com/webhooks/versioning.md)に使用する API バージョンをアップグレードします。
4. 新しいバージョンに対して、[実装内容をテスト](https://docs.stripe.com/testing.md)します。
5. Connect を使用する場合は、[Connect の実装内容をテスト](https://docs.stripe.com/connect/testing.md)します。
6. Workbench で[アップグレードを実行](https://docs.stripe.com/upgrades.md#perform-the-upgrade)します。[バージョンをロールバック](https://docs.stripe.com/upgrades.md#roll-back-your-api-version)できるのは 72 時間以内です。

[Stripe API のアップグレード](https://docs.stripe.com/upgrades.md)について、詳細をご確認ください。

#### Java

1. Workbench で[現在の API バージョンを表示します](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench)。
2. Java SDK を 最新バージョンにアップグレードします。
3. [Webhook エンドポイント](https://docs.stripe.com/webhooks/versioning.md)に使用する API バージョンをアップグレードします。
4. 新しいバージョンに対して、[実装内容をテスト](https://docs.stripe.com/testing.md)します。
5. Connect を使用する場合は、[Connect の実装内容をテスト](https://docs.stripe.com/connect/testing.md)します。
6. Workbench で[アップグレードを実行](https://docs.stripe.com/upgrades.md#perform-the-upgrade)します。[バージョンをロールバック](https://docs.stripe.com/upgrades.md#roll-back-your-api-version)できるのは 72 時間以内です。

[Stripe API のアップグレード](https://docs.stripe.com/upgrades.md)について、詳細をご確認ください。

#### Node.js

1. Workbench で[現在の API バージョンを表示します](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench)。
2. Node SDK を 最新バージョンにアップグレードします。
3. [Webhook エンドポイント](https://docs.stripe.com/webhooks/versioning.md)に使用する API バージョンをアップグレードします。
4. 新しいバージョンに対して、[実装内容をテスト](https://docs.stripe.com/testing.md)します。
5. Connect を使用する場合は、[Connect の実装内容をテスト](https://docs.stripe.com/connect/testing.md)します。
6. Workbench で[アップグレードを実行](https://docs.stripe.com/upgrades.md#perform-the-upgrade)します。[バージョンをロールバック](https://docs.stripe.com/upgrades.md#roll-back-your-api-version)できるのは 72 時間以内です。

[Stripe API のアップグレード](https://docs.stripe.com/upgrades.md)について、詳細をご確認ください。

#### Go

1. Workbench で[現在の API バージョンを表示します](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench)。
2. Go SDK を 最新バージョンにアップグレードします。
3. [Webhook エンドポイント](https://docs.stripe.com/webhooks/versioning.md)に使用する API バージョンをアップグレードします。
4. 新しいバージョンに対して、[実装内容をテスト](https://docs.stripe.com/testing.md)します。
5. Connect を使用する場合は、[Connect の実装内容をテスト](https://docs.stripe.com/connect/testing.md)します。
6. Workbench で[アップグレードを実行](https://docs.stripe.com/upgrades.md#perform-the-upgrade)します。[バージョンをロールバック](https://docs.stripe.com/upgrades.md#roll-back-your-api-version)できるのは 72 時間以内です。

[Stripe API のアップグレード](https://docs.stripe.com/upgrades.md)について、詳細をご確認ください。

#### .NET

1. Workbench で[現在の API バージョンを表示します](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench)。
2. .NET SDK を 最新バージョンにアップグレードします。
3. [Webhook エンドポイント](https://docs.stripe.com/webhooks/versioning.md)に使用する API バージョンをアップグレードします。
4. 新しいバージョンに対して、[実装内容をテスト](https://docs.stripe.com/testing.md)します。
5. Connect を使用する場合は、[Connect の実装内容をテスト](https://docs.stripe.com/connect/testing.md)します。
6. Workbench で[アップグレードを実行](https://docs.stripe.com/upgrades.md#perform-the-upgrade)します。[バージョンをロールバック](https://docs.stripe.com/upgrades.md#roll-back-your-api-version)できるのは 72 時間以内です。

[Stripe API のアップグレード](https://docs.stripe.com/upgrades.md)について、詳細をご確認ください。

## 関連する変更

- [Subscriptions と Invoices で請求サイクルのアンカーのフォーマットを統一](https://docs.stripe.com/changelog/endive/2026-09-30/polymorphic-billing-cycle-anchor.md)
- [請求書項目に請求ルールを追加](https://docs.stripe.com/changelog/endive/2026-09-30/invoicing-rules-for-invoice-items.md)
- [Billie 向けの参照情報と会社情報のパラメーターを追加](https://docs.stripe.com/changelog/endive/2026-09-30/reference-and-company-details-billie.md)
- [請求書項目の請求ルールをクリアできるように変更](https://docs.stripe.com/changelog/endive/2026-09-30/clear-invoicing-rules-on-invoice-items.md)
- [クラシック請求モードを使用する請求書明細項目に比例配分の詳細を追加](https://docs.stripe.com/changelog/endive/2026-09-30/invoice-items-proration-details.md)
- [トライアルオファーの一般提供を開始](https://docs.stripe.com/changelog/endive/2026-09-30/trial-offer-ga.md)
- [請求書が回収不能である理由を説明する詳細なステータスを追加](https://docs.stripe.com/changelog/endive/2026-09-30/invoice-uncollectible-status-detail.md)
- [サブスクを随時一時停止・再開できる機能を追加](https://docs.stripe.com/changelog/endive/2026-09-30/pause-subscription.md)
- [Feedback Options API を追加](https://docs.stripe.com/changelog/endive/2026-09-30/feedback-options-api.md)
