添加/编辑运费模板
大约 1 分钟约 412 字
添加/编辑运费模板
接口状态
开发中
接口URL
seller_api.php/logistics/add_freight
环境 | URL |
---|
请求方式
POST
Content-Type
form-data
请求Body参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
tpl_id | - | String | 是 | 运费模版id,编辑必穿 |
tpl_name | 这是测试数据2 | String | 是 | 模版名称 |
region_id | 695 | String | 是 | 发货地区的id |
is_default | 0 | String | 是 | 是否默认,1是默认,0是不默认 |
region_name | 广东省 广州市 白云区 | String | 是 | 所在地区:如 广东省 广州市 天河区 |
free_ship | 0 | String | 是 | 是否免邮,0:不免邮, 1:免邮 |
data_prices | [{"ship_type":"exp","first_piece":3,"first_price":1,"step_piece":3,"step_price":1,"regions":"","tpl_name":"默认","remark":"","is_default":"1","pay_type":"0","regionNames":""},{"ship_type":"exp","first_piece":"3","first_price":"2","step_piece":"3","step_price":"1","regions":"6","tpl_name":"广东","remark":"zzzz","is_default":0,"pay_type":"0","regionNames":"广东"},{"ship_type":"ems","first_piece":3,"first_price":1,"step_piece":3,"step_price":1,"regions":"","tpl_name":"默认","remark":"","is_default":"1","pay_type":"0","regionNames":""}] | String | 是 | 默认地区运费数据,json格式.参数注解 |
ship_type=exp|ems | reg | lgt对应(快递 | EMS | 平邮 |
first_piece 首件(件),多少件起步 | ||||
first_price 首费(元),起步价 | ||||
step_piece 续件(件),超过首件每加多少件 | ||||
step_price 续费(元),增加运费多少元 | ||||
remark 备注 | ||||
regions 运送到地区id,多个以 | 隔开 | |||
regionNames 运送到地区名称,多个以,逗号隔开 | ||||
tpl_name 固定传空字符串 | ||||
is_default 是否默认,1=是,0=否pay_type 支付运费方式:0-线上支付,1-运费到付 |
认证方式
继承父级
响应示例
- 成功(200)
{
"errcode": 0,
"data": {
"status": 0
},
"errmsg": ""
}
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
errcode | 0 | Number | 错误码 |
data | - | String | 数据 |
errmsg | - | String | 请求说明 |
- 失败(404)
暂无数据
Query