# 更新されたサブスクリプション

サブスクリプションのパラメータ（plan_id、date_next_charge）が変更された場合、そしてサブスクリプションが更新される時に、エクソーラはupdate_subscriptionタイプのウェブフックをウェブフックURLに送信します。

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)
    プロジェクトID。このパラメータは、[ドメインページ](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を使用して作成された場合は外部）。

  - `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
