# 交易记录分页列表查询

# 调用方式: GET

# 接口地址:

https://api.freelog.com/v3/transactions/records
1

# url传入参数说明:

参数 必选 类型及范围 说明
ownerId 必选 int 交易记录所属者ID; 根据所属者类型动态赋值userId或nodeId
ownerType 必选 int 交易记录所属者类型; 1:资源创作和 2:节点 3:C端普通消费者
transactionStatus 可选 int 1:交易成功 2:交易成功但是存在退款
businessType 可选 string 支付场景枚举 ContractRoutinePayment: 合约常规交易
minTransactionAmount 可选 number 最小交易金额
maxTransactionAmount 可选 number 最大交易金额
startTransactionDate 可选 datetime 交易开始时间(例如2025-12-19T08:03:47.695Z或者2025-12-19 16:03:47)
endTransactionDate 可选 datetime 交易截止时间(例如2025-12-19T16:00:00.000Z或者2025-12-19 24:00:00)
keywords 可选 string 搜索关键字;

# 返回说明:

返回值字段 字段类型 字段说明
id string 交易记录ID
paymentId string 支付记录ID
ownerId int 所有者ID; 根据所有者类型动态赋值userId或nodeId
ownerName string 所有者名称
ownerType int 所有者类型 1:资源创作者 2:节点商
currencyType int 货币类型 1:人民币 2:美元
transactionType number 交易类型 1:出金 2:入金
transactionSubType number 交易子类型
100: 资源合约交易
101: 展品合约交易
199: 其他合约支付
999: 其他支付
transactionAmount number 交易金额
refundAmount number 退款金额
transactionDate date 交易日期
transactionStatus number 1:交易成功 2:交易成功但是存在退款
counterpartyId number 交易对方ID
counterpartyType number 交易对方类型 1:资源创作者 2:节点商
counterpartyName string 交易对名称
remark string 交易说明
attachInfo object 交易附加信息;不同交易场景取值不同;

# 返回示例:

{
    "ret": 0,
    "errCode": 0,
    "data": {
        "skip": 0,
        "limit": 20,
        "totalItem": 1,
        "dataList": [
            {
                "id": "794024831209840640",
                "paymentId": "794024801694523392",
                "ownerId": 50017,
                "ownerType": 1,
                "ownerName": "yuliang",
                "transactionType": 2,
                "transactionSubType": 100,
                "transactionAmount": 0.01,
                "currencyType": 1,
                "refundAmount": 0,
                "feeAmount": 0,
                "transactionDate": "2025-12-19T08:03:47.695Z",
                "transactionStatus": 1,
                "counterpartyId": 80000014,
                "counterpartyType": 2,
                "counterpartyName": "潇潇落木",
                "remark": "资源-yuliang/七里香-付费订阅",
                "attachInfo": {
                    "contractId": "6944fd843c011c002f7d8762",
                    "subjectId": "6376ff5daacaf90039568001",
                    "subjectName": "yuliang/七里香",
                    "subjectType": 1,
                    "contractName": "付费订阅",
                    "licensorId": "6376ff5daacaf90039568001",
                    "licensorName": "yuliang/七里香",
                    "eventId": "a2da448a",
                    "code": "S201",
                    "service": "freelog",
                    "name": "TransactionEvent",
                    "triggerUserId": 50017,
                    "fromState": "initial",
                    "toState": "auth"
                }
            }
        ]
    },
    "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