Download OpenAPI specification:Download
API document for Astronize Payment Platform for game developer, This document following standard of OpenAPI 3.0.3 Spec
Remark: This API is provided as an optional solution for games that do not possess a distinct game server.
{- "statusCode": 200,
- "message": "Success",
- "data": [
- {
- "serverId": "1234",
- "serverName": "Asia"
}, - {
- "serverId": "1235",
- "serverName": "Global"
}
]
}Verify that the game's UID exists and retrieve some game information.
| uuid required | string Example: UID12345678 Game's UID (unique id of user or character) |
{- "statusCode": 200,
- "message": "Success",
- "data": [
- {
- "characterId": "1234567890123456789",
- "characterName": "Vassal",
- "serverId": "1235",
- "serverName": "Global"
}
]
}Add cash to the game's UID.
| uuid required | string Game's UID (unique id of user or character) |
| amount required | integer Fiat currency amount e.g. 1.99 USD |
| point required | integer Game's top-up point e.g. 100 gold |
| itemId required | string Game's item id e.g. gold01 |
| serverId | string Game's server id e.g. server01 |
| orderNumber required | string Unique identifier generated by Astronize Platform for each distinct transaction. |
| signature required | string HMAC SHA256 signature, stitching combines the parameters with their corresponding values into the format of "parameter = parameter value", and connects these parameters with the & character, and the resulting string is the string to be signed. |
{- "uuid": "UID12345678",
- "amount": 1.99,
- "point": 100,
- "itemId": "gold01",
- "serverId": "server01",
- "orderNumber": "1051_858842",
- "signature": "5407f7cdb1759a673cdfe496169a36ad6f173bc50d04e1581961d4a946899e3f"
}{- "statusCode": 200,
- "message": "Success",
- "data": {
- "transactionId": "10071",
- "orderNumber": "1051_858842",
- "signature": "e92db2a9872057c420bf1f1fd0ce278746b5799e271983c7538d295bc8bb1715"
}
}