Role Check API
Description of Requirement:
When users purchase items in Smile One, they need to fill in the information such as the role ID and server ID. Smile One requires the merchant to provide API and the following parameters to query whether the role exists or not, to ensure that the user can purchase the product correctly.
Name | Required (Y/N) | Type | Description |
---|---|---|---|
uid | Y | string | User role id |
sid | N | string | Game server id |
sign | Y | string | Signature verification code |
Request method:POST. Parameters are passed in json format.
Return example:
// success
{
"status": 200,
"nickname": "testname",
"error": ""
}
// error
{
"status": 201, // Check Appendix 1
"nickname": "xxx",
"error": "cause of error"
}
Check Appendix 1 for details regarding the error codes.