Astronize Payment Platform for Game Developer (0.9.0)

Download OpenAPI specification:Download

Logo API document for Astronize Payment Platform for game developer, This document following standard of OpenAPI 3.0.3 Spec

Get Server List

Remark: This API is provided as an optional solution for games that do not possess a distinct game server.

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{
  • "statusCode": 200,
  • "message": "Success",
  • "data": [
    ]
}

Get Identity By UUID

Verify that the game's UID exists and retrieve some game information.

Authorizations:
ApiKeyAuth
path Parameters
uuid
required
string
Example: UID12345678

Game's UID (unique id of user or character)

Responses

Response samples

Content type
application/json
{
  • "statusCode": 200,
  • "message": "Success",
  • "data": [
    ]
}

Add Cash To Game

Add cash to the game's UID.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
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.
Call the HMAC SHA256 algorithm with secret key to generate the sign, e.g. HmacSHA256("uuid=UID12345678&amount=200&orderNumber=1051_858842", $SECRET_KEY)

Responses

Request samples

Content type
application/json
{
  • "uuid": "UID12345678",
  • "amount": 1.99,
  • "point": 100,
  • "itemId": "gold01",
  • "serverId": "server01",
  • "orderNumber": "1051_858842",
  • "signature": "5407f7cdb1759a673cdfe496169a36ad6f173bc50d04e1581961d4a946899e3f"
}

Response samples

Content type
application/json
{
  • "statusCode": 200,
  • "message": "Success",
  • "data": {
    }
}