简要描述:

  • 分销商订单接口

请求域名:

  • http://test.yunzshop.com

请求URL:

POST/app/index.php?i=6&c=entry&do=sd&m=yun_shop&&route=plugin.commission.api.commission.get-commission-orders&status=0

参数:

参数名 是否必须 类型 说明
i int 店铺ID
status int 订单状态(为空时:全部订单、0为待付款、1为已付款、3为完成)

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "orders": {
            "total": 1,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 1,
            "data": [
                {
                    "id": 5,
                    "type_id": "2",
                    "member_id": "7",
                    "commission_amount": "51850.00",
                    "formula": "+商品实际支付金额+运费+商品原价+商品现价+商品成本价-运费-成本",
                    "hierarchy": "3",
                    "commission": "3629.50",
                    "order": {
                        "id": 2,
                        "order_sn": "sn1490361328",
                        "created_at": "2017-03-24 21:15:28",
                        "status": "1",
                        "status_name": "待发货",
                        "button_models": [
                            {
                                "name": "申请退款",
                                "api": "order.operation.refund",
                                "value": 13
                            }
                        ]
                    },
                    "order_goods": [
                        {
                            "id": 3,
                            "goods_id": "0",
                            "thumb": "",
                            "title": "",
                            "total": "1",
                            "goods_price": "0"
                        },
                        {
                            "id": 2,
                            "goods_id": "1",
                            "thumb": "images/6/2017/02/pz6YURqtIUtF2622Cz62ucYfhcMuYi.jpg",
                            "title": "ceee222222222222",
                            "total": "1",
                            "goods_price": "20000"
                        }
                    ],
                    "member": {
                        "uid": 7,
                        "realname": "我是提货人",
                        "nickname": "AAAAA",
                        "avatar": "http://wx.qlogo.cn/mmopen/JkLDWNZN1WK7LWFt7jxGYjJEuF3wKAzgXiaG7Jr6qkCK6iae7Gr67yxhEGD3lPnBcuQlYQnwBCaCrpmcA36nwFTxvYyyR1ecHQ/132"
                    }
                }
            ]
        },
        "set": {
            "open_order_detail": "1",
            "open_order_buyer": "1"
        }
    }
}

错误时返回:

{
    "result":0,
    "msg":"未检测到数据!",
    "data": {
    }
}

返回参数说明:

参数名 类型 说明
tocommission_amounttal string 订单结算金额
formula string 计算规则
hierarchy int 层级
commission float 佣金
order_sn string 订单号
created_at string 订单创建时间
status_name string 状态
thumb string 商品图片
title string 商品标题
goods_price float 价格
realname string 购买人姓名
nickname string 昵称
avatar string 头像
open_order_detail int 1:分销商品/订单详情
open_order_buyer int 1:分销订单购买者详情

备注:

  • 更多返回错误代码请看首页的错误代码描述