taobao.qimen.singleitem.synchronize
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
request | ItemSynRequest | 可选 | |||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
response | Response | ||
|
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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | QimenClient client = new DefaultQimenClient(url, appkey, secret); SingleitemSynchronizeRequest req = new SingleitemSynchronizeRequest(); req.setCustomerId( "stub-cust-code" ); req.setVersion( "2.0" ); req.setActionType( "add" ); req.setWarehouseCode( "CK1234" ); req.setOwnerCode( "HZ123" ); req.setSupplierCode( "GY123" ); req.setSupplierName( "淘宝" ); Item obj1 = new Item(); obj1.setProductCode( "奇门仓储字段,说明,string(50),," ); obj1.setPaperQty( "奇门仓储字段,说明,string(50),," ); obj1.setDiffQuantity( "奇门仓储字段,说明,string(50),," ); obj1.setExtCode( "奇门仓储字段,说明,string(50),," ); Batch obj2 = new Batch(); obj2.setBatchCode( "奇门仓储字段,说明,string(50),," ); obj2.setProductDate( "奇门仓储字段,说明,string(50),," ); obj2.setExpireDate( "奇门仓储字段,说明,string(50),," ); obj2.setProduceCode( "奇门仓储字段,说明,string(50),," ); obj2.setInventoryType( "奇门仓储字段,说明,string(50),," ); obj2.setActualQty( "奇门仓储字段,说明,string(50),," ); obj2.setQuantity( "奇门仓储字段,说明,string(50),," ); obj2.setRemark( "备注" ); obj1.setBatchs(obj2); PriceAdjustment obj3 = new PriceAdjustment(); obj3.setType( "奇门仓储字段,说明,string(50),," ); obj3.setStandardPrice( "奇门仓储字段,说明,string(50),," ); obj3.setDiscount( "奇门仓储字段,说明,string(50),," ); obj3.setStartDate( "奇门仓储字段,说明,string(50),," ); obj3.setEndDate( "奇门仓储字段,说明,string(50),," ); obj3.setRemark( "备注" ); obj1.setPriceAdjustment(obj3); obj1.setOriginCode( "奇门仓储字段,说明,string(50),," ); obj1.setItemCode( "I1234" ); obj1.setItemId( "WI1234" ); obj1.setGoodsCode( "H1234" ); obj1.setItemName( "SN123" ); obj1.setShortName( "JC123" ); obj1.setEnglishName( "EN123" ); obj1.setBarCode( "T1;T2" ); obj1.setSkuProperty( "红色" ); obj1.setStockUnit( "个" ); obj1.setLength( "12.0" ); obj1.setWidth( "12.0" ); obj1.setHeight( "12.0" ); obj1.setVolume( "12.0" ); obj1.setGrossWeight( "12.0" ); obj1.setNetWeight( "12.0" ); obj1.setColor( "红色" ); obj1.setSize( "5英尺" ); obj1.setTitle( "淘公仔" ); obj1.setCategoryId( "LB123" ); obj1.setCategoryName( "手机" ); obj1.setPricingCategory( "手机类" ); obj1.setSafetyStock(12L); obj1.setItemType( "ZC" ); obj1.setTagPrice( "12.0" ); obj1.setRetailPrice( "12.0" ); obj1.setCostPrice( "12.0" ); obj1.setPurchasePrice( "12.0" ); obj1.setSeasonCode( "CHUN" ); obj1.setSeasonName( "春季" ); obj1.setBrandCode( "LAL" ); obj1.setBrandName( "HM" ); obj1.setIsSNMgmt( "N" ); obj1.setProductDate( "2016-09-09" ); obj1.setExpireDate( "2016-09-09" ); obj1.setIsShelfLifeMgmt( "N" ); obj1.setShelfLife(1L); obj1.setRejectLifecycle(1L); obj1.setLockupLifecycle(1L); obj1.setAdventLifecycle(1L); obj1.setIsBatchMgmt( "N" ); obj1.setBatchCode( "P1234" ); obj1.setBatchRemark( "备注信息" ); obj1.setPackCode( "B12" ); obj1.setPcs( "XG123" ); obj1.setOriginAddress( "HK" ); obj1.setApprovalNumber( "PB123" ); obj1.setIsFragile( "N" ); obj1.setIsHazardous( "N" ); obj1.setRemark( "备注信息" ); obj1.setCreateTime( "2017-09-09 12:00:00" ); obj1.setUpdateTime( "2017-09-09 12:00:00" ); obj1.setIsValid( "N" ); obj1.setIsSku( "N" ); obj1.setPackageMaterial( "BX123" ); obj1.setChannelCode( "123" ); obj1.setTempRequirement( "temp" ); obj1.setChangeTime( "temp" ); obj1.setLatestUpdateTime( "temp" ); obj1.setActualAmount( "temp" ); obj1.setDiscount( "temp" ); obj1.setReferencePrice( "temp" ); obj1.setStandardPrice( "temp" ); obj1.setSnCode( "temp" ); obj1.setReason( "temp" ); obj1.setLackQty( "temp" ); obj1.setOutBizCode( "temp" ); obj1.setOrderType( "temp" ); obj1.setOrderCode( "temp" ); obj1.setLockQuantity( "temp" ); obj1.setWarehouseCode( "temp" ); obj1.setUnit( "temp" ); obj1.setAmount( "temp" ); obj1.setActualQty( "temp" ); obj1.setOrderLineNo( "temp" ); obj1.setProduceCode( "temp" ); obj1.setOwnerCode( "temp" ); obj1.setSupplierCode( "temp" ); obj1.setSupplierName( "temp" ); obj1.setSn( "temp" ); obj1.setTareWeight( "temp" ); obj1.setStockStatus( "temp" ); obj1.setPrice( "temp" ); obj1.setIsAreaSale( "temp" ); obj1.setQuantity( "temp" ); obj1.setNormalQty( "temp" ); obj1.setDefectiveQty( "temp" ); obj1.setReceiveQty( "temp" ); obj1.setExCode( "temp" ); obj1.setDiscountPrice( "temp" ); obj1.setInventoryType( "temp" ); obj1.setPlanQty( "temp" ); obj1.setSourceOrderCode( "temp" ); obj1.setSubSourceOrderCode( "temp" ); obj1.setLogisticsType( "0" ); obj1.setIsLiquid( "Y" ); req.setItem(obj1); SingleitemSynchronizeResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 | < response > < flag >success</ flag > < code >0</ code > < message >invalid appkey</ message > < itemId >CH123</ itemId > </ 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 > |
错误码 | 错误描述 | 解决方案 |
---|