文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取账户流水明细列表
更新时间:2018-05-08 11:38:53   更新人员:叶洋   文档状态:完成 #262    测试接口
摘要
  1. 接口基本信息
    接口名称:获取账户交易明细列表
    请求方法:GET
    接口地址:accountlog
    登录验证:是
  2. 请求参数
    参数名 参数 数据类型 是否必须 示例值 说明
    page 分页 int
    row 每页数量 int
    account_id 账户id string 查询指定帐户id下的明细,系统人员有效
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id 流水id int
    trade_no 交易编号 string
    trade_time 交易时间 int
    year int
    month int
    day int
    hour int
    minute int
    trade_by 交易操作用户 string
    account_id 账户id string
    category 类目 string
    subject 科目 int
    category_name 类目名 string
    subject_name 科目名 string
    expenses 支出 float
    income 收入 float
    surplus 当前结余 float
    flow_to 流入到 string
    flow_from 流出源 string
    description 描述 string
    content 内容 string
  4. 请求示例
    请求例子:
     
    apirq('accountlog', {
        data: {
            "account_id": "0000000000000001"
        }
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1525750287",
        "data": {
            "page": 1,
            "row": 15,
            "count": 4,
            "total_count": 4,
            "total_page": 1,
            "lists": [
                {
                    "id": 9,
                    "trade_no": "2018050851519948",
                    "trade_time": 1525747299,
                    "year": 2018,
                    "month": 5,
                    "day": 8,
                    "hour": 10,
                    "minute": 41,
                    "trade_by": 100,
                    "account_id": 1,
                    "category": 24,
                    "subject": 25,
                    "expenses": "-3.0000",
                    "income": "0.0000",
                    "surplus": "988.0000",
                    "flow_to": "\"0000000000000002\"",
                    "flow_from": "\"0000000000000001\"",
                    "description": "帐户系统转账到账户内建商户上,转出金额为3元",
                    "content": "",
                    "signature": "0000000000000100",
                    "category_name": "内部转账",
                    "subject_name": "转账转出"
                },
                {
                    "id": 7,
                    "trade_no": "2018050848515749",
                    "trade_time": 1525747216,
                    "year": 2018,
                    "month": 5,
                    "day": 8,
                    "hour": 10,
                    "minute": 40,
                    "trade_by": 100,
                    "account_id": 1,
                    "category": 24,
                    "subject": 25,
                    "expenses": "-3.0000",
                    "income": "0.0000",
                    "surplus": "991.0000",
                    "flow_to": "\"0000000000000002\"",
                    "flow_from": "\"0000000000000001\"",
                    "description": "帐户系统转账到账户内建商户上,转出金额为3元",
                    "content": "",
                    "signature": "0000000000000100",
                    "category_name": "内部转账",
                    "subject_name": "转账转出"
                },
                {
                    "id": 5,
                    "trade_no": "2018050898571015",
                    "trade_time": 1525746987,
                    "year": 2018,
                    "month": 5,
                    "day": 8,
                    "hour": 10,
                    "minute": 36,
                    "trade_by": 100,
                    "account_id": 1,
                    "category": 24,
                    "subject": 25,
                    "expenses": "-5.0000",
                    "income": "0.0000",
                    "surplus": "994.0000",
                    "flow_to": "\"0000000000000002\"",
                    "flow_from": "\"0000000000000001\"",
                    "description": "帐户系统转账到账户内建商户上,转出金额为5元",
                    "content": "",
                    "signature": "0000000000000100",
                    "category_name": "内部转账",
                    "subject_name": "转账转出"
                },
                {
                    "id": 3,
                    "trade_no": "2018050853999955",
                    "trade_time": 1525746101,
                    "year": 2018,
                    "month": 5,
                    "day": 8,
                    "hour": 10,
                    "minute": 21,
                    "trade_by": 100,
                    "account_id": 1,
                    "category": 24,
                    "subject": 25,
                    "expenses": "-1.0000",
                    "income": "0.0000",
                    "surplus": "999.0000",
                    "flow_to": "\"0000000000000002\"",
                    "flow_from": "\"0000000000000001\"",
                    "description": "帐户系统转账到账户内建商户上,转出金额为1元",
                    "content": "",
                    "signature": "0000000000000100",
                    "category_name": "内部转账",
                    "subject_name": "转账转出"
                }
            ]
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员