版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 禁售规则服务
1.1.1. 禁售规则
POST /{tenant_id}/invc/bansalesruleservice/banSalesRuleSave
1.1.1.1. 说明
禁售规则
1.1.1.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
禁售规则 |
1.1.1.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/invc/bansalesruleservice/banSalesRuleSave?operator=string
请求 body
{
"rule_list" : [ {
"items" : [ {
"production_date" : "2025-12-10 11:12:12",
"expiry_date" : "2025-12-17 11:12:12"
} ],
"goods_id" : "gc0001",
"org_id" : "og0001"
} ]
}
1.1.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2. 定义
2.1. ActionResult
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.2. BanSalesRule
禁售规则
| 名称 | 说明 | 类型 |
|---|---|---|
goods_id |
主档id,对应线下商品gdgid |
string |
items |
效期明细(为空则覆盖清空门店组织下的数据) |
< RuleItem > array |
org_id |
组织id,对应线下组织gid |
string |
2.3. BanSalesRuleRequest
禁售规则请求
| 名称 | 说明 | 类型 |
|---|---|---|
rule_list |
禁售规则 |
< BanSalesRule > array |
2.4. RuleItem
明细
| 名称 | 说明 | 类型 |
|---|---|---|
expiry_date |
到效期,格式:yyyy-MM-dd HH:mm:ss |
string (date-time) |
production_date |
生产日期,格式:yyyy-MM-dd HH:mm:ss |
string (date-time) |