# Update Subscription Updates a subscription by either changing its status (active, canceled, or non_renewing) or postponing the next billing date. Endpoint: PUT /projects/{project_id}/users/{user_id}/subscriptions/{subscription_id} Version: 2.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) Project ID. - `user_id` (string, required) User ID. - `subscription_id` (integer, required) Subscription ID. ## Request fields (application/json): - `status` (string) Status. Enum: "active", "canceled", "non_renewing" - `cancel_subscription_payment` (boolean) Setting to true will refund the last payment made for this subscription. Only works together with setting the status to canceled. - `timeshift` (object) Billing postponement. - `timeshift.type` (string) Billing time unit. Can be day or month. Enum: "day", "month" - `timeshift.value` (string) Number of time units to postpone the billing by. The value depends on the type parameter and can be: - from 1 to 366, if type is day - from 1 to 12, if type is month - `xsolla_network` (object) - `xsolla_network.collaborator_id` (string) Collaborator ID — [influencer](https://developers.xsolla.com/doc/partner-network/#guides_network_glossary_influencer) or [affiliate network](https://developers.xsolla.com/doc/partner-network/#guides_network_glossary_affiliate_network) identifier. You can find it in your Publisher Account > Partner Network > Influencers section. ## Response 200 fields