Single Wallet

The single wallet mode refers to a process in which, during gameplay, the OMG 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 OMG platform to the merchant will include

POST /callback_url?trace_id=omg_trace_id

Name
Value

Content-Type

"application/json; charset=utf-8"

sign

"omg_sign_string"

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

Body

Name
Type
Description

app_id

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

Name
Value

Content-Type

application/json

Body

Name
Type
Description

code

integer

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

msg

string

Message

data

object

Response Data

Error Code

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

Last updated