- 商城侧 - 后台
- 用户
- 商品
- 设置
- 营销
- 订单
- 分销
- 回调
- 供应商
- 门店
- 系统
- 财务
- 商城侧 - 门店
- 商城侧 - 收银台
- 商城侧 - 供应商
- 商城侧 - 客服
保存砍价
POST
/adminapi/marketing/bargain/{id}
请求参数
Authorization
在 header 添加参数
Authori-Zation
示例:
Authori-Zation: ********************
Path 参数
id
string
必需
Body 参数application/json
id
string
必需
type
integer
必需
product_id
integer
必需
product_type
integer
必需
relation_id
integer
必需
title
string
必需
image
string
必需
unit_name
string
必需
stock
integer
必需
sales
integer
必需
images
array[string]
必需
store_name
string
必需
price
integer
必需
min_price
integer
必需
num
integer
必需
bargain_max_price
integer
必需
bargain_min_price
number
必需
bargain_num
integer
必需
status
integer
必需
give_integral
integer
必需
info
string
必需
cost
integer
必需
sort
integer
必需
is_hot
integer
必需
is_del
integer
必需
add_time
string
必需
is_postage
integer
必需
postage
integer
必需
rule
string
必需
look
integer
必需
share
integer
必需
temp_id
integer
必需
weight
integer
必需
volume
integer
必需
quota
integer
必需
quota_show
integer
必需
people_num
integer
必需
is_support_refund
integer
必需
delivery_type
array[string]
必需
freight
integer
必需
custom_form
array[string]
必需
system_form_id
integer
必需
applicable_type
enum<integer>
适用门店类型
枚举值:
012
applicable_store_id
array[integer]
适用门店ID
store_label_id
array[string]
必需
ensure_id
array[string]
必需
specs
array[string]
必需
section_time
array[string]
必需
description
string
必需
attrs
array [object {16}]
必需
value1
string
可选
detail
object
可选
pic
string
可选
price
integer
可选
min_price
integer
可选
cost
integer
可选
ot_price
integer
可选
stock
integer
可选
quota
integer
可选
code
string
可选
bar_code
string
可选
weight
integer
可选
volume
integer
可选
brokerage
integer
可选
brokerage_two
integer
可选
opt
boolean
可选
items
array [object {4}]
必需
value
string
可选
detailValue
string
可选
attrHidden
string
可选
detail
array[string]
可选
示例
{
"id": "12",
"type": 0,
"product_id": 38778,
"product_type": 0,
"relation_id": 0,
"title": "不砍下?",
"image": "http://test.mall.86yfw.com/uploads/attach/2023/08/20230824/09d18e5d63d38249708ca78e1811aa5e.png",
"unit_name": "件",
"stock": 994,
"sales": 0,
"images": [
"http://test.mall.86yfw.com/uploads/attach/2023/08/20230824/09d18e5d63d38249708ca78e1811aa5e.png"
],
"store_name": "",
"price": 10,
"min_price": 3,
"num": 1,
"bargain_max_price": 10,
"bargain_min_price": 0.01,
"bargain_num": 1,
"status": 1,
"give_integral": 0,
"info": "砍价啊",
"cost": 0,
"sort": 0,
"is_hot": 0,
"is_del": 0,
"add_time": "2023-09-19 09:45:17",
"is_postage": 1,
"postage": 0,
"rule": "",
"look": 0,
"share": 0,
"temp_id": 0,
"weight": 0,
"volume": 0,
"quota": 50,
"quota_show": 50,
"people_num": 2,
"is_support_refund": 1,
"delivery_type": [
"3",
"2",
"1"
],
"freight": 1,
"custom_form": [],
"system_form_id": 0,
"applicable_type": 1,
"applicable_store_id": [
1
],
"store_label_id": [],
"ensure_id": [],
"specs": [],
"section_time": [
"2023-09-17T16:00:00.000Z",
"2023-09-21T16:00:00.000Z"
],
"description": "<p>xxx</p>",
"attrs": [
{
"value1": "默认",
"detail": {
"规格": "默认"
},
"pic": "http://test.mall.86yfw.com/uploads/attach/2023/08/20230824/09d18e5d63d38249708ca78e1811aa5e.png",
"price": 10,
"min_price": 3,
"cost": 5,
"ot_price": 0,
"stock": 994,
"quota": 50,
"code": "CC112",
"bar_code": "",
"weight": 1,
"volume": 2,
"brokerage": 0,
"brokerage_two": 0,
"opt": true
}
],
"items": [
{
"value": "规格",
"detailValue": "",
"attrHidden": "1",
"detail": [
"默认"
]
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/marketing/bargain/' \
--header 'Content-Type: application/json' \
--header 'Authori-Zation;' \
--data-raw '{
"id": "12",
"type": 0,
"product_id": 38778,
"product_type": 0,
"relation_id": 0,
"title": "不砍下?",
"image": "http://test.mall.86yfw.com/uploads/attach/2023/08/20230824/09d18e5d63d38249708ca78e1811aa5e.png",
"unit_name": "件",
"stock": 994,
"sales": 0,
"images": [
"http://test.mall.86yfw.com/uploads/attach/2023/08/20230824/09d18e5d63d38249708ca78e1811aa5e.png"
],
"store_name": "",
"price": 10,
"min_price": 3,
"num": 1,
"bargain_max_price": 10,
"bargain_min_price": 0.01,
"bargain_num": 1,
"status": 1,
"give_integral": 0,
"info": "砍价啊",
"cost": 0,
"sort": 0,
"is_hot": 0,
"is_del": 0,
"add_time": "2023-09-19 09:45:17",
"is_postage": 1,
"postage": 0,
"rule": "",
"look": 0,
"share": 0,
"temp_id": 0,
"weight": 0,
"volume": 0,
"quota": 50,
"quota_show": 50,
"people_num": 2,
"is_support_refund": 1,
"delivery_type": [
"3",
"2",
"1"
],
"freight": 1,
"custom_form": [],
"system_form_id": 0,
"applicable_type": 1,
"applicable_store_id": [
1
],
"store_label_id": [],
"ensure_id": [],
"specs": [],
"section_time": [
"2023-09-17T16:00:00.000Z",
"2023-09-21T16:00:00.000Z"
],
"description": "<p>xxx</p>",
"attrs": [
{
"value1": "默认",
"detail": {
"规格": "默认"
},
"pic": "http://test.mall.86yfw.com/uploads/attach/2023/08/20230824/09d18e5d63d38249708ca78e1811aa5e.png",
"price": 10,
"min_price": 3,
"cost": 5,
"ot_price": 0,
"stock": 994,
"quota": 50,
"code": "CC112",
"bar_code": "",
"weight": 1,
"volume": 2,
"brokerage": 0,
"brokerage_two": 0,
"opt": true
}
],
"items": [
{
"value": "规格",
"detailValue": "",
"attrHidden": "1",
"detail": [
"默认"
]
}
]
}'
返回响应
🟢200成功
application/json
Body
status
integer
必需
msg
string
必需
示例
{
"status": 200,
"msg": "保存成功"
}