PaymentNotification
POST/payment_notification
PaymentNotification
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
Transaction occurrence time, following the ISO 8601 standard for date and time representation format, for example: 2006-01-02T15:04:05Z07:00
non-empty
Transaction 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 identification of the gamer within the game
non-empty
payment order id
non-empty
The number of the game server
[UNDEFINED
, Created
, Paid
, Finished
, Refunded
]
order status
order_items
object[]
>= 1
order_items
non-empty
Unique identification of the item within Midasbuy
non-empty
Unique identification of the item within game
Value must match regular expression ^\d+$
quantity
[UNDEFINED
, VIRTUAL_CURRENCY
, VIRTUAL_ITEM
, SUBSCRIPTION
, REDEEM_CODE
, POINTS
, GROWTH_VALUE
]
product type
price
object
The ISO-4217 currency codes.:https://en.wikipedia.org/wiki/ISO_4217#Active_codes
Value must match regular expression ^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$
Amount, in units of the currency. For different currencies, we have restrictions on the number of decimal places for the amount. For example: for currencies like JPY, it's usually not a fraction, but an integer, like 100. For currencies like TND, it's subdivided into thousandths, so it's a decimal fraction, like 100.123. For the number of decimal places required for each currency code, please refer to the currency code.
total_price
object
The ISO-4217 currency codes.:https://en.wikipedia.org/wiki/ISO_4217#Active_codes
Value must match regular expression ^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$
Amount, in units of the currency. For different currencies, we have restrictions on the number of decimal places for the amount. For example: for currencies like JPY, it's usually not a fraction, but an integer, like 100. For currencies like TND, it's subdivided into thousandths, so it's a decimal fraction, like 100.123. For the number of decimal places required for each currency code, please refer to the currency code.
non-empty
shop region
non-empty
payment channel
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"
}
]
}