Xsolla-logo

已更新订阅Webhook POST

在订阅中的某些参数(plan_iddate_next_charge)发生变化以及每次续订订阅时,我们都会向您的 webhook URL 发送通知update_subscription

Request
Request Body schema: application/json
notification_type
required
string

通知类型。

object

带有自定义项目设置的对象。

merchant_id
integer

商户ID。

project_id
integer

游戏的艾克索拉ID。可以在发布商帐户中找到该ID。

object

订阅详情(对象)。

date_next_charge
string

下次收费的日期。符合ISO 8601标准规定的日期与时间。

plan_id
string

计划ID(如果计划通过API创建,则为外部ID)。

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": {
    }
}