PromotionNotification
POST/promotion_notification
PromotionNotification
Request
- application/json
Body
required
Array [
]
non-empty
Unique ID of the webhook
Notification creation time, format example: 2021-11-08T05:45:20Z
Update time, format example: 2021-11-08T05:45:20Z
event_type
event version
resource_type
resource version,currenct version:v1
Callback summary information
resource
object
non-empty
Application ID, assigned by MidasBuy
non-empty
Promotion occurrence time, following the ISO 8601 standard for date and time representation format, for example: 2006-01-02T15:04:05Z07:00
non-empty
Promotion last update time, following the ISO 8601 standard for date and time representation format, for example: 2006-01-02T15:04:05Z07:00
non-empty
Unique identifier of the game player within the game
non-empty
The number of the game server
non-empty
Midasbuy promotion order number, globally unique
Payment order number associated with the promotion
promotion_items
object[]
>= 1
product list
non-empty
promotion id
non-empty
promotion model id
non-empty
product id
non-empty
game product id
Value must match regular expression ^\d+$
game product quantity
[UNDEFINED
, VIRTUAL_CURRENCY
, VIRTUAL_ITEM
, SUBSCRIPTION
, REDEEM_CODE
, POINTS
, GROWTH_VALUE
]
product type
Responses
- 200
- default
OK
- application/json
- Response
- Example
Response
{
"processed": true,
"message": "string"
}
Error response structure
- application/json
- Response
- Example
Response
Array [
]
Array [
]
details
object[]
The type of the serialized message.
causes
object[]
{
"name": "string",
"message": "string",
"details": [
{
"@type": "string"
}
],
"debug_id": "string",
"causes": [
{
"cause": "string",
"solution": "string"
}
]
}