Xsolla-logo

非更新のサブスクリプションWebhook POST

何らかの理由でサブスクリプションのステータスが非更新に設定されている場合、私たちは通知non_renewal_subscriptionをウェブフックURLに送信します。この通知を有効にするには、アカウントマネージャーに連絡してください。

Request
Request Body schema: application/json
notification_type
required
string

通知の種類。

object

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

project_id
required
integer

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

merchant_id
integer

マーチャントID。

object

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

amount
integer <float>

現金通貨での価格。

currency
string

通貨。ISO 4217に基づく3文字の通貨コード。

date_create
string

サブスクリプション作成日。日付時刻表記は、ISO 8601形式。

date_next_charge
string

次の請求日。これは、ユーザーのサブスクリプションが非更新に設定される前に次の支払いが予想される日付です。ISO 8601の日付と時刻。

plan_id
string

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

subscription_id
integer

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

object

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

id
required
string

ユーザーID。

email
string

ユーザーのEメール。

name
string

ユーザー名

Responses
204

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

400

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

500

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

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