# Update subscription ステータスを変更(active、canceled、またはnon_renewing)したり、次の請求日を延期することによって、サブスクリプションを更新します。 Endpoint: PUT /projects/{project_id}/users/{user_id}/subscriptions/{subscription_id} Version: 2.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) プロジェクトID。 - `user_id` (string, required) ユーザーID。 - `subscription_id` (integer, required) サブスクリプションID。 ## Request fields (application/json): - `cancel_subscription_payment` (boolean) trueに設定すると、このサブスクリプションで最後に支払った決済分が払い戻されます。canceledに設定したステータスと共にのみ実行できます。 - `status` (string) ステータス。 Enum: "active", "canceled", "non_renewing" - `timeshift` (object) 請求の延期。 - `timeshift.type` (string) 請求時間の単位。dayまたはmonthにすることができます。 Enum: "day", "month" - `timeshift.value` (string) 課金を延期する時間単位の数。値はタイプパラメータに依存し、次のようになります:-typeはdayの場合 、1から366まで-typeはmonthの場合、1から12までです - `xsolla_network` (object) - `xsolla_network.collaborator_id` (string) コラボレーター ID — [インフルエンサー](https://developers.xsolla.com/ja/doc/partner-network/#guides_network_glossary_influencer)または[アフィリエイトネットワーク](https://developers.xsolla.com/ja/doc/partner-network/#guides_network_glossary_affiliate_network)識別子。あなたのアドミンページ>パートナーネットワーク>インフルエンサーセクションで見つけることができます。 ## Response 200 fields