跳到主要内容

概述

该接口用于根据客户标识或卡片标识查询交易报文记录,支持分页查询及按时间范围筛选,方便商户进行交易追踪、问题排查、对账及交易分析。

查看Network Messages

cURL -X POST /card-api/v1/network-messages
-H 'Content-Type: application/json'
-H 'Authorization: {token}'
-d '{
"cursor": "2090383903844655104",
"from_time_at": "",
"to_time_at": "",
"account_id": "",
"limit": "10",
"ascending": false,
"card_id": ""
}
参数名类型长度是否必填描述
cursorstring1分页游标
from_time_atstring20起始时间
  • ISO 8601格式的日期时间
to_time_atstring20结束时间
  • ISO 8601格式的日期时间
account_idstring20账户ID
card_idstring20卡片ID
limitint20每页返回的最大结果数,范围 1–500,默认100
ascendingboolean10是否按升序返回结果,默认 false(降序)
{
"code": "200",
"msg": "操作成功",
"trace_id": "13589f115bd54f4fb14db78c6d623a9d",
"data": {
"data": [
{
"mcc": "6060",
"program_value": 6,
"card_number": "6420738445328832472",
"creation_time": "2025-01-20T18:30:56+08:00",
"transaction_id": null,
"transaction_amount": 0.20,
"transaction_currency": "USD",
"billing_amount": 0.20,
"billing_currency": "USD",
"whether_reversal": "FALSE",
"response_code": "57",
"store_name": "401 Congress",
"store_city": "Tokyo",
"store_country_code": "JP",
"transaction_source": "5",
"transaction_type": "3",
"failed_param": "blocked_countries",
"modified_time": "2025-01-20T18:30:56+08:00",
"replacement_amounts": null,
"account_id": "1016X10007749180967",
"parent_account_id": null,
"card_id": null,
"auth_released_time": null,
"relate_trnx_id": null,
"trnx_status": "DECLINED"
},
{
"mcc": "6060",
"program_value": 6,
"card_number": "6420738445328832472",
"creation_time": "2025-01-20T18:19:15+08:00",
"transaction_id": null,
"transaction_amount": 0.10,
"transaction_currency": "USD",
"billing_amount": 0.10,
"billing_currency": "USD",
"whether_reversal": "FALSE",
"response_code": "57",
"store_name": "401 Congress",
"store_city": "Tokyo",
"store_country_code": "JP",
"transaction_source": "5",
"transaction_type": "3",
"failed_param": "blocked_countries",
"modified_time": "2025-01-20T18:19:15+08:00",
"replacement_amounts": null,
"account_id": "1016X10007749180967",
"parent_account_id": null,
"card_id": null,
"auth_released_time": null,
"relate_trnx_id": null,
"trnx_status": "DECLINED"
},
],
"next_cursor": null,
"has_more": false
}
}
参数名类型描述
mccstringMCC商户类别码
program_valueintProgram枚举值
card_numberstring卡号
creation_timestring创建时间
transaction_idstring交易ID
transaction_amountstring交易金额
transaction_currencystring交易币种,ISO 4217货币代码
billing_amountstring持卡人记账金额
billing_currencystring持卡人记账币种
whether_reversalboolean是否撤销
  • TRUE
  • FALSE
response_codestring响应代码
store_namestring店铺名称
store_citystring店铺城市
store_country_codestring店铺国家代码,ISO 3166国家代码
transaction_sourcestring交易来源名称
transaction_typestring交易类型名称
failed_paramstring交易错误风控参数
modified_timestring记录更新时间
replacement_amountsstring替换金额信息
account_idstring账户ID
parent_account_idstring父级账户ID
card_idstring卡片ID
auth_released_timestring授权释放时间
relate_trnx_idstring关联交易ID
trnx_statusstring交易状态
  • PROCESSED
  • APPROVED
  • DECLINED