商品查询接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
request | RequestDO | 可选 | |||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
response | ResponseDO | ||
|
1 2 3 4 5 6 7 8 9 | QimenClient client = new DefaultQimenClient(url, appkey, secret); SingleitemQueryRequest req = new SingleitemQueryRequest(); req.setCustomerId( "stub-cust-code" ); req.setVersion( "2.0" ); req.setOwnerCode( "货主编码,H123,string(50),必填," ); req.setItemCode( "商品编码,S1234,string(50),必填," ); req.setItemId( "仓储系统商品编码,C123,string(50),必填," ); SingleitemQueryResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | < response > < flag >响应结果:success|failure,success,string(10),必填,</ flag > < code >响应码,0,string(50),,</ code > < message >响应信息,invalid appkey,string(100),,</ message > < item > < itemCode >奇门仓储字段,H123,string(50),必填,</ itemCode > < itemId >奇门仓储字段,H123,string(50),必填,</ itemId > < goodsCode >奇门仓储字段,H123,string(50),必填,</ goodsCode > < itemName >奇门仓储字段,H123,string(50),必填,</ itemName > < shortName >奇门仓储字段,H123,string(50),必填,</ shortName > < englishName >奇门仓储字段,H123,string(50),必填,</ englishName > < barCode >奇门仓储字段,H123,string(50),必填,</ barCode > < skuProperty >奇门仓储字段,H123,string(50),必填,</ skuProperty > < stockUnit >奇门仓储字段,H123,string(50),必填,</ stockUnit > < length >奇门仓储字段,H123,string(50),必填,</ length > < width >奇门仓储字段,H123,string(50),必填,</ width > < height >奇门仓储字段,H123,string(50),必填,</ height > < volume >奇门仓储字段,H123,string(50),必填,</ volume > < grossWeight >奇门仓储字段,H123,string(50),必填,</ grossWeight > < netWeight >奇门仓储字段,H123,string(50),必填,</ netWeight > < color >奇门仓储字段,H123,string(50),必填,</ color > < size >奇门仓储字段,H123,string(50),必填,</ size > < title >奇门仓储字段,H123,string(50),必填,</ title > < categoryId >奇门仓储字段,H123,string(50),必填,</ categoryId > < categoryName >奇门仓储字段,H123,string(50),必填,</ categoryName > < pricingCategory >奇门仓储字段,H123,string(50),必填,</ pricingCategory > < safetyStock >奇门仓储字段,H123,string(50),必填,</ safetyStock > < itemType >奇门仓储字段,H123,string(50),必填,</ itemType > < tagPrice >奇门仓储字段,H123,string(50),必填,</ tagPrice > < retailPrice >奇门仓储字段,H123,string(50),必填,</ retailPrice > < costPrice >奇门仓储字段,H123,string(50),必填,</ costPrice > < purchasePrice >奇门仓储字段,H123,string(50),必填,</ purchasePrice > < seasonCode >奇门仓储字段,H123,string(50),必填,</ seasonCode > < seasonName >奇门仓储字段,H123,string(50),必填,</ seasonName > < brandCode >奇门仓储字段,H123,string(50),必填,</ brandCode > < brandName >奇门仓储字段,H123,string(50),必填,</ brandName > < isSNMgmt >奇门仓储字段,H123,string(50),必填,</ isSNMgmt > < productDate >奇门仓储字段,H123,string(50),必填,</ productDate > < expireDate >奇门仓储字段,H123,string(50),必填,</ expireDate > < isShelfLifeMgmt >奇门仓储字段,H123,string(50),必填,</ isShelfLifeMgmt > < shelfLife >奇门仓储字段,H123,string(50),必填,</ shelfLife > < rejectLifecycle >奇门仓储字段,H123,string(50),必填,</ rejectLifecycle > < lockupLifecycle >奇门仓储字段,H123,string(50),必填,</ lockupLifecycle > < adventLifecycle >奇门仓储字段,H123,string(50),必填,</ adventLifecycle > < isBatchMgmt >奇门仓储字段,H123,string(50),必填,</ isBatchMgmt > < batchCode >奇门仓储字段,H123,string(50),必填,</ batchCode > < batchRemark >奇门仓储字段,H123,string(50),必填,</ batchRemark > < packCode >奇门仓储字段,H123,string(50),必填,</ packCode > < pcs >奇门仓储字段,H123,string(50),必填,</ pcs > < originAddress >奇门仓储字段,H123,string(50),必填,</ originAddress > < approvalNumber >奇门仓储字段,H123,string(50),必填,</ approvalNumber > < isFragile >奇门仓储字段,H123,string(50),必填,</ isFragile > < isHazardous >奇门仓储字段,H123,string(50),必填,</ isHazardous > < remark >奇门仓储字段,H123,string(50),必填,</ remark > < createTime >奇门仓储字段,H123,string(50),必填,</ createTime > < updateTime >奇门仓储字段,H123,string(50),必填,</ updateTime > < isValid >奇门仓储字段,H123,string(50),必填,</ isValid > < isSku >奇门仓储字段,H123,string(50),必填,</ isSku > < packageMaterial >奇门仓储字段,H123,string(50),必填,</ packageMaterial > < isAreaSale >奇门仓储字段,H123,string(50),必填,</ isAreaSale > < isLiquid >Y</ isLiquid > </ item > </ response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|