简要描述:

  • 上传发票图片接口,用来校验和绑定发票,校验成功后就会自动绑定发票,并返回发票图片列表

请求域名:

  • http://xx.com

请求URL:

POST/plugin.withdrawal-invoice.frontend.index.supplierWithdrawalList

参数:

参数名 是否必须 类型 说明
status int 提现状态,tab列表有

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "list": {
            "current_page": 1,
            "data": [
                {
                    "withdraw_sn": "AY20190709163622RSnzm7",
                    "status": 2,
                    "type_name": "供应商提现",
                    "status_obj": {
                        "style": "label label-success",
                        "name": "待打款"
                    },
                    "has_one_invoice": {
                        "status_name": "待确认"
                    },
                    "type": "supplier"
                },
            ],
            "first_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
            "links": [
                {
                    "url": null,
                    "label": "« 上一页",
                    "active": false
                },
                {
                    "url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "下一页 »",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "http://www.shop777.com/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 9,
            "total": 9
        }
    },
}
参数名 类型 说明
result int 接口状态码(1表示成功)
msg string 接口返回消息("ok"表示成功)
data object 核心数据对象
validate_page object 页面验证配置信息

data 对象

参数名 类型 说明
list object 分页数据对象

data[] 记录列表

参数名 类型 说明
type_name string 提现类型名称(门店提现/门店收银台/门店消费卡)
withdraw_sn string 提现流水号(WS开头+日期时间)
status int 提现状态代码
type string 对应数据模型类
pay_way_name string 支付方式名称
has_one_invoice object 关联发票信息

has_one_invoice 发票对象

参数名 类型 说明
status_name string 发票状态名称