# Updated subscription

If some parameters in the subscription (plan_id, date_next_charge) were changed, and in the case of every subscription renewal, Xsolla sends a webhook with the update_subscription type to the webhook URL.

Endpoint: POST updated-subscription
Version: 1.0

## Request fields (application/json):

  - `notification_type` (string, required)
    Notification type.

  - `settings` (object)
    Custom project settings (object).

  - `settings.project_id` (integer)
    Project ID. You can find this parameter in your [Publisher Account](https://publisher.xsolla.com/) next to the name of the project.

  - `settings.merchant_id` (integer)
    Merchant ID.

  - `user` (object)
    User details (object).

  - `user.id` (string, required)
    User ID.

  - `user.name` (string)
    Username.

  - `subscription` (object)
    Subscription details (object).

  - `subscription.plan_id` (string)
    Plan ID (external if the plan was created via API).

  - `subscription.tags` (array)
    Plan tags.

  - `subscription.subscription_id` (integer)
    Subscription ID in Xsolla database.

  - `subscription.product_id` (string)
    Product ID (if sent in the access token).

  - `subscription.date_next_charge` (string)
    Next billing date. Date and time per [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601).

## Response 400 fields (application/json):

  - `error` (object)

  - `error.code` (string)

  - `error.message` (string)


## Response 204 fields

## Response 500 fields
