对账单查询接口

接口名称

openapi.payment.order.reconciliation

请求方式

POST

请求头

application/json; charset=utf-8

请求业务参数

参数 类型 是否必填 最大长度 描述
year int 4 年 (订单创建时间)
month int 2
day int 2
store_id int 10 门店ID
cashier_id int 10 收银员ID
page int 10 默认第一页
limit int 3 每页数量 默认10条 最大100
type string 1 是否返回全部交易数据 "1"表示返回 其他字符或不上传表示不返回
  • 请求示例:
{
  "biz_content": "{\"month\":2,\"year\":2017}",
  "method": "openapi.payment.order.reconciliation",
  "format": "json",
  "sign_method": "md5",
  "sign": "D84C042504F1A0FF177414BC8E533834",
  "app_id": "20170224132045932173",
  "nonce": "pp2kiwi",
  "version": "1.0"
}

成功响应data参数

参数 类型 是否必填 最大长度 描述
total int 10 订单总数量
list array 不定 订单数据

成功响应list参数

参数 类型 是否必填 最大长度 描述
order_sn string 32 付呗订单号
merchant_order_sn string 32 第三方订单号
create_time int 10 创建时间
total_fee float 10 商家实收金额(精确到2位小数)
fee float 10 手续费(精确到2位小数)
income float 10 净收入(精确到2位小数)
store_id int 10 门店ID
cashier_id int 10 收银员ID
pay_time int 10 支付时间(秒)
pay_status int 1 支付状态 0 未支付 1已支付
pay_type int 1 支付方式 1 微信支付 2支付宝 5银联
device_no String 32 硬件设备号
  • 响应示例:
    {
    "result_message": "成功",
    "data": {
      "total": 2,
      "list": [
        {
          "order_sn": "20161107095823831740",
          "merchant_order_sn": "201614114702155",
          "create_time": "1478483902",
          "total_fee": "9.90",
          "fee": "0.00",
          "store_id": "2299",
          "cashier_id": "0",
          "pay_time": "0",
          "pay_status": "0",
          "pay_type": "1",
          "income": 9.9,
          "device_no": "sn2323277"
        },
        {
          "order_sn": "20161107095831508496",
          "merchant_order_sn": "2017011416161545190",
          "create_time": "1478483911",
          "total_fee": "8.25",
          "fee": "0.00",
          "store_id": "2299",
          "cashier_id": "0",
          "pay_time": "0",
          "pay_status": "0",
          "pay_type": "1",
          "income": 8.25,
          "device_no": "sn2323277"
        }
      ]
    },
    "result_code": 200
    }
    

results matching ""

    No results matching ""