Game Order API
Description of Requirement:
The user is confirmed as the only player via the character verification API. After that, the user selects the item on the Smile One page and generates an order to the merchant (in the game). To ensure order accuracy, Smile One requires the merchant to provide the Game Order Creation API and the following parameters to create an order.
Name | Required (Y/N) | Type | Description |
---|---|---|---|
uid | Y | string | User role id |
productid | Y | string | Product identifier |
amount | N | string | Product price |
currency | N | string | Currency |
sign | Y | string | Signature verification code |
Request method:POST. Parameters are passed in json format.
// success
{
"status": 200,
"game_order": "2017051914172236111",
"error": ""
}
// error
{
"status": 201, // Check Appendix 1
"game_order": "",
"error": "cause of error"
}
Check Appendix 1 for details regarding the error codes.