Webhook列表
通知类型在notification_type
参数中发送。
通知类型 | 描述 |
---|---|
order_paid | 购买时获取购物车内容的通知。 |
order_canceled | 支付取消通知。 |
用户购买时确认购物车内容后,艾克索拉向Webhook URL发送order_paid
通知。
参数 | 类型 | 描述 |
---|---|---|
| array | 用户购买的商品的列表。 |
items.sku | string | 商品唯一ID。game_key 类型的商品使用sku_drm 格式的值。 |
items.type | string | 商品类型。可为以下值:virtual_good 、virtual_currency 、game_key 、physical_good 。 |
items.quantity | integer | 商品数量。 |
items.amount | string | 考虑商品数量后的商品总价。如果汇率和佣金有变,则可能与商品价格不一致。 |
items.promotions | array | 应用了促销。如果未应用促销,则向该参数写入空数组。 |
items.promotions.amount_without_discount | string | 不应用折扣的商品总价。 |
items.promotions.amount_with_discount | string | 应用折扣后商品总价。 |
items.promotions.sequence | integer | 所应用促销的ID。 |
items.is_pre_order | string | 如为true ,则商品是预订商品。 |
notification_type | string | 通知类型。必需。 |
| object | 支付信息。 |
order.id | integer | 交易ID。 |
order.mode | string | 支付类型。可为以下值:default 或sandbox 。 |
order.currency_type | string | 支付类型。可为以下值:真实货币使用real ,虚拟货币使用virtual 。 |
order.currency | string | 订单货币。虚拟货币使用SKU,真实货币使用 |
order.amount | string | 按所选货币计算的购物车总价。 |
order.status | string | 订单状态。 |
order.platform | string | 支付平台。通过艾克索拉进行的支付使用xsolla 值。其他支付使用与集成的支付系统名称对应的值。 |
order.comment | string | 用户对订单的备注。 |
order.invoice_id | string | 真实货币支付发票ID。虚拟货币支付使用null 值。 |
order.promotions | array | 应用了促销。如果未应用促销,则向该参数写入空数组。 |
order.promotions.amount_without_discount | string | 不应用折扣的订单总价。 |
order.promotions.amount_with_discount | string | 应用折扣后订单总价。 |
order.promotions.sequence | string | 所应用促销的ID。 |
order.coupons | array | 应用的优惠券。如未应用优惠券,则不会返回该数组。 |
order.coupons.code | string | 应用的优惠券的券码。 |
order.coupons.external_id | string | 外部ID。 |
order.promocodes | array | 应用的促销码。如未应用促销码,则不会返回该数组。 |
order.promocodes.code | string | 应用的促销码的代码。 |
order.promocodes.external_id | string | 外部ID。 |
| object | 用户信息。 |
user.external_id | string | 用户ID。 |
user.email | string | 用户邮箱地址。 |
custom_parameters | object | 其他信息。 |
用户取消付款时,艾克索拉向Webhook URL发送order_canceled
通知。
参数 | 类型 | 描述 |
---|---|---|
| array | 用户购买的商品的列表。 |
items.sku | string | 商品唯一ID。game_key 类型的商品使用sku_drm 格式的值。 |
items.type | string | 商品类型。可为以下值:virtual_good 、virtual_currency 、game_key 、physical_good 。 |
items.quantity | integer | 商品数量。 |
items.amount | string | 考虑商品数量后的商品总价。如果汇率和佣金有变,则可能与商品价格不一致。 |
items.promotions | array | 应用了促销。如果未应用促销,则向该参数写入空数组。 |
items.promotions.amount_without_discount | string | 不应用折扣的商品总价。 |
items.promotions.amount_with_discount | string | 应用折扣后商品总价。 |
items.promotions.sequence | integer | 所应用促销的ID。 |
items.is_pre_order | boolean | 如为true ,则商品是预订商品。 |
notification_type | string | 通知类型。必需。 |
| object | 支付信息。 |
order.id | integer | 交易ID。 |
order.mode | string | 支付类型。可为以下值:default 或sandbox 。 |
order.currency_type | string | 支付类型。可为以下值:真实货币使用real ,虚拟货币使用virtual 。 |
order.currency | string | 订单货币。虚拟货币使用SKU,真实货币使用 |
order.amount | string | 按所选货币计算的购物车总价。 |
order.status | string | 订单状态。 |
order.platform | string | 支付平台。通过艾克索拉进行的支付使用xsolla 值。其他支付使用与集成的支付系统名称对应的值。 |
order.comment | string | 用户对订单的备注。 |
order.invoice_id | string | 真实货币支付发票ID。虚拟货币支付使用null 值。 |
order.promotions | array | 应用了促销。如果未应用促销,则向该参数写入空数组。 |
order.promotions.amount_without_discount | string | 不应用折扣的订单总价。 |
order.promotions.amount_with_discount | string | 应用折扣后订单总价。 |
order.promotions.sequence | string | 所应用促销的ID。 |
| object | 用户信息。 |
user.external_id | string | 用户ID。 |
user.email | string | 用户邮箱地址。 |
custom_parameters | object | 其他信息。 |
本文对您的有帮助吗?
感谢您的反馈!
我们会查看您的留言并运用它改进用户体验。为此页面评分
为此页面评分
不想回答
感谢您的反馈!
发现了错别字或其他内容错误? 请选择文本,然后按Ctrl+Enter。