简要描述:

请求域名:

  • http://xx.com

请求URL:

GET/plugin.store-cashier.admin.store-manage.cashier-set

参数:

参数名 是否必须 类型 说明
id int 门店id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "tab": [
            {
                "value": "basic",
                "name": "基础设置",
                "show": 1
            },
            {
                "value": "settle",
                "name": "收银台结算规则",
                "show": 1
            },
            {
                "value": "market",
                "name": "收银台营销设置",
                "show": 1
            },
            {
                "value": "profit",
                "name": "收银台分润设置",
                "show": 1
            },
            {
                "value": "return",
                "name": "收银台返现设置",
                "show": 1
            },
            {
                "value": "red-packet",
                "name": "收银台每日红包设置",
                "show": 1
            },
        ],
        "basic": {
            "is_open": 1,
            "is_write_information": 1,
            "face_pay": 0
        },
        "settle": {
            "shop_commission": "10.00000",
            "settlement_day": 0,
            "wechatPay": "1",
            "alipay": "1",
            "AlipayJsapi": 0,
            "WechatJsapi": 0,
            "balance": "1",
            "is_cash_pay": 1
        },
        "market": {
            "point": {
                "max_point_deduct_type": 1,
                "max_point_deduct": "10",
                "min_point_deduct": "0",
                "reward_point": 0,
                "shop_award_point": "10.00",
                "shop_award_point1": "0.00",
                "shop_award_point2": "0.00"
            },
            "love": {
                "love_show": 1,
                "love_name": "爱心值",
                "deduction": 1,
                "deduction_proportion_type": 2,
                "deduction_proportion": "11.00",
                "deduction_proportion_low": 0,
                "award": 0,
                "award_proportion": "11.00",
                "parent_award": 0,
                "parent_award_proportion": "0.00",
                "second_award_proportion": "0.00",
                "award_shop": "12",
                "award_shop1": "32",
                "award_shop2": "2"
            },
            "member": [
                {
                    "level_id": 2,
                    "level_name": "铁牌会员",
                    "level_discount": "8.00"
                },
                {
                    "level_id": 4,
                    "level_name": "等级二",
                    "level_discount": "9.00"
                },
                {
                    "level_id": 5,
                    "level_name": "等级三",
                    "level_discount": "9.00"
                },
                {
                    "level_id": 6,
                    "level_name": "等级四",
                    "level_discount": "9.00"
                }
            ],
            "coupon": [
                {
                    "id": "1",
                    "name": "满100减10元"
                },
                {
                    "id": "6",
                    "name": "测试2"
                }
            ],
        },
        "profit": {
            "commission": {
                "is_show": 1,
                "is_commission": 1,
                "level": [
                    {
                        "level_id": 0,
                        "level_name": "默认等级",
                        "first_level_rate": "20",
                        "second_level_rate": "3"
                    },
                    {
                        "level_id": 3,
                        "level_name": "皇冠",
                        "first_level_rate": "5",
                        "second_level_rate": "40"
                    },
                    {
                        "level_id": 4,
                        "level_name": "分销等级二",
                        "first_level_rate": "6",
                        "second_level_rate": "7"
                    }
                ]
            },
            "team-dividend": {
                "is_show": 1,
                "is_dividend": 1,
                "has_dividend_rate": "10.00"
            },
            "area-dividend": {
                "is_show": 1,
                "is_dividend": 1,
                "has_dividend_rate": "10.00"
            },
            "merchant": {
                "is_show": 1,
                "is_open_bonus_staff": 0,
                "staff_bonus": "10.00",
                "staff": [
                    {
                        "level_id": 1,
                        "level_name": "初级",
                        "level_rate": "1"
                    },
                    {
                        "level_id": 2,
                        "level_name": "中级",
                        "level_rate": "2"
                    },
                    {
                        "level_id": 3,
                        "level_name": "高级",
                        "level_rate": "3"
                    }
                ],
                "is_open_bonus_center": 1,
                "center": [
                    {
                        "level_id": 1,
                        "level_name": "区级招商",
                        "level_rate": "4"
                    },
                    {
                        "level_id": 2,
                        "level_name": "市招商员",
                        "level_rate": "5"
                    },
                    {
                        "level_id": 3,
                        "level_name": "省招商",
                        "level_rate": "6"
                    },
                    {
                        "level_id": 4,
                        "level_name": "最大级",
                        "level_rate": "7"
                    },
                    {
                        "level_id": 5,
                        "level_name": "测试分销商身份",
                        "level_rate": "8"
                    },
                    {
                        "level_id": 6,
                        "level_name": "23313",
                        "level_rate": "9"
                    }
                ]
            }
        },
        "return": {
            "return_show": "10",
            "full-consume_show": "10",
            "full-return_show": "10",
            "return_rate": "10",
            "full-return_open": 0,
            "full-consume_open": 0
        },
        "red-packet": {
            "is_cashier": 1,
            "cashier_proportion": "3",
            "cashier_scale": "4"
        },
}

