- 蔬东坡开放平台API文档
- 什么是蔬东坡开放平台
- 开发入门
- 基础数据接口
- 商品
- 订单
- 客户
- 出、入库单查询
- 现有库存查询
- 库房
- 客户协议价
- 订单-退货单
- 商品-溯源
- 客户类型
- 采购单
- 异步通知
- 库房-分拣
- 采购-退货单
- 财务
获取下单商品信息
GET
/openApi/user/commodityPrice
最后修改时间:2024-11-29 05:23:30
责任人:未设置
请求参数
Query 参数
appid
string
必需
timestamp
integer
当前时间戳
示例值:
{{timestamp}}
sign
string
签名参数(32位)
示例值:
{{sign}}
notice
string
可选
site_id
array[string]
站点
示例值:
[""]
user_id
integer
用户ID
user_code
string
可选
commodity_ids
string
必需
Body 参数multipart/form-data
object {0}
示例代码
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://scm.sdongpo.com/cc_thirdparty/openApi/user/commodityPrice?appid=×tamp=&sign=¬ice=&site_id=&user_id=&user_code=&commodity_ids='
返回响应
🟢200成功
application/json
Body
status
integer
必需
data
array [object {20}]
必需
id
string
必需
commodity_id
string
商品ID
name
string
商品名称
commodity_code
string
商品编码
unit_sell
string
售卖单位
unit_convert
string
必需
unit
string
商品单位
unit_num
string
转换数量
summary
string
描述
category1_name
string
一级分类名称
category2_name
string
二级分类名称
agent_name
string
采购员名称
provider_name
string
供应商名称
price
string
商品价格
is_price_type
integer
是否协议价
is_time_price
string
必需
order_quantity
string
起订量
max_quantity
string
限购量(每次)
status_key
string
必需
status_desc
string
商品状态描述
message
string | null
必需
示例
{
"status": 1,
"data": [
{
"id": "2783",
"commodity_id": "2783",
"name": "大生菜",
"commodity_code": "DSC0379",
"unit_sell": "斤",
"unit_convert": "N",
"unit": "斤",
"unit_num": "1.00",
"summary": "",
"category1_name": "叶菜大类",
"category2_name": "生菜",
"agent_name": "",
"provider_name": "pnw普通供应商",
"price": "2.60",
"is_price_type": 2,
"is_time_price": "N",
"order_quantity": "0.00",
"max_quantity": "0",
"status_key": "normal",
"status_desc": "正常商品"
},
{
"id": "2784",
"commodity_id": "2784",
"name": "12123321",
"commodity_code": "47171",
"unit_sell": "斤",
"unit_convert": "N",
"unit": "斤",
"unit_num": "1.00",
"summary": "",
"category1_name": "叶菜大类",
"category2_name": "生菜",
"agent_name": "",
"provider_name": "pnw普通供应商",
"price": "1.00",
"is_price_type": 2,
"is_time_price": "N",
"order_quantity": "0.00",
"max_quantity": "0",
"status_key": "abnormal",
"status_desc": "商品不可售卖"
}
],
"message": null
}
修改于 2024-11-29 05:23:30