版权所有©,上海海鼎信息工程股份有限公司,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"

string

message
可选

样例 : "string"

string

2.2. CodeTypeSaveResponse

名称 说明 类型

code
可选

样例 : "string"

string

errors
可选

样例 : [ "CodeTypeItemError" ]

< CodeTypeItemError > array

message
可选

样例 : "string"

string

success
可选

默认值 : false
样例 : true

boolean

2.3. CustomCodeConfig

自定义编码对象

名称 说明 类型

amt_len
可选

金额长度
样例 : "string"

string

chk_len
可选

校验码长度
样例 : 0

integer (int32)

code_len
可选

输入码长度
样例 : "string"

string

code_type
可选

码类型
样例 : "string"

string

code_type_name
可选

码类型名称
样例 : "string"

string

exp_date_len
可选

保质期长度
样例 : "string"

string

flag
可选

码类型起始位
样例 : "string"

string

note
可选

备注
样例 : "string"

string

prc_len
可选

价格长度
样例 : "string"

string

qty_len
可选

重量长度
样例 : "string"

string

total_len
可选

特殊条码长度
样例 : 0

integer (int32)

2.4. CustomCodeConfigFilter

查询条件对象

名称 说明 类型

code_type_eq
可选

码类型等于
样例 : "string"

string

code_type_in
可选

码类型在…范围内
样例 : [ "string" ]

< string > array

code_type_name_eq
可选

码类型名称等于
样例 : "string"

string

code_type_name_in
可选

码类型名称在…范围内
样例 : [ "string" ]

< string > array

2.5. CustomCodeConfigList

自定义编码列表对象

名称 说明 类型

custom_code_configs
可选

自定义列表
样例 : [ "CustomCodeConfig" ]

< CustomCodeConfig > array