Balance Deposit/Withdrawal
Transfer
This API is provided by the OMG platform and is called by the integrator.
POST {OMG_API_URL}/api/cash/v1/transfer?trace_id=your_trace_id
Headers
Content-Type
"application/json; charset=utf-8"
sign
"your_sign_string"
Body
app_id
string
The unique identifier for the merchant, available in the merchant backend.
token
string
The user's token on the OMG platform can be obtained through the Get User Game Token API.
amount
string (decimal)
Transfer amount (supports up to 4 decimal places): positive for credit, negative for debit.
tx_id
string
Transaction ID for the transfer, generated by the integrator and must be unique.
timestamp
integer
Timestamp (in seconds)
Integrator Request Parameter Example
OMG Platform Response Parameter Example
Response Example Parameter Descriptions
data
Yes
object
Response Data
tx_id
Yes
string
Transaction ID provided by the integrator.
ptx_id
Yes
string
Transaction ID returned by the OMG platform, generated by the OMG platform.
state
Yes
integer
Transfer Status
0: Failed, 1: Successful
code
Yes
integer
Status Code
msg
Yes
string
Message
Error Code
Last updated