错误时返回:

  {
    "result": 0,
    "msg": "",
    "data": []
}

返回参数说明:

参数名 类型 说明
tab array 导航数组
show int 1显示,0不显示
name int 导航名称
value int 导航值
参数名 类型 说明
basic array 基础设置数组
is_open int 是否开启收银台 1是,0不是
is_write_information int 用户付款是否需要填写信息 1是,0不是
face_pay int 人脸支付 1是,0不是
参数名 类型 说明
settle array 收银台结算规则设置数组
shop_commission int 平台提成比例
settlement_day int 结算期
wechatPay int 微信支付 1开启,0关闭
alipay int 支付宝支付 1开启,0关闭
AlipayJsapi int 支付宝支付(服务商) 1开启,0关闭
WechatJsapi int 微信支付(服务商) 1开启,0关闭
balance int 余额支付 1开启,0关闭
is_cash_pay int 现金支付 1开启,0关闭
参数名 类型 说明
market array 收银台营销设置数组
point array 积分设置数组
max_point_deduct_type int 积分抵扣1百分比,2固定金额
max_point_deduct int 积分最高抵扣
min_point_deduct int 积分最少抵扣
reward_point int 会员奖励积分
shop_award_point int 奖励商家积分
shop_award_point1 int 一级商家奖励积分
shop_award_point2 int 二级商家奖励积分
love array 爱心值设置数组
love_show int 爱心值显示,1显示,0不显示
love_name int 爱心值显示名称
deduction int 爱心值抵扣,1开启,0关闭
deduction_proportion_type int 爱心值抵扣1百分比,2固定金额
deduction_proportion int 爱心值最高抵扣
deduction_proportion_low int 爱心值最低抵扣
award int 是否开启爱心值奖励,1开启 0关闭
award_proportion int 会员奖励爱心值
parent_award int 是否开启上级爱心值奖励,1开启 0关闭
parent_award_proportion int 一级会员奖励爱心值
second_award_proportion int 二级会员奖励爱心值
award_shop int 商家奖励爱心值
award_shop1 int 一级商家奖励爱心值
award_shop2 int 二级商家奖励爱心值
member array 会员折扣数组
level_id int 会员等级id
level_name int 会员等级名称
level_discount int 会员等级折扣
coupon array 优惠券设置数组
id int 优惠券id
name int 优惠券名称
参数名 类型 说明
profit array 收银台分润设置
commission array 分销数组
is_show int 是否显示分销设置,1显示,0不显示
is_commission int 是否开启分销 1开启 0关闭
level array 分销等级数组
level_id int 分销等级id
level_name int 分销等级名称
first_level_rate int 一级分销比例
second_level_rate int 二级分销比例
team-dividend array 经销商数组
is_show int 是否显示经销商设置,1显示,0不显示
is_dividend int 是否开启经销商 1开启 0关闭
has_dividend_rate int 经销商提成
area-dividend array 区域分红数组
is_show int 是否显示区域分红设置,1显示,0不显示
is_dividend int 是否开启区域分红 1开启 0关闭
has_dividend_rate int 区域分红提成
merchant array 招商数组
is_show int 是否显示招商设置,1显示,0不显示
is_open_bonus_staff int 是否开启招商员分红 1开启 0关闭
is_open_bonus_center int 是否开启招商中心分红 1开启 0关闭
staff_bonus int 招商员独立分红
staff array 招商员等级独立分红数组
level_id int 等级id
level_name int 等级名称
level_rate int 等级比例
center array 招商中心等级独立分红数组
level_id int 等级id
level_name int 等级名称
level_rate int 等级比例
参数名 类型 说明
return array 收银台返现设置数组
return_show int 消费赠送显示,1显示,0不显示
full-return_show int 消费满额赠送,1显示,0不显示
full-consume_show int 消费返现显示,1显示,0不显示
return_rate int 消费赠送
full-return_open int 消费满额赠送 1开启,0关闭
full-consume_open int 消费返现 1开启,0关闭
参数名 类型 说明
red-packet array 收银台每日红包设置数组
is_cashier int 每日红包独立计算规
cashier_proportion int 红包总额比例
cashier_scale int 消费获得红包额度百分比

备注:

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