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

{OMG_API_URL} is the OMG API domain, which can be obtained from the backend.

Headers

Name
Value

Content-Type

"application/json; charset=utf-8"

sign

"your_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.

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

Name
Required
Type
Description

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

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

Last updated