跳转至

查询钱包流水

查询钱包流水

接收钱包的在某一时间段的交易信息,例如消费,转账,存钱和其它相关交易

HTTP请求

GET /wallets/{{walletId}}/statement

Request Headers
{
    "Authorization": "Bearer {{access_token}}"
}
Content-Type: application/json
{
    "statusCode":200,
    "errorMsg": "",
    "statement": [
        {
            "creditDate": "2020-09-30",
            "description": "TRANSF P/OUTRA CONTA",
            "amount": 20.00,
            "transactionId": "67bdf90c-224d-11eb-adc1-0242ac120002",
            "comment": "",
            "entryTime": "2020-10-01T00:01:16",
            "type": "D"
        },
        {
            "creditDate": "2020-10-29",
            "description": "COMPRA COM CARTAO",
            "amount": 10.00,
            "transactionId": "0227bafa-224e-11eb-adc1-0242ac120002",
            "comment": "SAO PAULO BR",
            "entryTime": "2020-10-29T05:52:56",
            "type": "C"
        }
        ]
}

HTTP Headers 字段说明

Key Value
Authorization "bearer"+ "" + {{access_token}}

路径参数

参数 是否必填 类型 描述
walletId String 被查询钱包的钱包ID
startDate String 查询交易的起始日期, 格式 YYYY-MM-DD
endDate String 查询交易的结束日期, 格式 YYYY-MM-DD

Request Body 字段说明

参数 类型 描述
statusCode int 状态代码,200 代表成功2, 401 访问受限, 422 参数错误, 500 内部错误
errorMsg String 如果查询失败,返回的错误信息
statement JSON 返回的流水,格式是JSON数组, 详细信息如下
JSON字段 类型 描述
creditDate String 交易提交日期
description String 交易描述
amount Float 交易金额
transactionId String 交易号
comment String 交易备注
entryTime String 交易完成时间
type String 交易类型, C = Credit(钱入), D = Debit(钱出),S = Balance(余额)
回到页面顶部