# 已更新订阅

如果订阅中的某些参数（plan_id、date_next_charge）发生更改，以及每次订阅续订时，艾克索拉都会向Webhook URL发送一个update_subscription类型的Webhook。

Endpoint: POST updated-subscription
Version: 1.0

## Request fields (application/json):

  - `notification_type` (string, required)
    通知类型。

  - `settings` (object)
    带有自定义项目设置的对象。

  - `settings.merchant_id` (integer)
    商户ID。

  - `settings.project_id` (integer)
    项目编号。您可以在您的[发布商帐户](https://publisher.xsolla.com/)项目名称旁边。

  - `subscription` (object)
    订阅详情（对象）。

  - `subscription.date_next_charge` (string)
    下次收费的日期。符合[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)标准规定的日期与时间。

  - `subscription.plan_id` (string)
    计划ID（如果计划通过API创建，则为外部ID）。

  - `subscription.product_id` (string)
    产品ID（如果在访问令牌中发送）。

  - `subscription.subscription_id` (integer)
    艾克索拉数据库的订阅ID。

  - `subscription.tags` (array)
    计划标签。

  - `user` (object)
    用户详情（对象）。

  - `user.id` (string, required)
    用户ID。

  - `user.name` (string)
    用户名。

## Response 400 fields (application/json):

  - `error` (object)

  - `error.code` (string)

  - `error.message` (string)


## Response 204 fields

## Response 500 fields
