版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 门店价格服务
1.1.1. POS更新门店商品价格到鼎力云
POST /{tenant_id}/invc/storepriceservice/store/{store_id}/prices
1.1.1.1. 说明
POS更新门店商品价格到鼎力云
1.1.1.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Body |
prices |
商品价格集合 |
1.1.1.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/invc/storepriceservice/store/string/prices
请求 body
{
"skus" : [ {
"price" : 12.25,
"modified" : "2019-07-30 00:00:00",
"modifier" : "张三",
"sku_id" : "54654",
"min_price" : 12.25,
"max_price" : 12.25,
"unit_price" : 12.35,
"mbr_price" : 15.25,
"task_id" : "32323232",
"price_mode" : "price",
"change_time" : "2019-07-30 00:00:00",
"cost_price" : 5.67
} ]
}
1.1.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2. 定义
2.1. ActionResult
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.2. SkuPrice
库存
| 名称 | 说明 | 类型 |
|---|---|---|
change_time |
业务变化时间 |
string (date-time) |
cost_price |
成本价 |
number |
max_price |
最大商品零售价 |
number |
mbr_price |
会员价 |
number |
min_price |
最小商品零售价 |
number |
modified |
最后修改时间 |
string (date-time) |
modifier |
修改人 |
string |
price |
商品零售价 |
number |
price_mode |
取价方式:unit_price(标准售价),price(固定价) |
enum (unit_price, price) |
sku_id |
商品ID |
string |
task_id |
任务ID |
string |
unit_price |
标准售价 |
number |