barcode/batch_get
目录 |
1.接口说明
1.1接口描述
批量获取条码档案
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
扫描条码时使用
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/barcode/batch_get |
| 格式 | JSON |
| https请求方式 | GET |
3.2url参数说明
| 参数 | 是否必填 | 类型 | 描述 |
|---|---|---|---|
| from_account | 是 | sting | 调用方id |
| to_account | 是 | string | 提供方id |
| app_key | 是 | string | 应用编码 |
| token | 是 | string | 全局访问唯一识别码 |
| ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
| barcode_begin | 否 | string | 起始条码 |
| barcode_end | 否 | string | 结束条码 |
| cinvcode | 否 | string | 存货编码 |
| cinvccode | 否 | string | 存货分类编码 |
| cinvcname | 否 | string | 存货分类名称关键字 |
| cinvstd | 否 | string | 规格型号关键字 |
| cposition | 否 | string | 货位编码 |
| cdefwarehouse | 否 | string | 仓库编码 |
| cvencode | 否 | string | 供应商编码 |
| cvenname | 否 | string | 供应商名称关键字 |
| dmdate | 否 | date | 生产日期 |
| dvdate | 否 | date | 失效日期 |
| cwhcode | 否 | string | 仓库编码 |
| cwhname | 否 | string | 仓库名称关键字 |
| cposcode | 否 | string | 货位编码 |
| cposname | 否 | string | 货位名称关键字 |
| plot | 否 | string | 批次 |
| createdate | 否 | date | 生成日期 |
| createtime | 否 | date | 生成时间 |
| csrccode | 否 | string | 来源单code |
| csrcvouchtype | 否 | string | 来源单据类型 |
| csrcsubid | 否 | number | 来源单 |
| cmaker | 否 | string | 制单人关键字 |
| cinvsn | 否 | string | 序列号 |
| iprtperson | 否 | string | 打印人关键字 |
| ibarcodestate | 否 | string | 条码状态 |
| dbusdate | 否 | string | 业务日期 |
| busels | 否 | number | 是否零售 |
| ccusabbname | 否 | string | 客户简称关键字 |
| ccusinvname | 否 | string | 客户存货名称关键字 |
| ccusname | 否 | string | 客户名称关键字 |
| ccusinvcode | 否 | string | 客户存货编码 |
| cinvname | 否 | string | 存货名称关键字 |
| cfree1 | 否 | string | 存货自由项1 |
| cfree2 | 否 | string | 存货自由项2 |
| cfree3 | 否 | string | 存货自由项3 |
| cfree4 | 否 | string | 存货自由项4 |
| cfree5 | 否 | string | 存货自由项5 |
| cfree6 | 否 | string | 存货自由项6 |
| cfree7 | 否 | string | 存货自由项7 |
| cfree8 | 否 | string | 存货自由项8 |
| cfree9 | 否 | string | 存货自由项9 |
| cfree10 | 否 | string | 存货自由项10 |
3.3请求示例
GET https://api.yonyouup.com/api/barcode/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&barcode_begin=xxxxx&barcode_end=xxxxx&cinvcode=xxxxx&cinvccode=xxxxx&cinvcname=xxxxx&cinvstd=xxxxx&cposition=xxxxx&cdefwarehouse=xxxxx&cvencode=xxxxx&cvenname=xxxxx&dmdate=xxxxx&dvdate=xxxxx&cwhcode=xxxxx&cwhname=xxxxx&cposcode=xxxxx&cposname=xxxxx&plot=xxxxx&createdate=xxxxx&createtime=xxxxx&csrccode=xxxxx&csrcvouchtype=xxxxx&csrcsubid=xxxxx&cmaker=xxxxx&cinvsn=xxxxx&iprtperson=xxxxx&ibarcodestate=xxxxx&dbusdate=xxxxx&busels=xxxxx&ccusabbname=xxxxx&ccusinvname=xxxxx&ccusname=xxxxx&ccusinvcode=xxxxx&cinvname=xxxxx&cfree1=xxxxx&cfree2=xxxxx&cfree3=xxxxx&cfree4=xxxxx&cfree5=xxxxx&cfree6=xxxxx&cfree7=xxxxx&cfree8=xxxxx&cfree9=xxxxx&cfree10=xxxxx
3.4返回参数说明
| 参数说明 | 类型 | 参数路径 | 描述 |
|---|---|---|---|
| errcode | string | 错误码,0 为正常。 | |
| errmsg | string | 错误信息。 | |
| barcode | string | 条码 | |
| barcoderule | string | 条码规则 | |
| rulename | string | 规则名称 | |
| cinvcode | string | 存货编码 | |
| cinvname | string | 存货名称 | |
| cinvstd | string | 规格型号 | |
| cinvccode | string | 存货分类编码 | |
| cinvcname | string | 存货分类名称 | |
| cinvaddcode | string | 存货代码 | |
| creplaceitem | string | 替换件 | |
| cposition | string | 货位编码 | |
| igrouptype | number | 计量单位组类别 | |
| cgroupcode | string | 计量单位组编码 | |
| cinvmnemcode | string | 助记码 | |
| ccomunitcode | string | 主计量单位编码 | |
| cunitname | string | 主计量单位名称 | |
| ccomaddunitcode | string | 辅计量单位编码 | |
| cassunitname | string | 辅计量单位名称 | |
| csacomunitcode | string | 销售默认计量单位编码 | |
| cpucomunitcode | string | 采购默认计量单位编码 | |
| cstcomunitcode | string | 库存默认计量单位编码 | |
| ccacomunitcode | string | 成本默认计量单位编码 | |
| cdefwarehouse | string | 仓库编码 | |
| cpackingtype | string | 包装规格 | |
| cenglishname | string | 存货英文名称 | |
| cinvdefine1 | string | 存货自定义项1 | |
| cinvdefine2 | string | 存货自定义项2 | |
| cinvdefine3 | string | 存货自定义项3 | |
| cinvdefine4 | string | 存货自定义项4 | |
| cinvdefine5 | string | 存货自定义项5 | |
| cinvdefine6 | string | 存货自定义项6 | |
| cinvdefine7 | string | 存货自定义项7 | |
| cinvdefine8 | string | 存货自定义项8 | |
| cinvdefine9 | string | 存货自定义项9 | |
| cinvdefine10 | string | 存货自定义项10 | |
| cinvdefine11 | number | 存货自定义项11 | |
| cinvdefine12 | number | 存货自定义项12 | |
| cinvdefine13 | number | 存货自定义项13 | |
| cinvdefine14 | number | 存货自定义项14 | |
| cinvdefine15 | date | 存货自定义项15 | |
| cinvdefine16 | date | 存货自定义项16 | |
| cvencode | string | 供应商编码 | |
| cvenname | string | 供应商名称 | |
| cvenabbname | string | 供应商缩写 | |
| iinvsalecost | number | 销售单价 | |
| dmdate | date | 生产日期 | |
| dvdate | date | 失效日期 | |
| iexpiratdatecalcu | number | 有效期推算方式 | |
| cexpirationdate | string | 有效期至 | |
| dexpirationdate | date | 有效期计算项 | |
| cwhcode | string | 仓库编码 | |
| cwhname | string | 仓库名称 | |
| cposcode | string | 货位编码 | |
| cposname | string | 货位名称 | |
| ichangerate | number | 换算率 | |
| imassdate | number | 保质期 | |
| cmassunit | number | 保质期单位 | |
| cchkitemcode | string | 校验项 | |
| cother | string | 其他项 | |
| cholditem | string | 固定项1 | |
| csholditem | string | 固定项2 | |
| csilvitem | string | 流水项 | |
| cfree1 | string | 存货自由项1 | |
| cfree2 | string | 存货自由项2 | |
| cfree3 | string | 存货自由项3 | |
| cfree4 | string | 存货自由项4 | |
| cfree5 | string | 存货自由项5 | |
| cfree6 | string | 存货自由项6 | |
| cfree7 | string | 存货自由项7 | |
| cfree8 | string | 存货自由项8 | |
| cfree9 | string | 存货自由项9 | |
| cfree10 | string | 存货自由项10 | |
| qty | number | 数量 | |
| inum | number | 件数 | |
| plot | string | 批次 | |
| cdefine1 | string | 单据头自定义项1 | |
| cdefine2 | string | 单据头自定义项2 | |
| cdefine3 | string | 单据头自定义项3 | |
| cdefine4 | date | 单据头自定义项4 | |
| cdefine5 | number | 单据头自定义项5 | |
| cdefine6 | date | 单据头自定义项6 | |
| cdefine7 | number | 单据头自定义项7 | |
| cdefine8 | string | 单据头自定义项8 | |
| cdefine9 | string | 单据头自定义项9 | |
| cdefine10 | string | 单据头自定义项10 | |
| cdefine11 | string | 单据头自定义项11 | |
| cdefine12 | string | 单据头自定义项12 | |
| cdefine13 | string | 单据头自定义项13 | |
| cdefine14 | string | 单据头自定义项14 | |
| cdefine15 | number | 单据头自定义项15 | |
| cdefine16 | number | 单据头自定义项16 | |
| cdefine22 | string | 单据体自定义项1 | |
| cdefine23 | string | 单据体自定义项2 | |
| cdefine24 | string | 单据体自定义项3 | |
| cdefine25 | string | 单据体自定义项4 | |
| cdefine26 | number | 单据体自定义项5 | |
| cdefine27 | number | 单据体自定义项6 | |
| cdefine28 | string | 单据体自定义项7 | |
| cdefine29 | string | 单据体自定义项8 | |
| cdefine30 | string | 单据体自定义项9 | |
| cdefine31 | string | 单据体自定义项10 | |
| cdefine32 | string | 单据体自定义项11 | |
| cdefine33 | string | 单据体自定义项12 | |
| cdefine34 | number | 单据体自定义项13 | |
| cdefine35 | number | 单据体自定义项14 | |
| cdefine36 | date | 单据体自定义项15 | |
| cdefine37 | date | 单据体自定义项16 | |
| createdate | date | 生成日期 | |
| createtime | date | 生成时间 | |
| cbarcodedefine1 | string | 条码自定义项1 | |
| cbarcodedefine2 | string | 条码自定义项2 | |
| cbarcodedefine3 | string | 条码自定义项3 | |
| cbarcodedefine4 | string | 条码自定义项4 | |
| cbarcodedefine5 | string | 条码自定义项5 | |
| cbarcodedefine6 | string | 条码自定义项6 | |
| cbarcodedefine7 | string | 条码自定义项7 | |
| cbarcodedefine8 | string | 条码自定义项8 | |
| cbarcodedefine9 | string | 条码自定义项9 | |
| cbarcodedefine10 | string | 条码自定义项10 | |
| csrccode | string | 来源单code | |
| csrcvouchtype | string | 来源单据类型 | |
| enumname | string | 来源单据类型名称 | |
| csrcsubid | number | 来源单 | |
| cbarmainid | number | 存货条码生成表头ID | |
| cmaker | string | 制单人 | |
| cbarmainautoid | number | 存货条码生成子表ID | |
| clabelcode | string | 标签编码 | |
| clabelname | string | 标签名称 | |
| supbarcode | string | 上级编码 | |
| iprtcount | number | 打印次数 | |
| cinvsn | string | 序列号 | |
| iprtperson | string | 打印人 | |
| ibarcodestate | string | 条码状态 | |
| bexpsub | number | 展开级次 | |
| cnousemaker | string | 作废人 | |
| dnousetime | date | 作废时间 | |
| dbusdate | string | 业务日期 | |
| busels | number | 是否零售 | |
| cinvbarcode | string | 存货条码 | |
| cinvcbarcode | string | 存货分类条码 | |
| cwhbarcode | string | 仓库条码 | |
| cposbarcode | string | 货位条码 | |
| cvenbarcode | string | 供应商条码 | |
| csaleunitcode | string | 零售单位 | |
| isaleqty | number | 零售数量 | |
| isaleprice | number | 零售价格 | |
| ruletype | string | 规则类型 | |
| cbatchproperty1 | number | 批次属性1 | |
| cbatchproperty2 | number | 批次属性2 | |
| cbatchproperty3 | number | 批次属性3 | |
| cbatchproperty4 | number | 批次属性4 | |
| cbatchproperty5 | number | 批次属性5 | |
| cbatchproperty6 | string | 批次属性6 | |
| cbatchproperty7 | string | 批次属性7 | |
| cbatchproperty8 | string | 批次属性8 | |
| cbatchproperty9 | string | 批次属性9 | |
| cbatchproperty10 | date | 批次属性10 | |
| irowno | number | 来源单据行号 | |
| ufts | string | 时间戳 | |
| irelautoid | number | 记录此条码的分配对应行 | |
| ccuscode | string | 客户条码 | |
| ccusabbname | string | 客户简称 | |
| ccusname | string | 客户名称 | |
| bcusbarcode | boolean | 外部条码标识字段 | |
| idemandtype | number | 需求跟踪方式 | |
| cdemandcode | string | 需求跟踪号 | |
| idemandseq | number | 需求跟踪行号 | |
| cdemandid | string | 需求跟踪id字段 | |
| ccusinvcode | string | 客户存货编码 | |
| ccusinvname | string | 客户存货名称 | |
| clastscantype | string | 最新库存扫描状态 | |
| ubarcode | string | 防伪码 | |
| bneedup | number | 是否上传 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"barcode":[
{
"barcode":"SJ0001SN0002",
"barcoderule":"SJ01",
"bcusbarcode":"0",
"bexpsub":"0",
"bneedup":"0",
"busels":"0",
"ccomaddunitcode":"",
"ccomunitcode":"0108",
"cdefine1":"",
"cdefine10":"",
"cdefine11":"",
"cdefine12":"",
"cdefine13":"",
"cdefine14":"",
"cdefine2":"",
"cdefine22":"",
"cdefine23":"",
"cdefine24":"",
"cdefine25":"",
"cdefine28":"",
"cdefine29":"",
"cdefine3":"",
"cdefine30":"",
"cdefine31":"",
"cdefine32":"",
"cdefine33":"",
"cdefine8":"",
"cdefine9":"",
"cdemandcode":"",
"cdemandid":"",
"cfree1":"",
"cfree10":"",
"cfree2":"",
"cfree3":"",
"cfree4":"",
"cfree5":"",
"cfree6":"",
"cfree7":"",
"cfree8":"",
"cfree9":"",
"cgroupcode":"01",
"cinvccode":"16",
"cinvcname":"条码管理",
"cinvcode":"SJ0001",
"cinvname":"布丁智能手机",
"cinvsn":"SN0002",
"clabelcode":"02",
"clabelname":"二维标签",
"clastscantype":"出库",
"cmaker":"demo9",
"cnousemaker":"",
"createdate":"2014-12-0100:00:00.0",
"createtime":"2014-12-0114:19:11.0",
"csilvitem":"",
"csrccode":"0000000003",
"csrcsubid":"1000000003",
"csrcvouchtype":"生产订单",
"cunitname":"PCS",
"cwhcode":"",
"dbusdate":"2014-12-02",
"ibarcodestate":"正常",
"iexpiratdatecalcu":"0",
"igrouptype":"0",
"iprtcount":"0",
"irelautoid":"1",
"irowno":"2",
"plot":"",
"qty":"1.000000",
"rulename":"手机条码",
"ruletype":"InvType",
"ufts":"515.3933"
}
],
"errcode":"0",
"errmsg":"",
"page_count":"46",
"page_index":"2",
"row_count":"46",
"rows_per_page":"1"
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode":"30021",
"errmsg":"此应用未上线"
}