Single Wallet

The single wallet mode refers to a process in which, during gameplay, the MINI.GAME platform makes real-time API calls to the integrator for each transaction to adjust the player’s balance accordingly.

Request Parameters

All API calls made by the MINI.GAME platform to the merchant will include

POST /ACCESS_URL?trace_id=minigame_trace_id

Parameter
Value

Content-Type

"application/json; charset=utf-8"

sign

"minigame_sign_string"

Please refer to the Signature Algorithm and Example page for details on the signature algorithm.

Body

Name
Type
Description

appid

string

The unique identifier for the merchant, available in the merchant backend.

timestamp

integer

Timestamp of the request sent (in seconds)


Response Parameters

When the HTTP status code returned by the integrator is 200, it indicates that the API access was successful, and the response can be parsed normally. Any other HTTP error indicates a network issue.

Header

Parameter
Value

Content-Type

application/json

Body

Parameter
Type
Description

code

integer

When the status code code=1, it indicates a successful call.

msg

string

Prompt message

data

object

Response Data

Error Code

For more error codes, please refer to the General Error Codes page description.

Last updated