





{
"entry": [
{
"id": string,
"time": number (Unix Timestamp),
"changes": Array<WebhookFieldEvent>
}
],
"object": "application"
}
join_intent 事件。lobby_session_id 和 match_session_id 为即将加入的玩家预留大厅位置;{
"entry": [
{
"id": "345533925309564",
"time": 1718052945,
"changes": [
{
"field": "join_intent",
"value": {
"destination_api_name": "destination_api_name",
"joining_user": "10149999707612630",
"lobby_session_id": "test_lobby_session_id",
"match_session_id": "test_match_session_id"
}
}
]
}
],
"object": "application"
}
| 名称 | 类型 | 描述 |
|---|---|---|
destination_api_name | string | 用户打算加入的目标位置的 API 名称。 |
joining_user | string | 即将加入的用户的编号。 |
lobby_session_id | string | 用户打算加入的大厅会话的编号。 |
match_session_id | string | 用户打算加入的比赛会话的编号。 |
order_status 事件。{
"entry": [
{
"id": "345533925309564",
"time": 1718052945,
"changes": [
{
"field": "order_status",
"value": {
"event_time": "1659742639",
"user_id": "10149999707612630",
"product_info": {
"notification_type": "PURCHASED",
"reporting_id": "03f8833e-9c02-4fa0-978f-4cfe91f86bae",
"sku": "item_sku_1",
"developer_payload": "{\"quoteId\": 1234567}"
}
}
}
]
}
],
"object": "application"
}
| 名称 | 类型 | 描述 |
|---|---|---|
event_time | Unix timestamp | 下单时间。 |
user_id | numeric string | 附加内容的所有者。 |
product_info | dict | 包含订单/商品详情的对象。 |
product_info.notification_type | string | 订单事件类型。(PURCHASED、REFUNDED、CHARGEBACKED) |
product_info.reporting_id | string | 出于报告目的为订单生成的独立 UUID。 |
product_info.sku | string | 该订单的应用内购买商品的独立 SKU。 |
product_info.developer_payload | dict | 包含开发者精选信息的未格式化字符串。 |
subscription_started 事件。这可能是新的订阅,也可能是订阅过期后重新开始订阅。{
"entry": [
{
"id": "345533925309564",
"time": 1715797294,
"changes": [
{
"field": "subscription_started",
"value": {
"owner_id": "1234567890",
"source_app": "TWILIGHT",
"subscription": {
"id": "1234567890",
"trial_type": "TRIAL_OFFER",
"sku": "bronzeTier0",
"period_start_time": "1711956272",
"period_end_time": "1711956272",
"next_renewal_time": "1711956272",
"is_active": true,
"is_trial": false,
"current_price_term": {
"term": "MONTHLY",
"price": "19.99",
"currency": "USD"
},
"next_price_term": {
"term": "MONTHLY",
"price": "1999.00",
"currency": "USD"
}
}
}
}
]
}
],
"object": "application"
}
subscription_renewal_success 事件。订阅会定期续订,而且续订数量与有效订阅量相关,因此,如果您决定订阅此 Webhook 字段,请务必确保您的服务器能够处理大量可能同时进行的 subscription_renewal_success Webhook 事件请求。为了有效管理此类流量,如果您的应用程序存在大量订阅,则请验证您的服务器是否有能力处理如此大的工作量。{
"entry": [
{
"id": "345533925309564",
"time": 1715796778,
"changes": [
{
"field": "subscription_renewal_success",
"value": {
"owner_id": "1234567890",
"subscription": {
"id": "1234567890",
"sku": "bronzeTier0",
"period_start_time": "1711956272",
"period_end_time": "1711956272",
"next_renewal_time": "1711956272",
"is_active": true,
"is_trial": false,
"current_offer": {
"term": "MONTHLY",
"price": "19.99",
"currency": "USD"
},
"next_offer": {
"term": "MONTHLY",
"price": "19.99",
"currency": "USD"
}
}
}
}
]
}
],
"object": "application"
}
subscription_canceled 事件。{
"entry": [
{
"id": "345533925309564",
"time": 1717714215,
"changes": [
{
"value": {
"owner_id": "7663588487057119",
"subscription": {
"id": "228e599134540916c63a33cd6aa485379deb3a959ba4075f323b31bb1dda7ecc",
"sku": "bronze_test_01",
"period_start_time": "1717714180",
"period_end_time": "1720306180",
"next_renewal_time": "1720306180",
"is_active": true,
"is_trial": false,
"current_price_term": {
"term": "MONTHLY",
"price": "1.99",
"currency": "USD"
},
"next_price_term": {
"term": "MONTHLY",
"price": "1.99",
"currency": "USD"
}
},
"cancel_reason": "PRICE_TOO_EXPENSIVE"
},
"field": "subscription_canceled"
}
]
}
],
"object": "application"
}
subscription_uncanceled 事件。{
"entry": [
{
"id": "345533925309564",
"time": 1717714175,
"changes": [
{
"value": {
"owner_id": "7663588487057119",
"subscription": {
"id": "228e599134540916c63a33cd6aa485379deb3a959ba4075f323b31bb1dda7ecc",
"sku": "bronze_test_01",
"period_start_time": "1717713920",
"period_end_time": "1720305920",
"next_renewal_time": "1720305920",
"is_active": true,
"is_trial": false,
"current_price_term": {
"term": "MONTHLY",
"price": "1.99",
"currency": "USD"
},
"next_price_term": {
"term": "MONTHLY",
"price": "1.99",
"currency": "USD"
}
}
},
"field": "subscription_uncanceled"
}
]
}
],
"object": "application"
}
subscription_expired 事件。订阅会定期过期,而且过期数量与已取消的订阅量相关,因此,如果您决定订阅此 Webhook,请务必确保您的服务能够处理大量可能同时进行的 subscription_expired Webhook 事件请求。为了有效管理此类流量,如果您的应用程序存在大量订阅,则请验证您的服务器是否有能力处理如此大的工作量。{
"entry": [
{
"id": "345533925309564",
"time": 1717714227,
"changes": [
{
"value": {
"owner_id": "7663588487057119",
"subscription": {
"id": "228e599134540916c63a33cd6aa485379deb3a959ba4075f323b31bb1dda7ecc",
"sku": "bronze_test_01",
"period_start_time": "1717714180",
"period_end_time": "1717714221",
"next_renewal_time": "1717714221",
"is_active": false,
"is_trial": false,
"current_price_term": {
"term": "MONTHLY",
"price": "1.99",
"currency": "USD"
},
"next_price_term": {
"term": "MONTHLY",
"price": "1.99",
"currency": "USD"
}
}
},
"field": "subscription_expired"
}
]
}
],
"object": "application"
}
| 名称 | 类型 | 描述 |
|---|---|---|
owner_id | string | 订阅所属用户的应用范围用户编号 |
source_app | string | 针对 subscription_started 事件开始订阅的 Meta 应用程序。 |
subscription | Subscription | 与事件相关的订阅数据。 |
cancel_reason | string | 针对 subscription_canceled 事件取消订阅的原因。 |
| 名称 | 类型 | 描述 |
|---|---|---|
id | string | 订阅的唯一标识符,在所有订阅字段事件中保持一致。可用于将所有订阅事件关联到此标识符。 |
trial_type | ?string | 如果订阅目前处于新人优惠价或试用阶段,则设为 INTRO_OFFER 或 TRIAL_OFFER。如果是正常付费订阅,则无需设置。 |
sku | string | 订阅计划的 SKU 标识符。 |
period_end_time | string | 当期订阅期结束时的 Unix 时间戳。 |
period_start_time | string | 当期订阅开始时的 Unix 时间戳。 |
next_renewal_time | string | 订阅续订时的 Unix 时间戳。 |
current_price_term | price_term | 当期订阅的价格和期限。 |
next_price_term | price_term | 下次续订时适用的价格和期限。 |
is_active | bool | 当订阅处于有效状态时,设为 True。 |
is_trial | bool | 当最近的订阅期是免费试用(7d、14d、30d)时,设为 Ture。不表示订阅本身处于有效状态。 |
| 名称 | 类型 | 描述 |
|---|---|---|
term | string? | 订阅期限(例如:MONTHLY、ANNUAL、WEEKLY 等)。对于试用订阅,此字段可能为空。 |
currency | string | 价格所用的货币单位。例如:USD、EUR |
price | string | 不带货币符号的订阅价格。 |