UserValidate
POST/user_validate
UserValidate
Request
- application/json
Body
required
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
Unique identifier of the game player within the game
The number of the game server
Responses
- 200
- default
OK
- application/json
- Response
- Example
Response
Application ID, assigned by MidasBuy
Unique identifier of the game player within the game
The number of the game server
the nick name of user
Whether to prohibit user recharge. If prohibited, MidasBuy will terminate the recharge process. If not set, the default is not disabled (optional)
forbidden_reason
object
Error codes for prohibited recharge, defined by the Midasbuy, used for Midas to identify reasons and for statistics.1.ACCOUNT_STATUS_ABNORMAL:Account status abnormal (e.g. frozen/deactivated).2.COMPLIANCE_VERIFICATION_FAILED: Compliance verification failed (e.g. minor/high-risk region).3.INSUFFICIENT_PRIVILEGES:Account lacks recharge privileges(e.g. game level).4.RECHARGE_LIMIT_EXCEEDED:Daily/monthly recharge limit reached.5.GEO_RESTRICTION:Geographical restrictions apply.6.OTHER:Other reason.
details
Some extended user attributes required for the recharge process, set according to specific scenarios. Please contact Midas if needed (optional)
{
"app_id": "1450015065",
"user_id": "12345678",
"server_id": "1",
"user_name": "jack",
"is_topup_forbidden": "false",
"forbidden_reason": {
"code": "string",
"message": "string"
},
"user_attribute": {}
}
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"
}
]
}