PromotionNotification
POSTpromotion_notification
PromotionNotification
Request
- application/json
Body
required
id string
non-empty
Unique ID of the webhook
create_time string
Notification creation time, format example: 2021-11-08T05:45:20Z
update_time string
Update time, format example: 2021-11-08T05:45:20Z
event_type string
event_type
event_version string
event version
resource_type string
resource_type
resource_version string
resource version,currenct version:v1
summary string
Callback summary information
resource
object
Responses
- 200
- default
OK
- application/json
- Response
- Example
Response
processed boolean
message string
{
"processed": true,
"message": "string"
}
Error response structure
- application/json
- Response
- Example
Response
name string
message string
details
object[]
debug_id string
causes
object[]
{
"name": "string",
"message": "string",
"details": [
{
"@type": "string"
}
],
"debug_id": "string",
"causes": [
{
"cause": "string",
"solution": "string"
}
]
}
- curl
- go
- python
- csharp
- nodejs
- php
- java
- CURL
curl -L '' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id": "2021110805452010020000",
"create_time": "2021-11-08T05:45:20Z",
"update_time": "2021-11-08T05:45:20Z",
"event_type": "PROMOTION_ORDER_FINISHED",
"event_version": "v1",
"resource_type": "RESOURCE_TYPE_PROMOTION",
"resource_version": "v1",
"summary": "extent info",
"resource": {
"app_id": "1450015065",
"create_time": "2021-11-08T05:45:20Z",
"update_time": "2021-11-08T05:45:20Z",
"user_id": "12345678",
"server_id": "1",
"promotion_order_id": "SG2024113000900_EXdgdg",
"payment_order_id": "SG2024113000900",
"promotion_items": [
{
"promotion_id": "Activity_1728531062_YDWLUC",
"model_id": "23ggn9U0vwtZKK",
"product_id": "com.games.abc.sku1",
"game_product_id": "com.games.abc.sku1",
"quantity": "1",
"product_type": "VIRTUAL_CURRENCY"
}
]
}
}'
ResponseClear