POST System/GetReportBill

根据查询条件和分页设置,返回按照门店汇总的交易数据报表,需要传递access_token

请求信息

请求URI参数

请求数据参数

查询条件

ReportQueryInfo
名称说明类型扩展说明
start_time

查询开始时间.

字符串

end_time

查询结束时间.

字符串

merchant_no

商户编码,优先查询商户编码和门店编码,只有商户编码和门店编码都为空,查询关键字才生效

字符串

store_no

门店编码,优先查询商户编码和门店编码,只有商户编码和门店编码都为空,查询关键字才生效

字符串

key_word

查询关键字,商户名称|门店名称,优先查询商户编码和门店编码,只有商户编码和门店编码都为空,查询关键字才生效,关键字为模糊匹配

字符串

page_index

获取第几页的数据,如果不传递此参数默认是1

整数

page_size

输返回每页条数,如果不传递此参数默认是50

整数

请求数据格式

application/json, text/json

例子:
{
  "start_time": "sample string 1",
  "end_time": "sample string 2",
  "merchant_no": "sample string 3",
  "store_no": "sample string 4",
  "key_word": "sample string 5",
  "page_index": 6,
  "page_size": 7
}

响应数据

资源说明

查询结果

ResultInfoOfReportResultInfo
名称说明类型扩展说明
code

ResultCode

msg

字符串

data

ReportResultInfo

响应数据格式

application/json, text/json

例子:
{
  "code": "SUCCESS",
  "msg": "sample string 1",
  "data": {
    "count": 1,
    "pay_amount": "sample string 2",
    "wx_amount": "sample string 3",
    "ali_amount": "sample string 4",
    "jd_amount": "sample string 5",
    "bank_amount": "sample string 6",
    "refund_count": 7,
    "refund_amount": "sample string 8",
    "wx_refund_amount": "sample string 9",
    "ali_refund_amount": "sample string 10",
    "jd_refund_amount": "sample string 11",
    "bank_refund_amount": "sample string 12",
    "total_amount": "sample string 13",
    "wx_total_amount": "sample string 14",
    "ali_total_amount": "sample string 15",
    "jd_total_amount": "sample string 16",
    "bank_total_amount": "sample string 17",
    "merchant_fee_amount": "sample string 18",
    "agent_fee_amount": "sample string 19",
    "details": [
      {
        "store_no": "sample string 1",
        "store_name": "sample string 2",
        "merchant_no": "sample string 3",
        "merchant_name": "sample string 4",
        "count": 5,
        "pay_amount": "sample string 6",
        "wx_amount": "sample string 7",
        "ali_amount": "sample string 8",
        "wx_count": 9,
        "ali_count": 10,
        "jd_amount": "sample string 11",
        "bank_amount": "sample string 12",
        "refund_count": 13,
        "refund_amount": "sample string 14",
        "wx_refund_amount": "sample string 15",
        "ali_refund_amount": "sample string 16",
        "jd_refund_amount": "sample string 17",
        "bank_refund_amount": "sample string 18",
        "total_amount": "sample string 19",
        "wx_total_amount": "sample string 20",
        "ali_total_amount": "sample string 21",
        "jd_total_amount": "sample string 22",
        "bank_total_amount": "sample string 23",
        "merchant_fee_amount": "sample string 24",
        "agent_fee_amount": "sample string 25"
      },
      {
        "store_no": "sample string 1",
        "store_name": "sample string 2",
        "merchant_no": "sample string 3",
        "merchant_name": "sample string 4",
        "count": 5,
        "pay_amount": "sample string 6",
        "wx_amount": "sample string 7",
        "ali_amount": "sample string 8",
        "wx_count": 9,
        "ali_count": 10,
        "jd_amount": "sample string 11",
        "bank_amount": "sample string 12",
        "refund_count": 13,
        "refund_amount": "sample string 14",
        "wx_refund_amount": "sample string 15",
        "ali_refund_amount": "sample string 16",
        "jd_refund_amount": "sample string 17",
        "bank_refund_amount": "sample string 18",
        "total_amount": "sample string 19",
        "wx_total_amount": "sample string 20",
        "ali_total_amount": "sample string 21",
        "jd_total_amount": "sample string 22",
        "bank_total_amount": "sample string 23",
        "merchant_fee_amount": "sample string 24",
        "agent_fee_amount": "sample string 25"
      }
    ]
  }
}