Xsolla-logo

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

サブスクリプションの一部のパラメーター(plan_idまたはdate_next_charge)が変更された場合、およびサブスクリプションが更新されるたびに、ウェブフックURLでupdate_subscription通知が送信されます。

Request
Request Body schema: application/json
notification_type
required
string

通知の種類。

object

カスタムプロジェクト設定(オブジェクト)。

merchant_id
integer

マーチャントID。

project_id
integer

ゲームのエクソラ ID。パブリッシャ―アカウントにあります。

object

サブスクリプションの詳細(オブジェクト)。

date_next_charge
string

次の請求日。日付時刻表記は、ISO 8601形式。

plan_id
string

プランID(プランがAPIを使用して作成された場合は外部)。

product_id
string

製品ID(アクセストークンで送信された場合)。

subscription_id
integer

エクソラデータベースのサブスクリプションID。

tags
Array of strings

プランのタグ。

object

ユーザーの詳細(オブジェクト)。

id
required
string

ユーザーID。

name
string

ユーザー名

Responses
204

処理の成功を示すために戻ります。

400

提供された情報(たとえば、必要なパラメーターの欠落、認可の失敗など。)にエラーが発生した場合に戻ります。

500

リターンはサーバーに一時的なエラーが発生したことを示します。

Request samples
application/json
{
  • "notification_type": "string",
  • "settings": {
    },
  • "subscription": {
    },
  • "user": {
    }
}
Response samples
application/json
{
  • "error": {
    }
}