版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 门店商品服务
1.1.1. 批量更新门店商品货架位
POST /{tenant_id}/invc/storeskuservice/store/{store_id}/skus/shelfPositionCode
1.1.1.1. 说明
批量更新门店商品货架位,覆盖更新,空数组则清空。
1.1.1.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
store_id |
门店id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
storeSkuShelfPositionCodeList |
门店商品货架位列表,每次更新不超过100条 |
1.1.1.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/invc/storeskuservice/store/string/skus/shelfPositionCode?operator=string
请求 body
{
"store_sku_shelf_position_codes" : [ {
"sku_id" : "12002",
"shelf_position_codes" : [ "string" ]
} ]
}
1.1.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"errors" : [ {
"code" : "string",
"message" : "string",
"store_id" : "string",
"sku_id" : "string"
} ]
}
1.1.2. 批量更新门店商品
POST /{tenant_id}/invc/storeskuservice/store/{store_id}/skus/updates
1.1.2.1. 说明
批量更新门店商品,不存在则创建,存在则修改。
1.1.2.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
store_id |
门店id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
storeSkus |
门店商品列表,每次更新不超过100条 |
1.1.2.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.2.4. HTTP请求示例
请求 path
/string/invc/storeskuservice/store/string/skus/updates?operator=string
请求 body
{
"store_skus" : [ {
"state" : "待售:forSale,可售:sale,禁售: notForSale",
"modified" : "2016-03-02 12:00:02",
"store_id" : "001",
"store_name" : "测试店",
"sku_id" : "12002",
"business_type" : "string",
"erp_state" : "string",
"is_active_sales" : true,
"sku_shelf_position_code" : "string",
"use_state" : "string"
} ]
}
1.1.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"errors" : [ {
"code" : "string",
"message" : "string",
"store_id" : "string",
"sku_id" : "string"
} ]
}
2. 定义
2.1. StoreSku
门店商品对象
| 名称 | 说明 | 类型 |
|---|---|---|
business_type |
经营方式:经销、联营、代销 |
string |
erp_state |
erp商品状态 |
string |
is_active_sales |
是否动销 |
boolean |
modified |
修改时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
sku_id |
货号 |
string |
sku_shelf_position_code |
货位代码 |
string |
state |
门店商品售卖状态 |
string |
store_id |
门店代码 |
string |
store_name |
门店名称 |
string |
use_state |
启用状态:启用、不启用 |
string |
2.2. StoreSkuError
门店商品对象
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
sku_id |
样例 : |
string |
store_id |
样例 : |
string |
2.4. StoreSkuShelfPositionCode
门店商品货架位对象
| 名称 | 说明 | 类型 |
|---|---|---|
shelf_position_codes |
货架位列表 |
< string > array |
sku_id |
货号 |
string |
2.5. StoreSkuShelfPositionCodeList
门店商品货架位列表
| 名称 | 说明 | 类型 |
|---|---|---|
store_sku_shelf_position_codes |
门店商品货架位列表 |
< StoreSkuShelfPositionCode > array |
2.6. StoreSkuUpdateResponse
门店商品对象
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
errors |
样例 : |
< StoreSkuError > array |
message |
样例 : |
string |
success |
默认值 : |
boolean |