Xsolla-logo

用户余额:兑换优惠券Webhook POST

如果用户兑换优惠券以获取游戏物品或虚拟货币,我们会向您发送与此有关的特别通知。

Request
Request Body schema: application/json
object

带有优惠券相关数据的对象。

campaign_code
string

优惠券营销活动的代码。

coupon_code
string

优惠券代码。

id_operation
integer

艾克索拉数据库中的操作ID。

items
Array of objects

购买项中的虚拟物品。

items_operation_type
string

游戏内购买的操作类型。

notification_type
string

通知类型。

operation_type
string

操作类型。

object

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

merchant_id
integer

商户ID。

project_id
integer

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

object

用户详情(对象)。

id
required
string

用户ID。

email
string

用户电子邮件。

name
string

用户名

object

带有系统中用户余额相关数据的对象。

diff
string

购买的游戏货币的金额。

new_value
string

处理当前操作之后新的用户余额值。

old_value
string

处理当前操作之前旧的用户余额值。

Responses
204

返回以指示处理成功。

400

提供的信息出错时返回(例如,缺少必需的参数、授权失败等)。

500

返回以指示您的服务器存在的暂时性错误。

Request samples
application/json
{
  • "coupon": {
    },
  • "id_operation": 0,
  • "items": [
    ],
  • "items_operation_type": "string",
  • "notification_type": "string",
  • "operation_type": "string",
  • "settings": {
    },
  • "user": {
    },
  • "virtual_currency_balance": {
    }
}
Response samples
application/json
{
  • "error": {
    }
}