- 商城侧 - 后台
- 用户
- 商品
- 设置
- 营销
- 订单
- 分销
- 回调
- 供应商
- 门店
- 系统
- 财务
- 商城侧 - 门店
- 商城侧 - 收银台
- 商城侧 - 供应商
- 商城侧 - 客服
砍价活动详情
GET
/adminapi/marketing/bargain/{id}
请求参数
Authorization
在 header 添加参数
Authori-Zation
示例:
Authori-Zation: ********************
Path 参数
id
integer
砍价活动ID
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/adminapi/marketing/bargain/' \
--header 'Authori-Zation;'
返回响应
🟢200成功
application/json
Body
status
integer
必需
msg
string
必需
data
object
必需
info
object
必需
示例
{
"status": 200,
"msg": "ok",
"data": {
"info": {
"id": 16,
"type": 0,
"product_id": 33846,
"product_type": 99,
"relation_id": 0,
"title": "活血止痛胶囊 250毫克×30粒",
"image": "https://oss.tw-yun.com/beta/standard_library/product_img_v2/1139068/640c2385139b9.jpg?v=0&x-oss-process=style/standard-img-thumbnail-800_800",
"unit_name": "件",
"stock": 1871,
"sales": 0,
"images": [
"https://oss.tw-yun.com/beta/standard_library/product_img_v2/1139068/640c2385139b9.jpg?v=0&x-oss-process=style/standard-img-thumbnail-800_800",
"https://oss.tw-yun.com/beta/standard_library/product_img_v2/1139068/640c238513a0e.jpg?v=0&x-oss-process=style/standard-img-thumbnail-800_800",
"https://oss.tw-yun.com/beta/standard_library/product_img_v2/1139068/640c238513a59.jpg?v=0&x-oss-process=style/standard-img-thumbnail-800_800"
],
"store_name": "",
"price": 1872,
"min_price": 10,
"num": 20,
"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-10-30 08:51:29",
"is_postage": 1,
"postage": 0,
"rule": "<p>xxxx</p>",
"look": 1,
"share": 1,
"temp_id": 0,
"weight": 0,
"volume": 0,
"quota": 20,
"quota_show": 20,
"people_num": 2,
"is_support_refund": 1,
"delivery_type": [
"3",
"2"
],
"freight": 1,
"custom_form": [],
"system_form_id": 0,
"applicable_type": 1,
"applicable_store_id": [],
"store_label_id": [],
"ensure_id": [],
"specs": [],
"section_time": [
"2023-10-29 00:00:00",
"2023-11-09 00:00:00"
],
"description": "<p>xxxx</p>",
"attrs": {
"items": [
{
"value": "规格",
"detailValue": "",
"attrHidden": "1",
"detail": [
"默认"
]
}
],
"value": [
{
"value1": "默认",
"detail": {
"规格": "默认"
},
"pic": "https://oss.tw-yun.com/beta/standard_library/product_img_v2/1139068/640c2385139b9.jpg?v=0&x-oss-process=style/standard-img-thumbnail-800_800",
"price": 1872,
"min_price": 10,
"cost": 1874,
"ot_price": 1873,
"stock": 1871,
"quota": 20,
"code": "1139068",
"bar_code": "6920261302016",
"weight": 0,
"volume": 0,
"brokerage": 0,
"brokerage_two": 0,
"opt": true
}
],
"header": [
{
"title": "规格",
"key": "value1",
"align": "center",
"minWidth": 80
},
{
"title": "图片",
"slot": "pic",
"align": "center",
"minWidth": 120
},
{
"title": "砍价起始金额",
"slot": "price",
"align": "center",
"minWidth": 80
},
{
"title": "砍价最低价",
"slot": "min_price",
"align": "center",
"minWidth": 80
},
{
"title": "成本价",
"key": "cost",
"align": "center",
"minWidth": 80
},
{
"title": "原价",
"key": "ot_price",
"align": "center",
"minWidth": 80
},
{
"title": "库存",
"key": "stock",
"align": "center",
"minWidth": 80
},
{
"title": "限量",
"slot": "quota",
"align": "center",
"minWidth": 80
},
{
"title": "重量(KG)",
"key": "weight",
"align": "center",
"minWidth": 80
},
{
"title": "体积(m³)",
"key": "volume",
"align": "center",
"minWidth": 80
},
{
"title": "商品条形码",
"key": "bar_code",
"align": "center",
"minWidth": 80
},
{
"title": "商品编号",
"key": "code",
"align": "center",
"minWidth": 80
}
]
}
}
}
}