4.5 Check Transfer Operation (查询转帐纪录)
Description (说明)
This function allows Operator to query if previous transaction is successfully updated.
此功能用于查詢转帐交易的状态。
Purpose (用途)
当存款/提款API有例外情况,可调用此API查询转帐纪录状态以确认存款/提款是否成功。
When there are exceptions to the deposit/withdrawal API, you can call this API to query the status of the transfer record to confirm whether the deposit/withdrawal is successful.
URL (网址)
https://{host}/api/check_transfer_operation
Request Method
POST
Request Parameters (请求参数)
| Field (栏位) | Type (型态) | Required (必要) | Description (说明) |
|---|---|---|---|
| agentId | String | Y | Agent ID <= 50 characters 代理帐号 |
| transactionCode | String | Y | Transaction Code <= 30 characters 交易码 |
{
"agentId": "hrgag",
"transactionCode": "1656647292425"
}
Return Result (返回结果)
| Field (栏位) | Type (型态) | Description (说明) |
|---|---|---|
| code | String | Status Code fixed 4 characters 状态码 |
| data | Object | |
| transactionCode | String | Received transaction code by game provider, for operator to match transaction <= 30 characters 用于避免相同重复操作的唯一ID |
| agentId | String | Agent ID <= 50 characters 代理帐号 |
| userId | String | User ID <= 50 characters 玩家帐号 |
| amount | String | Deposit / Withdraw amount decimal places <= 4 存款/取款金额 |
| freeCredit | String | Transfer free credit amount decimal places <= 4 转入/转出泥码額度 if your company has not enabled the free credit function, then please ignore this attribute. 若贵司未开启泥码功能,则请忽略此属性 |
| preBalance | String | Balance before transaction decimal places <= 4 交易前的帐户余额 |
| preFreeCredit | String | Free credit before transaction decimal places <= 4 交易前的泥码余额 if your company has not enabled the free credit function, then please ignore this attribute. 若贵司未开启泥码功能,则请忽略此属性 |
| currentBalance | String | Balance after transaction decimal places <= 4 交易后的帐户余额 |
| currentFreeCredit | String | Free credit after transaction decimal places <= 4 交易后的泥码余额 if your company has not enabled the free credit function, then please ignore this attribute. 若贵司未开启泥码功能,则请忽略此属性 |
| createDate | String | Operation date fixed 28 characters 资料新增时间 format 格式 yyyy-MM-dd'T'HHZ timezone 时区 GMT+8 |
{
"code": "0000",
"data": {
"transactionCode": "1656647292425",
"agentId": "hrgag",
"userId": "hrgpl00017",
"amount": "-900.0",
"freeCredit": "-100.0",
"preBalance": "900.0",
"preFreeCredit": "100.0",
"currentBalance": "0.0",
"currentFreeCredit": "0.0",
"createDate": "2022-07-01T11:48:13.430+0800"
}
}
Sample Request For Each Language (各语言请求范例)
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"agentId\":\"hrgag\",\"transactionCode\":\"1656647292425\"}");
Request request = new Request.Builder()
.url("https://{host}/api/check_transfer_operation")
.method("POST", body)
.addHeader("Authorization", "Basic TWpNQ0JSM1NFYnBrYXdSNTpNak1DQlIzU0VicGthd1I1")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();