1. Wallet
OPEN-API
  • API Call Description
  • Constant Declaration
    • Wallet
      • Wallet Status
      • In Out Type
      • Transaction Type
      • Transaction Status
    • Bin
      • Bin Type
      • Bin Mode
      • Bin Status
    • Card
      • Card Status
      • Card Trade
        • Card Trade Type
        • Card Trade Result
    • Order
      • Card Type
      • Order Type
      • Order Status
      • Order Bill
        • Order Bill Type
        • In Out Type
        • Bill Category
    • Payee
      • Payee Status
    • Payment
      • Fee Mode
      • Payment Status
  • Webhook
    • Card Notify
      • Order
      • Card
      • Card Trade
    • Payee Notify
    • Payment Notify
    • Wallet Notify
  • Api
    • Wallet
      • 钱包列表
        POST
      • 钱包详情
        POST
      • 交易流水列表
        POST
      • 交易详情
        POST
      • 获取兑换汇率
        POST
    • Card
      • Bin
        • 卡Bin列表
        • 卡Bin详情
        • 卡Bin费用
        • 卡Bin限制
      • Card
        • 卡列表
        • 卡详情
        • 卡激活
        • 卡冻结
        • 卡解冻
        • 发起销卡
        • 卡交易列表
        • 商户交易评分
      • Order
        • 开卡
        • 卡充值
        • 订单列表
        • 订单详情
      • Holder
        • 持卡人列表
        • 创建持卡人
        • 编辑持卡人
        • 持卡人详情
        • 删除持卡人
    • PayMethod
      • 付款方式
    • Payee
      • 运营资金来源列表
      • 预期付款目的列表
      • 创建收款方
      • 编辑收款方
      • 申请收款方
      • 删除收款方
      • 收款方列表
      • 收款方详情
    • Payment
      • 付款原因
      • 创建付款
      • 付款列表
      • 付款详情
  1. Wallet

交易详情

POST
/{{version}}/openApi/wallet/getTransactionBill

使用场景#

 获取钱包交易流水详情。
 备注: 这里返回的是列表形式,通常交易详情只有一条记录,在特殊情况下会返回列表,如”换汇“,会返回对应的收入/支出两条对应的记录。
请求参数#
Http Post Application/json
字段类型是否必传描述
customer_idlong是客户id
app_idlong是应用id
keystring是授权key
transaction_idstring是交易 id
示例
{
    "customer_id": 10001001,
    "app_id": 100001,
    "key": "ae9ae3f5ad284ef4836de18aa3d41c47",
    "transaction_id": "10002024020407465400001000100182e74f720f9df26d"
}
响应内容#
字段类型是否必传描述
transaction_listarray[object]否交易记录数组
transaction_list.record_idstring否交易记录id,如开卡订单id,付款id,收款id,可以结合 transaction_type 定位到相关记录
transaction_list.transaction_idstring是交易 id
transaction_list.out_transaction_idstring是外部交易 id
transaction_list.in_out_typeint是收支类型 1:收入 2:支出
transaction_list.transaction_typeint是交易类型
transaction_list.transaction_descstring是交易类型描述
transaction_list.amountfloat是交易余额,单位:元
transaction_list.currencystring是交易币种
transaction_list.before_balancefloat是变动前金额
transaction_list.after_balancefloat是变动后金额
transaction_list.statusint是交易状态 1:待审批 2:通过 3:拒绝
transaction_list.reject_reasonstring是拒绝原因
transaction_list.remarkstring是备注
transaction_list.transaction_timedatetime是交易时间
transaction_list.create_atdatetime是创建时间
示例
{
    "code": 0,
    "message": "success",
    "data": {
        "transaction_list": [
            {
                "record_id": "",
                "transaction_id": "300020240221051141000010000011fe4e6b5fb723e436",
                "out_transaction_id": "pm_hNdzztERid5DVGf0",
                "product_id": 3000,
                "in_out_type": 2,
                "transaction_type": 5010,
                "transaction_desc": "付款",
                "amount": 1025,
                "currency": "USD",
                "before_balance": 8475,
                "after_balance": 7450,
                "approve_type": 20,
                "approve_at": "2024-02-21 05:11:44",
                "status": 2,
                "reject_reason": "",
                "attach": "{\"customer_id\":10000011,\"app_id\":100001,\"wallet_sn\":\"037c90d5c0204d6c87bf21d569209b3a\",\"payee_id\":\"pe_dyBF25XLnbN7VsjC\",\"pay_out_amount\":1000,\"pay_out_currency\":\"USD\",\"exchange_rate\":7.9753392,\"entry_amount\":7965.33,\"entry_currency\":\"HKD\",\"fee_detail\":{\"fee\":25,\"pay_method\":\"SWIFT\",\"fee_mode\":\"SHA\",\"fee_rate\":0,\"our_fee\":25,\"sha_fee\":15,\"same_name_extra_fee\":10},\"payment_id\":\"pm_eNPPXVFmVqAEbvFB\"}",
                "remark": "付款",
                "transaction_time": "2024-02-21 05:11:41",
                "create_at": "2024-02-21 05:11:42"
            }
        ]
    }
}

请求参数

Body 参数application/json

示例
{
    "customer_id": 10001004,
    "app_id": 100006,
    "key": "0408ab79eb214e7d81d9fd447b5916a2",
    "transaction_id": "100020250303025827000010001004cbc2da2769994955"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://prod-cn.your-api-server.com/{{version}}/openApi/wallet/getTransactionBill' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customer_id": 10001004,
    "app_id": 100006,
    "key": "0408ab79eb214e7d81d9fd447b5916a2",
    "transaction_id": "100020250303025827000010001004cbc2da2769994955"
}'

返回响应

🟢200成功
application/json
Body

示例
{}
修改于 2026-03-19 06:16:48
上一页
交易流水列表
下一页
获取兑换汇率
Built with