# 支付信息详情查询

# 调用方式: GET

# 接口地址:

https://api.testfreelog.com/v3/transactions/payments/query
1

# url传入参数说明:

参数 必选 类型及范围 说明
paymentId 可选 string 支付记录ID;调用预支付接口时会返回此id
businessType 可选 string 支付场景; 合约常规支付: ContractRoutinePayment
outOrderId 可选 string 外部订单ID; 需要与参数businessType一起使用

# 返回说明:

返回值字段 字段类型 字段说明
id string 支付ID
payerId int 付款方ID
payerName string 付款方姓名
payerType int 付款方类型(1:资源创作者 2:节点商 3:普通消费者)
payeeId int 收款方ID
payeeName string 收款方姓名
payeeType int 收款方类型(1:资源创作者 2:节点商 3:普通消费者)
currencyType int 货币类型 1:人民币 2:美元
transactionAmount number 交易金额
confirmedAmount number 已确认金额(已分账金额)
unconfirmedAmount number 未确认金额
businessType string 支付时的业务场景
attachInfo object 支付时附加的数据;不同业务场景数据格式不同
description string 交易描述
tradeType stirng 交易渠道 微信公众号:T_JSAPI 微信小程序:T_MINIAPP 支付宝JS:A_JSAPI 支付宝正扫:A_NATIVE
delayAcctFlag string 是否延迟交易 是:Y 否:N
paymentExpireDate date 支付有效期
transactionStatus string 交易状态 P:处理中 F:交易失败 S:交易成功

# 返回示例

{
    "ret": 0,
    "errCode": 0,
    "data": {
        "payerId": 50529,
        "payerName": "cumins",
        "payerType": 1,
        "payerUserId": 50529,
        "payeeId": 80000255,
        "payeeName": "acarlikecar",
        "payeeType": 2,
        "currencyType": 1,
        "transactionAmount": 0.01,
        "payAmount": 0.01,
        "feeAmount": 0,
        "businessType": "ContractRoutinePayment",
        "outOrderId": "67119924-2b5a-42f6-9c50-a19191929f61",
        "attachInfo": {
            "contractId": "6948f3f7b246af002fc41b72",
            "subjectId": "6943b4ae5c6cb2002f4c47d2",
            "subjectName": "移动端测试002",
            "subjectType": 2,
            "contractName": "付费订阅",
            "licensorId": "80000255",
            "licensorName": "acarlikecar",
            "eventId": "a2da448a",
            "code": "S201",
            "service": "freelog",
            "name": "TransactionEvent",
            "triggerUserId": 50529,
            "fromState": "initial",
            "toState": "auth"
        },
        "description": "展品-移动端测试002-付费订阅",
        "tradeType": "T_JSAPI",
        "ip": "10.225.0.92",
        "delayAcctFlag": "Y",
        "paymentChannelUserId": "oDQXL6lkQKclIOTR0O4lDd0k_A-s",
        "requestDate": "20251222",
        "transactionStatus": "S",
        "refundStatus": 0,
        "totalRefundAmount": 0,
        "totalRefundFeeAmount": 0,
        "totalRefundCount": 0,
        "paymentExpireDate": "2025-12-22T07:37:14.940Z",
        "transactionStatusRemark": "交易成功",
        "channelTransactionId": "002900TOP2B251222153215P084ac139c4800000",
        "partyOrderId": "03242512225593527413107",
        "outTransactionId": "4200003011202512224992038890",
        "paymentCompleteDate": "2025-12-22T07:32:23.000Z",
        "transactionSubType": 101,
        "createDate": "2025-12-22T07:32:15.720Z",
        "updateDate": "2025-12-22T07:32:24.912Z",
        "id": "795104056016920576"
    },
    "msg": "success"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57