运力采购
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
xsd_store_delivery_purchase_request | XsdStoreDeliveryPurchaseRequest | 必须 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ResultDTO | 返回对象 | |
|
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 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaXsdStoreDeliveryPurchaseRequest req = new AlibabaXsdStoreDeliveryPurchaseRequest(); AlibabaXsdStoreDeliveryPurchaseRequest.XsdStoreDeliveryPurchaseRequest obj1 = new AlibabaXsdStoreDeliveryPurchaseRequest.XsdStoreDeliveryPurchaseRequest(); obj1.setDeliveryType(1L); obj1.setShopId( "30114109" ); AlibabaXsdStoreDeliveryPurchaseRequest.XsdStoreDeliveryConfig obj2 = new AlibabaXsdStoreDeliveryPurchaseRequest.XsdStoreDeliveryConfig(); obj2.setMerchantSupportDisplayDay(7L); obj2.setDailyPackCostTime(15L); obj2.setMaxWeight(10L); AlibabaXsdStoreDeliveryPurchaseRequest.XsdFreightConfig obj3 = new AlibabaXsdStoreDeliveryPurchaseRequest.XsdFreightConfig(); AlibabaXsdStoreDeliveryPurchaseRequest.XsdFreightDistanceHitRule obj4 = new AlibabaXsdStoreDeliveryPurchaseRequest.XsdFreightDistanceHitRule(); obj4.setEffective( true ); List<AlibabaXsdStoreDeliveryPurchaseRequest.XsdFreightRangeConfig> list6 = new ArrayList<AlibabaXsdStoreDeliveryPurchaseRequest.XsdFreightRangeConfig>(); AlibabaXsdStoreDeliveryPurchaseRequest.XsdFreightRangeConfig obj7 = new AlibabaXsdStoreDeliveryPurchaseRequest.XsdFreightRangeConfig(); list6.add(obj7); obj7.setStartRange( "5.0" ); obj7.setEndRange( "6.0" ); obj7.setConfigValue( "1.5" ); obj4.setRangeList(list6); obj4.setBaseDistance( "5.0" ); obj3.setFreightDistanceHitRule(obj4); AlibabaXsdStoreDeliveryPurchaseRequest.XsdSpecialPeriodFreightHitRule obj8 = new AlibabaXsdStoreDeliveryPurchaseRequest.XsdSpecialPeriodFreightHitRule(); obj8.setEffective( true ); List<AlibabaXsdStoreDeliveryPurchaseRequest.XsdSpecialPeriodConfig> list10 = new ArrayList<AlibabaXsdStoreDeliveryPurchaseRequest.XsdSpecialPeriodConfig>(); AlibabaXsdStoreDeliveryPurchaseRequest.XsdSpecialPeriodConfig obj11 = new AlibabaXsdStoreDeliveryPurchaseRequest.XsdSpecialPeriodConfig(); list10.add(obj11); obj11.setStartTime( "09:00" ); obj11.setEndTime( "10:00" ); obj11.setConfigValue( "1.5" ); obj8.setRangeList(list10); obj3.setSpecialPeriodFreightHitRule(obj8); obj3.setDeliveryFreight( "4.5" ); AlibabaXsdStoreDeliveryPurchaseRequest.XsdOverweightFreightRule obj12 = new AlibabaXsdStoreDeliveryPurchaseRequest.XsdOverweightFreightRule(); obj12.setEffective( true ); obj12.setOverweightFreight( "1.5" ); obj12.setBaseWeight( "5.0" ); obj3.setOverweightFreightRule(obj12); obj2.setXsdFreightConfig(obj3); List<AlibabaXsdStoreDeliveryPurchaseRequest.DistinctRangeCostTime> list14 = new ArrayList<AlibabaXsdStoreDeliveryPurchaseRequest.DistinctRangeCostTime>(); AlibabaXsdStoreDeliveryPurchaseRequest.DistinctRangeCostTime obj15 = new AlibabaXsdStoreDeliveryPurchaseRequest.DistinctRangeCostTime(); list14.add(obj15); obj15.setCostTimePer1K(2L); obj15.setEndDistanceRange(3L); obj15.setStartDistanceRange(4L); obj2.setDistinctRangeCostTimes(list14); obj1.setConfig(obj2); obj1.setDeliveryRadius(5L); req.setXsdStoreDeliveryPurchaseRequest(obj1); AlibabaXsdStoreDeliveryPurchaseResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 | < alibaba_xsd_store_delivery_purchase_response > < result > < code >A0001</ code > < success >true</ success > < message >系统异常</ message > </ result > </ alibaba_xsd_store_delivery_purchase_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 > |
错误码 | 错误描述 | 解决方案 |
---|