addInOrder (入库订单接口)

请求地址

环境 HTTP请求地址
接口地址 请联系业务人员

请求参数

名称 类型 是否必须 长度 描述
apiKey String Y 64 货主ApiKey
inOrder List Y 入库单集合
id String 32 入库单id(唯一)
createMode String 2 制单方式 0 手工制单 1 网上下单)
sourceId String Y 32 来源单号
orderType String Y 2 入库类型 1补货订单2退货订单
isUrgent String Y 1 加急 0否 1是
isLocked String 1 锁定 0否 1是
paymentMethod String Y 2 付款方式 0 已付 1 垫付
flag String 1 标记 00 未标记01红色02蓝色03绿色04黄色05粉红色
warehouseId String 32 入库仓库编号
warehouseCode String Y 32 仓库代码
warehouseName String 255 仓库名称
warehouseAddressName String Y 255 仓库地址
warehouseStreet String Y 255 仓库详细地址
warehouseContact String Y 255 仓库联系人
warehouseContactTelephone String Y 32 仓库联系人电话
warehouseContactMobile String Y 32 仓库联系人手机
vendorId String 32 货主编号
vendorCode String 32 货主代码
vendorName String 255 货主简称
createUserName String 255 创建人
createTime Date 创建时间
planArriveTime Date Y 预计到货时间
shipper String Y 255 发货单位
shipperCountryCode String Y 32 发货国别 默认为CN
shipperCountryCode String Y 32 发货国别 默认为CN
sshipperAddressId String Y 32 发货地址编码 CN中国 US美国
shipperAddressName String Y 255 发货地址
shipperStreet String Y 发货详细地址
shipperProvince String Y 发货省份
shipperCity String Y 发货城市
shipperArea String Y 以上4个加起来长度不能超过255 发货地区
shipperContact String Y 255 发货联系人
shipperContactTelephone String Y 32 发货联系人电话
shipperContactMobile String 255 发货联系人Email
licensePlate String 32 车牌号
driver String 255 司机
driverMobile String 32 司机手机
receivedQty Integer 11 实际收货数量
totalQty Integer Y 11 总数量
totalVol Double 15,3 总体积
totalWeight Double 15,3 总重量
totalPrice Double 15,3 总货值
memo String Y text 备注
communicateMemo String text 沟通备注
inBatchNo String Y 32 入仓批次号
TransportationType String Y 2 运输类型 1陆运,2海运,3空运
pickWeight Double 15,3 提货重量
pickPrice Double 15,3 提货单价
packingNo String 32 装箱单据号
cardBoard Long 32 卡板
box Long 32
declarationDate Date 报关日期
customsDeclaration String 32 报关单号
isPackagingMaterials String Y 2 是否是包材 0不是,1 是, 2第三方包材
orderCargoList List Y 订单详情list数据集
productId Boolean 32 货品编号
productCode String Y 32 货号
productName String 255 货品名称
barcode String 32 条码号
planQty Integer Y 11 计划数量
unreceiveQty Integer 11 待收数量
receivedQty Integer 11 实际收货数量
unitPrice Double Y 15,3 单价
subtotalPrice Double 15,3 金额

响应参数

名称 类型 关联数据结构 描述
isSuccess Boolean 操作是否成功
errorCode String 错误代码
msg String 错误信息

请求示例

  • java
  • .NET
         String apiKey="key*****";
		com.kjy.client2.InOrder inOrder=new com.kjy.client2.InOrder();
		inOrder.setSourceId("856387356565");
		inOrder.setCreateMode("0");
		inOrder.setOrderType("1");
		inOrder.setIsUrgent("0");
		inOrder.setIsLocked("0");
		inOrder.setPaymentMethod("0");
		inOrder.setFlag("0");
		inOrder.setWarehouseCode("lhc");
		inOrder.setWarehouseName("流花仓");
		inOrder.setWarehouseAddressName("广东省广州市南沙区");
		inOrder.setWarehouseStreet("测试流花仓");
		inOrder.setWarehouseContact("lee");
		inOrder.setWarehouseContactTelephone("02089399334434");
		inOrder.setVendorCode("msd");
		inOrder.setCreateUserName("lee");
	    inOrder.setShipper("56");
	    inOrder.setShipperCountryCode("CN");
	    inOrder.setShipperAddressId("CN");
	    inOrder.setShipperAddressName("某某村");
	    inOrder.setShipperStreet("某某村");
	    inOrder.setShipperProvince("广东省");
	    inOrder.setShipperCity("广东市");
	    inOrder.setShipperArea("天河区");
	    inOrder.setShipperContact("xiaoxu");
	    inOrder.setShipperContactTelephone("12345");
	    inOrder.setShipperContactMobile("123456");
	    inOrder.setShipperContactEmail("123456@qq.com");
	    inOrder.setLicensePlate("粤B123455");
	    inOrder.setReceivedQty(0);
	    inOrder.setTotalQty(5);
	    inOrder.setTotalVol(6.0);
	    inOrder.setTotalPrice(1.2);
	    inOrder.setInBatchNo("196941654");
	    inOrder.setTransportationType("1");
	    inOrder.setPickWeight(10.0);
	    inOrder.setPickPrice(10.0);
	    inOrder.setPackingNo("10");
	    inOrder.setCardBoard(10L);
	    com.kjy.client2.InOrderCargo 
        inOrderCargo=new com.kjy.client2.InOrderCargo();
	    inOrderCargo.setProductCode("msdshangpin01");
	    inOrderCargo.setPlanQty(10);
	    inOrderCargo.setUnreceiveQty(0);
	    inOrderCargo.setReceivedQty(0);
	    inOrderCargo.setUnitPrice(10.11);
	    inOrderCargo.setSubtotalPrice(10.0);
	    List<com.kjy.client2.InOrderCargo> 
        orderCargoList=new ArrayList<com.kjy.client2.InOrderCargo>();
	    orderCargoList.add(inOrderCargo);
	   inOrder.setOrderCargoList(orderCargoList);
		com.kjy.client2.OrderWS query = (com.kjy.client2.OrderWS)
        getWSObject(http://store.kjy.cn/ecscm/services/orderService?wsdl");
		com.kjy.client2.Result 
        resutl=query.addInOrder(apiKey, inOrder);
        System.out.println(resutl.isIsSuccess()+">>"+
        resutl.getErrorCode()+">>>"+resutl.getMsg());
                                  

响应示例

  • XML示例
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
     <ns1:addInOrderResponse xmlns:ns1="http://outservice.ws.xld.com/">
         <return>
            <isSuccess>true</isSuccess>
            <msg>Success.</msg>
         </return>
      </ns1:addInOrderResponse>
   </soap:Body>
</soap:Envelope>

DEMO下载