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
(说明)
agentIdStringYAgent ID <= 50 characters
代理帐号
transactionCodeStringYTransaction Code <= 30 characters
交易码
{
  "agentId": "hrgag",
  "transactionCode": "1656647292425"
}

Return Result (返回结果)

Field
(栏位)
Type
(型态)
Description
(说明)
codeStringStatus Code fixed 4 characters
状态码

Please refer to 5.4 Status Code for details.
详情请参考 5.4 状态代码
dataObject
transactionCodeStringReceived transaction code by game provider, for operator to match transaction <= 30 characters
用于避免相同重复操作的唯一ID
agentIdStringAgent ID <= 50 characters
代理帐号
userIdStringUser ID <= 50 characters
玩家帐号
amountStringDeposit / Withdraw amount decimal places <= 4
存款/取款金额
freeCreditStringTransfer free credit amount decimal places <= 4
转入/转出泥码額度

if your company has not enabled the free credit function, then please ignore this attribute.
若贵司未开启泥码功能,则请忽略此属性
preBalanceStringBalance before transaction decimal places <= 4
交易前的帐户余额
preFreeCreditStringFree credit before transaction decimal places <= 4
交易前的泥码余额

if your company has not enabled the free credit function, then please ignore this attribute.
若贵司未开启泥码功能,则请忽略此属性
currentBalanceStringBalance after transaction decimal places <= 4
交易后的帐户余额
currentFreeCreditStringFree credit after transaction decimal places <= 4
交易后的泥码余额

if your company has not enabled the free credit function, then please ignore this attribute.
若贵司未开启泥码功能,则请忽略此属性
createDateStringOperation 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();