Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

查询交易记录

简要描述

用于查询交易记录。
在每日24点前的充值记录,会在次日7点生成账单。


更新记录

更新日期更新内容
2024-10-16增加返回 debitOrCreditFlag 字段
2024-10-16transactionSource 字典值更新
2025-03-26查询条件增加 isAuthorization
如果 isAuthorization=false,展示未结算流水;如为 true,展示已结算流水。客户消费的订单初始会在 false 列表,结算后进入 true 列表。

请求URL

${baseUrl}/op/card/H/transactions

请求方式

  • 方法:POST
  • Content-Type:application/json

请求参数

参数名必选类型说明
cardNumberstring卡号
offsetstring偏移量,从0开始,例如0/10/20
pageSizestring数量
isAuthorizationint0:未结算订单,1:已结算订单
creationTimeFromstring起始时间,格式 yyyy-MM-dd
creationTimeTostring结束时间,格式 yyyy-MM-dd

返回示例

{
  "data": [
    {
      "amount": 10,
      "creationTime": "2024-07-17T23:00:20.609Z",
      "currency": "HKD",
      "isATM": false,
      "isAuthorization": false,
      "isInCountry": true,
      "isOnline": false,
      "isPos": false,
      "memo": "Repayment for order r-2342342422342343 (501)",
      "reversal": false,
      "settlementDate": "2024-07-18T00:00:00Z",
      "transactionId": 1000001081427,
      "transactionSource": "6",
      "transactionType": "5",
      "txCompleted": true,
      "acquirerCurrency": "",
      "acquirerAmount": 0,
      "cardAcceptorName": ""
    },
    {
      "amount": 11,
      "creationTime": "2024-07-18T23:00:43.07Z",
      "currency": "HKD",
      "isATM": false,
      "isAuthorization": false,
      "isInCountry": true,
      "isOnline": false,
      "isPos": false,
      "memo": "Repayment for order r-240718180106121536 (501)",
      "reversal": false,
      "settlementDate": "2024-07-19T00:00:00Z",
      "transactionId": 1000001081883,
      "transactionSource": "6",
      "transactionType": "5",
      "txCompleted": true,
      "acquirerCurrency": "HKD",
      "acquirerAmount": 235,
      "cardAcceptorName": "AlipayHK*ALIPAY"
    }
  ],
  "msg": "操作成功",
  "status": 200,
  "success": true
}

返回参数说明

参数名称示例参数说明schema
datajsonArray响应数据,见下表交易记录
msg操作成功响应消息string
status200响应码int
successtrue是否成功:成功true,失败falseboolean

data - 交易记录字段说明

参数名称示例参数说明
amount23434金额
creationTime2024-07-17T23:00:20.609Z交易创建时间
settlementDate2024-07-17T23:00:20.609Z结算时间
currencyHKD币种
acquirerCurrencyUSD请求币种
acquirerAmount23.1请求金额
cardAcceptorNameorder r-2342342422342343授权商户信息
isATMfalse是否ATM取现
isAuthorizationfalse是否授权:true时amount金额为0,acquirerAmount为实际授权金额,结算后amount才会有值
isInCountryfalse是否本地国家
isOnlinefalse是否线上
isPosfalse是否POS
memoRepayment for order r-2342342422342343 (501)交易信息
transactionId1000001081427交易单号
debitOrCreditFlagDD -> 扣账(减少) C -> 记账(增加)
transactionSource6交易来源,见下方字典
transactionType5交易类型,见下方字典
txCompletedtrue是否完成,完成后,amount一开始为0的记录会生成实际结算金额

字典说明

transactionType - 交易类型字典

说明描述
0unknown
1newAccount新建账户。
2cardSale新卡开卡。
3purchasePOS消费或线上消费,或移动端消费。
4refund退款至卡或钱包。
5account fundingTopUp 通过POS向钱包充值,币种支持与否均可。
6withdraw通过POS或ATM取款,或无需卡的银行转账操作等。
7balanceInquiry余额查询。
8p2p点对点转账。
9walletTransfer钱包之间转账。
10exchange货币兑换(买/卖方)。
11exchangeMargin不同币种间兑换差额。
12secondPresentment提交信息(如汇票等)。
13chargeback拒付处理。
14adjustment资金调整。
15exchangeAdjustment汇率调整。
16maintenance账户维护。
17chargeoff坏账核销。
18withholding优惠金/扣款保留。
19closeAccount账户关闭。
20reward奖励发放。
21shipping卡片发货(标准快递)。
22expeditedShipping卡片加急快递。
23addressing注册FPS快速支付ID。
24settlement结算。
25consolidated账户合并。
26interest利息发放。
27cashback返现。
28fee扣费。
29monthly fee月费。
30annual fee年费。
31fastFundVisa即时到账。
32loadReversal充值撤销。
33expiry过期资金返还至最初出资方。
34moneyReceiveMastercard快速到账。
35latePaymentFee逾期付款手续费。

transactionSource - 交易来源字典

说明
0Unknown
1InWalletPOS
2OutOfWalletPOS
3InWalletATM
4OutOfWalletATM
5Online
6Partner = TopUp
7Customer
8Internal
9Static
10MobileCommerce
11OnUs
12OutOfWalletOnline