- 授权
- 商品
- 地址
- 价格
- 库存
- 订单
- 售后
- 物流
- 发票
- 类目
- 员工
4.5 获取商品上下架状态
GET
/api/v2/product/updownstatus
Product
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
product_ids
string
商品标志集合
示例值:
["P0000114563", "P0000001608", "P0000002883"]
Header 参数
channel
string
可选
默认值:
benlai
shopId
string
商城id
默认值:
123
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://open-agent-branch.benlai.com/api/v2/product/updownstatus?product_ids=["P0000114563", "P0000001608", "P0000002883"]' \
--header 'channel: benlai' \
--header 'shopId: 123'
返回响应
🟢200成功
text/plain
Body
details
array[object (Benlai.Open.Models.Product.poductupdownstatusDto) {2}]
商品上下架
product_id
string
商品编号
updownstatus
string
上下架状态
DOWN:下架
示例
{
"code": 0,
"msg": "success",
"value": {
"details": [
{
"product_id": "P0000001608",
"updownstatus": "UP"
},
{
"product_id": "P0000056446",
"updownstatus": "DOWN"
},
{
"product_id": "P0000012656",
"updownstatus": "DOWN"
}
]
}
}