4.6 Get Transfer Operation Log (查询交易区间转帐纪录)
Description (说明)
This function is used when something wrong with transaction records sync process. Operator may specify start date and end date to get transaction data during this period.
运营商可以指定开始日期和结束日期以获取此期间的转帐紀錄。
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/get_transfer_operation_log
Request Method
POST
Request Parameters (请求参数)
| Field (栏位) | Type (型态) | Required (必要) | Description (说明) |
|---|---|---|---|
| agentId | String | Y | Agent ID <= 50 characters 代理帐号 |
| userId | String | N | User ID <= 50 characters 玩家帐号 If no user is specified, then search all users. 若未指定玩家,將查詢全部玩家 |
| startTime | String | Y | Start time fixed 28 characters 欲查询纪录的起始时间 format 格式 yyyy-MM-dd'T'HH:mm:ss.SSSZ timezone 时区 GMT+8 |
| endTime | String | Y | End time fixed 28 characters 欲查询纪录的结束时间 format 格式 yyyy-MM-dd'T'HH:mm:ss.SSSZ timezone 时区 GMT+8 |
{
"agentId": "hrgag",
"userId": "hrgpl0001",
"startTime": "2022-07-01T00:00:00.000+0800",
"endTime": "2022-07-02T00:00:00.000+0800"
}
Return Result (返回结果)
| Field (栏位) | Type (型态) | Description (说明) |
|---|---|---|
| code | String | Status Code fixed 4 characters 状态码 |
| data | Array of Object | Each record |
| 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",
"preRealCredit": "800.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();