版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 自定义编码服务
1.1.1. 查询自定义编码
POST /{tenant_id}/invc/customcodeconfigservice/query
1.1.1.1. 说明
查询自定义编码
1.1.1.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Body |
custom_code_config_filter |
1.1.1.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/invc/customcodeconfigservice/query
请求 body
{
"code_type_eq" : "string",
"code_type_in" : [ "string" ],
"code_type_name_eq" : "string",
"code_type_name_in" : [ "string" ]
}
1.1.1.5. HTTP响应示例
响应 200
{
"custom_code_configs" : [ {
"code_type" : "string",
"code_type_name" : "string",
"total_len" : 0,
"flag" : "string",
"code_len" : "string",
"qty_len" : "string",
"amt_len" : "string",
"prc_len" : "string",
"chk_len" : 0,
"exp_date_len" : "string",
"note" : "string"
} ]
}
1.1.2. 保存自定义编码
POST /{tenant_id}/invc/customcodeconfigservice/saves
1.1.2.1. 说明
保存自定义编码
1.1.2.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
custom_code_config_list |
自定义编码列表 |
1.1.2.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.2.4. HTTP请求示例
请求 path
/string/invc/customcodeconfigservice/saves?operator=string
请求 body
{
"custom_code_configs" : [ {
"code_type" : "string",
"code_type_name" : "string",
"total_len" : 0,
"flag" : "string",
"code_len" : "string",
"qty_len" : "string",
"amt_len" : "string",
"prc_len" : "string",
"chk_len" : 0,
"exp_date_len" : "string",
"note" : "string"
} ]
}
1.1.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"errors" : [ {
"codeType" : "string",
"message" : "string"
} ]
}
2. 定义
2.1. CodeTypeItemError
自定义参数错误对象
| 名称 | 说明 | 类型 |
|---|---|---|
codeType |
样例 : |
string |
message |
样例 : |
string |
2.2. CodeTypeSaveResponse
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
errors |
样例 : |
< CodeTypeItemError > array |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.3. CustomCodeConfig
自定义编码对象
| 名称 | 说明 | 类型 |
|---|---|---|
amt_len |
金额长度 |
string |
chk_len |
校验码长度 |
integer (int32) |
code_len |
输入码长度 |
string |
code_type |
码类型 |
string |
code_type_name |
码类型名称 |
string |
exp_date_len |
保质期长度 |
string |
flag |
码类型起始位 |
string |
note |
备注 |
string |
prc_len |
价格长度 |
string |
qty_len |
重量长度 |
string |
total_len |
特殊条码长度 |
integer (int32) |
2.4. CustomCodeConfigFilter
查询条件对象
| 名称 | 说明 | 类型 |
|---|---|---|
code_type_eq |
码类型等于 |
string |
code_type_in |
码类型在…范围内 |
< string > array |
code_type_name_eq |
码类型名称等于 |
string |
code_type_name_in |
码类型名称在…范围内 |
< string > array |
2.5. CustomCodeConfigList
自定义编码列表对象
| 名称 | 说明 | 类型 |
|---|---|---|
custom_code_configs |
自定义列表 |
< CustomCodeConfig > array |