查看卡片交易记录【接口】
简要描述
查看卡片交易记录
请求URL
/open/api/card/trade/list
请求方式
POST
请求参数说明
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
cardId | 是 | string | 虚拟卡id |
current | 是 | Integer | 当前页 |
size | 是 | Integer | 查询条数 |
请求示例
{
"cardId": "c_xxxxxxxxxxx",
"current": 1,
"size":10
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
success | boolean | 成功标志 |
error | boolean | 失败标志 |
msg | string | 返回处理消息 |
code | integer | 返回代码 |
+model | object | 返回数据对象 data |
+records | string | 列表 |
└transactionId | string | 卡交易id |
└cardId | string | 卡id |
└cardSeqNo | string | 卡序列号 |
└cardLast4 | string | 卡号后四位 |
└desp | string | 授权描述 |
└reason | string | 失败的原因 |
└amount | integer | 消费金额 |
└currency | string | 消费金额币种 |
└status | string | 交易状态 PENDING :交易授权PENDING EXPIRED:授权过期 REVERSED:授权退回(例如绑卡预扣退回) DECLINED:拒付 COMPLETE:交易完成 REFUND :交易退款 FEE: transaction fee MONTHLY_FEE: 月费(Only for monthly fee cards) |
└tradeAt | string | 交易时间 |
└size | integer | record元素个数 |
└total | integer | 总数 |
└current | integer | 当前页 |
返回示例
{
"success": true,
"error":false,
"msg": "成功",
"code": 0,
"model": {
"records": [
{
"transactionId": "t_xxxxx",
"cardId": "c_xxxxxxxxxx",
"cardSeqNo": "CXXXXXXXX",
"cardLast4": "9352",
"desp": "Fake Transaction in Sandbox Mode(-$200.00)",
"reason": "balance not enough",
"amount": -20000,
"currency": "USD",
"status": "DECLINED",
"tradeAt": 1646306072727
},
{
"transactionId": "t_xxxxx",
"cardId": "c_xxxxxxxxxx",
"cardSeqNo": "CXXXXXXXX",
"cardLast4": "9352",
"desp": "Fake Transaction in Sandbox Mode(-$1.00)",
"reason": null,
"amount": -100,
"currency": "USD",
"status": "PENDING",
"tradeAt": 1646392472727
},
{
"transactionId": "t_xxxxx",
"cardId": "c_xxxxxxxxxx",
"cardSeqNo": "CXXXXXXXX",
"cardLast4": "9352",
"desp": "Fake Transaction in Sandbox Mode(-$100.00)",
"reason": null,
"amount": -10000,
"currency": "USD",
"status": "COMPLETE",
"tradeAt": 1646392472727
},
{
"transactionId": "t_xxxxx",
"cardId": "c_xxxxxxxxxx",
"cardSeqNo": "CXXXXXXXX",
"cardLast4": "9352",
"desp": "Fake Transaction in Sandbox Mode($100.00)",
"reason": null,
"amount": 5000,
"currency": "USD",
"status": "REFUND",
"tradeAt": 1646478872727
}
],
"size": 3,
"total": 3,
"current": 1
},
"traceId": 1646651672727
}
备注
更多返回错误代码请看首页的错误代码描述
Updated about 1 year ago