nvalid ebayblock buyer on ebayid for itemid,transactionid什么意思

 上传我的文档
 下载
 收藏
该文档贡献者很忙,什么也没留下。
 下载此文档
正在努力加载中...
eBay 国际 e 邮宝 API(1)
下载积分:300
内容提示:eBay 国际 e 邮宝 API(1)
文档格式:PDF|
浏览次数:69|
上传日期: 11:48:10|
文档星级:
全文阅读已结束,如果下载本文需要使用
 300 积分
下载此文档
该用户还上传了这些文档
eBay 国际 e 邮宝 API(1)
官方公共微信后使用快捷导航没有帐号?
签到成功!您今天第{todayrank}个签到,签到排名竞争激烈,记得每天都来签到哦!签到日记2013-06已连续签到:{constant}天,累计签到:{days}天
查看: 2927|回复: 11
ebay TransactionID获取为空
大家好,我用java调用api,ItemTitle和ExternalTransactionID时总是获取不到值,不知道是jdk的原因还是什么。有哪位可以帮忙解答下??
使用新版本的SDK,调用时先不要使用 OutputSelector, 设置返回所有(ReturnAll),
title&&= itemType.getTitle() ,不要取错位置
如果没有付款的订单, ExternalTransactionID 可能是没有返回的.
我这边用一直正常...
回复 2# 龟蛇龙 的帖子
恩,我之前忘了ReturnAll了,谢谢啦。
但是我这边有订单,getShippingDetails().getShipmentTrackingDetails(0)到这一步就为null了,没办法取到ExternalTransactionID 。
如果你还没有标记为已发货或者没有上传过跟踪号的话,shipmentTrackingDetail就是空的。
建议你先做一个判断
回复 4# 功能豆 的帖子
嗯嗯,我在获取api call的xml文件中是有ExternalTransactionID值的,但是在提取出来时shipmentTrackingDetail就为空了
回复 5# zhiqi 的帖子
哦,是getShippingDetails().getShipmentTrackingDetails(0)会出现字符串,但是getShippingDetails().getShipmentTrackingDetails(0).getShipmentTrackingNumber()就出现了异常,而getShippingDetails().getShipmentTrackingDetails()就不能再进行下面的操作了
能把你的XML贴出来瞧瞧嘛?
回复 7# 功能豆 的帖子
下面是获取xml的部分信息,trackingnumber在最后
&soapenv:Header/&
&soapenv:Body&
&&&GetSellerTransactionsResponse xmlns=&urn:ebay:apis:eBLBaseComponents&&
& &&Times**p&T04:04:41.331Z&/Times**p&
& &&Ack&Success&/Ack&
& &&Version&839&/Version&
& &&Build&E839_CORE_APISELLING_&/Build&
& &&PaginationResult&
& & &TotalNumberOfPages&3&/TotalNumberOfPages&
& & &TotalNumberOfEntries&72&/TotalNumberOfEntries&
& &&/PaginationResult&
& &&HasMoreTransactions&true&/HasMoreTransactions&
& &&TransactionsPerPage&25&/TransactionsPerPage&
& &&PageNumber&1&/PageNumber&
& &&ReturnedTransactionCountActual&25&/ReturnedTransactionCountActual&
& &&Seller&
& & &AboutMePage&true&/AboutMePage&
& & &EIASToken&6AElICiCZKDqQ2dj6x9nY+seQ==&/EIASToken&
& & &Email&&/Email&
& & &FeedbackScore&7282&/FeedbackScore&
& & &PositiveFeedbackPercent&99.6&/PositiveFeedbackPercent&
& & &FeedbackPrivate&false&/FeedbackPrivate&
& & &FeedbackRatingStar&Green&/FeedbackRatingStar&
& & &IDVerified&false&/IDVerified&
& & &eBayGoodStanding&true&/eBayGoodStanding&
& & &NewUser&false&/NewUser&
& & &RegistrationDate&T08:21:39.000Z&/RegistrationDate&
& & &Site&HongKong&/Site&
& & &Status&Confirmed&/Status&
& & &UserID&sainspeed_us&/UserID&
& & &UserIDChanged&false&/UserIDChanged&
& & &UserIDLastChanged&T11:08:48.000Z&/UserIDLastChanged&
& & &VATStatus&NoVATTax&/VATStatus&
& & &SellerInfo&
& &&&&AllowPaymentEdit&false&/AllowPaymentEdit&
& &&&&CheckoutEnabled&false&/CheckoutEnabled&
& &&&&CIPBankAccountStored&false&/CIPBankAccountStored&
& &&&&GoodStanding&true&/GoodStanding&
& &&&&LiveAuctionAuthorized&false&/LiveAuctionAuthorized&
& &&&&MerchandizingPref&OptIn&/MerchandizingPref&
& &&&&QualifiesForB2BVAT&false&/QualifiesForB2BVAT&
& &&&&StoreOwner&true&/StoreOwner&
& &&&&StoreURL&/id=&/StoreURL&
& &&&&SafePaymentExempt&false&/SafePaymentExempt&
& & &/SellerInfo&
& & &SiteVerified&true&/SiteVerified&
& &&/Seller&
& &&TransactionArray&
& & &Transaction&
& &&&&AmountPaid currencyID=&USD&&8.5&/AmountPaid&
& &&&&Adjustmen**ount currencyID=&USD&&0.0&/Adjustmen**ount&
& &&&&ConvertedAdjustmen**ount currencyID=&USD&&0.0&/ConvertedAdjustmen**ount&
& &&&&Buyer&
& && &&AboutMePage&false&/AboutMePage&
& && &&EIASToken&nY+sHZ2PrBmdj6wVnY==&/EIASToken&
& && &&Email&Invalid Request&/Email&
& && &&FeedbackScore&146&/FeedbackScore&
& && &&PositiveFeedbackPercent&100.0&/PositiveFeedbackPercent&
& && &&FeedbackPrivate&false&/FeedbackPrivate&
& && &&FeedbackRatingStar&Turquoise&/FeedbackRatingStar&
& && &&IDVerified&false&/IDVerified&
& && &&eBayGoodStanding&true&/eBayGoodStanding&
& && &&NewUser&false&/NewUser&
& && &&RegistrationDate&T03:09:09.000Z&/RegistrationDate&
& && &&Site&US&/Site&
& && &&Status&Confirmed&/Status&
& && &&UserID&retgd&/UserID&
& && &&UserIDChanged&false&/UserIDChanged&
& && &&UserIDLastChanged&T03:09:09.000Z&/UserIDLastChanged&
& && &&VATStatus&NoVATTax&/VATStatus&
& && &&BuyerInfo&
& && & &ShippingAddress&
& && &&&&Name&Cody Hill&/Name&
& && &&&&Street1&888 Sanders&/Street1&
& && &&&&CityName&Queensbury&/CityName&
& && &&&&StateOrProvince&NY&/StateOrProvince&
& && &&&&Country&US&/Country&
& && &&&&CountryName&United States&/CountryName&
& && &&&&Phone&& & &/Phone&
& && &&&&PostalCode&&/PostalCode&
& && &&&&AddressID& &/AddressID&
& && &&&&AddressOwner&eBay&/AddressOwner&
& && &&&&AddressUsage&DefaultShipping&/AddressUsage&
& && & &/ShippingAddress&
& && &&/BuyerInfo&
& && &&UserAnonymized&false&/UserAnonymized&
& && &&StaticAlias&test@email&/StaticAlias&
& &&&&/Buyer&
& &&&&ShippingDetails&
& && &&ChangePaymentInstructions&true&/ChangePaymentInstructions&
& && &&PaymentEdited&true&/PaymentEdited&
& && &&SalesTax&
& && & &SalesTaxPercent&0.0&/SalesTaxPercent&
& && & &ShippingIncludedInTax&false&/ShippingIncludedInTax&
& && & &SalesTaxAmount currencyID=&USD&&0.0&/SalesTaxAmount&
& && &&/SalesTax&
& && &&ShippingType&Flat&/ShippingType&
& && &&SellingManagerSalesRecordNumber&14059&/SellingManagerSalesRecordNumber&
& && &&Third**Checkout&false&/Third**Checkout&
& && &&TaxTable/&
& && &&GetItFast&false&/GetItFast&
& && &&ShippingServiceUsed&USPSFirstClass&/ShippingServiceUsed&
& && &&ExcludeShipToLocation&Alaska/Hawaii&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&US Protectorates&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&APO/FPO&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&Africa&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&Central America and Caribbean&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&Middle East&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&South America&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&RU&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&AL&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&AD&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&AT&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&BY&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&BE&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&BA&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&BG&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&HR&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&CY&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&CZ&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&DK&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&EE&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&FI&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&GI&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&GR&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&GG&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&HU&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&IS&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&IE&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&JE&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&LV&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&LI&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&LT&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&LU&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&MK&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&MT&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&MD&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&MC&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&ME&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&NO&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&PL&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&PT&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&RO&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&SM&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&RS&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&SK&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&SI&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&SJ&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&SE&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&CH&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&UA&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&VA&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&BN&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&KH&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&HK&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&ID&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&LA&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&MO&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&TW&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&VN&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&AF&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&AM&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&AZ&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&BD&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&BT&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&CN&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&GE&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&IN&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&JP&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&KZ&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&KG&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&MV&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&MN&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&NP&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&PK&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&TJ&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&TM&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&UZ&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&AS&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&CK&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&FJ&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&PF&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&GU&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&KI&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&MH&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&FM&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&NR&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&NC&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&NU&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&PW&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&PG&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&SB&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&TO&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&TV&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&VU&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&WF&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&WS&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&BM&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&GL&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&MX&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&PM&/ExcludeShipToLocation&
& && &&ExcludeShipToLocation&PO Box&/ExcludeShipToLocation&
& && &&ShipmentTrackingDetails&
& && & &ShippingCarrierUsed&USPS&/ShippingCarrierUsed&
& && & &ShipmentTrackingNumber&6152455&/ShipmentTrackingNumber&
& && &&/ShipmentTrackingDetails&
& &&&&/ShippingDetails&
& &&&&ConvertedAmountPaid currencyID=&USD&&8.5&/ConvertedAmountPaid&
& &&&&ConvertedTransactionPrice currencyID=&USD&&8.5&/ConvertedTransactionPrice&
& &&&&CreatedDate&T03:53:28.000Z&/CreatedDate&
& &&&&DepositType&None&/DepositType&
[ 本帖最后由 zhiqi 于
13:28 编辑 ]
什么异常?
原帖由 zhiqi 于
10:03 发表
恩,我之前忘了ReturnAll了,谢谢啦。
但是我这边有订单,getShippingDetails().getShipmentTrackingDetails(0)到这一步就为null了,没办法取到ExternalTransactionID 。
ExternalTransactionID 不在 getShippingDetails() 中, 是不是搞错了?
注意一下,位置在&&ExternalTransaction.ExternalTransactionID
原帖由 zhiqi 于
15:20 发表
哦,是getShippingDetails().getShipmentTrackingDetails(0)会出现字符串,但是getShippingDetails().getShipmentTrackingDetails(0).getShipmentTrackingNumber()就出现了异常,而getShippingDetails().getShipmentTracki ...
由于订单的状态不可控制,程序为了最大程序提高兼容性,应该做一些代码上的处理,
我个人是这样处理的:
//eTrade 是我内部一个对象
//先要判断 对象不为 null ,再调用对象的方法或者属性,这样最为安全
if(o.getExternalTransaction()!=null && o.getExternalTransactionLength()&0){
& & & & eTrade.setTransactionid(o.getExternalTransaction(0).getExternalTransactionID());//只取第一个付款
& & & & eTrade.setPaypalamt(o.getExternalTransaction(0).getPaymentOrRefundAmount().getValue());
& & & & eTrade.setPaypalfee(o.getExternalTransaction(0).getFeeOrCredi**ount().getValue());
& & & & eTrade.setPaypalpaidtime(o.getExternalTransaction(0).getExternalTransactionTime());& & & & & & & & & & & &
& & & & eTrade.setTransactionid(&&);
&&& & & & eTrade.setPaypalamt(0.00);
& & & & eTrade.setPaypalfee(0.00);
& & & & eTrade.setPaypalpaidtime(null);
还有, 你想取 TrackingNumber ,给你个代码参考
如果用getOrders,应该是:
OrderType[] oList = getOrdersCall.getOrders();// API 调用
for(int k =0;k&oList.k++){
& & & & OrderType o = oList[k]; //取一个订单
& & & & if(o==null){
& & & & & & & &
& & & & }& & & &
& & & & TransactionArrayType tArr = o.getTransactionArray();//取订单中的交易,合并的,会有多个交易
& & & & for (int j =0 ;j&tArr.getTransactionLength();j++){& & & & & & & & & & & &
& & & & & & & & TransactionType t = tArr.getTransaction(j); //处理每一个 Transaction
& & & & & & & & if(t==null){
& & & & & & & & & & & &
& & & & & & & & }
& & & & & & & & //取值之前,要做逻辑判断,防止出现对象为null时调用其方法报错
& & & & & & & & if(t.getShippingDetails()!=null&&t.getShippingDetails().getShipmentTrackingDetails()!=null&&t.getShippingDetails().getShipmentTrackingDetailsLength()&0){
& & & & & & & & & & & & String carrier = t.getShippingDetails().getShipmentTrackingDetails(0).getShippingCarrierUsed();//物流公司
& & & & & & & & & & & & String trackingNumber = t.getShippingDetails().getShipmentTrackingDetails(0).getShipmentTrackingNumber();& & & & //跟踪号& & & & & & & & & & & & & & & & & & & & & & & & & & & &
& & & & & & & & }
& & & && && &&&//店铺中的单号,每一个Transaction都有一个唯一的recordNumber
& & & & & & & & Integer recordNumber = t.getShippingDetails()==null?0:t.getShippingDetails().getSellingManagerSalesRecordNumber();& & & &
回复 11# 龟蛇龙 的帖子
太感谢你了,我已经加了判断了,现在的是没有问题了。后使用快捷导航没有帐号?
签到成功!您今天第{todayrank}个签到,签到排名竞争激烈,记得每天都来签到哦!签到日记2013-06已连续签到:{constant}天,累计签到:{days}天
查看: 2632|回复: 7
AddAPACShippingPackage出错无法解决
E邮宝V3版API,AddAPACShippingPackage总报错:Invalid+PickUpAddress+(Country).中国用的是tomcat+7.0环境,明明写了 &country&中国&/country&
还可能会是什么问题呢?
能否把您完整的request贴一下看看?
我这边怎么添加不了引用
引用地址是:
& && && && &&&元数据包含无法解析的引用:“”。
下载“”时出错。
无法连接到远程服务器
由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 66.211.164.66:8001
元数据包含无法解析的引用:“”。
元数据包含无法解析的引用:“”。
如果该服务已在当前解决方案中定义,请尝试生成该解决方案,然后再次添加服务引用。
& & 郁闷.....
&?xml version=&1.0& encoding=&ISO-8859-1&?&
&soap12:Envelope xmlns:soap12=&http://www.w3.org/2003/05/soap-envelope& xmlns:xsd=&http://www.w3.org/2001/XMLSchema& xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&
&&&soap12:Body&
& & &AddAPACShippingPackage xmlns=&/&&
& && &&AddAPACShippingPackageRequest&
& & & && &&Version&3.0.0&/Version&
& & & && &&APIDevUserID&**&/APIDevUserID&&&
& & & & &APIPassword&***&/APIPassword&
& & & & &APISellerUserID&***&/APISellerUserID&
& && &&&&OrderDetail&
& && && & &PickUpAddress&
& && && && &&Email&**&/Email&
& && && && &&Country&中国&/Country&
& && && && &&Province&310000&/Province&
& & & & &City&310100&/City&
& && && && &&District&310112&/District&
& & & & &Street&**&/Street&
& & & & &Postcode&201102&/Postcode&
& && && && &&Contact&**&/Contact&
& & & & &Mobile&**&/Mobile&
& & & & &Phone&***&/Phone&
& && && & &/PickUpAddress&
& && && & &ShipFromAddress&
& && && && &&Email&**&/Email&
& && && && &&Country&CHINA&/Country&
& && && && &&Province&SHANGHAI&/Province&
& && && && &&City&SHANGHAI&/City&
& && && && &&District&MINHANG&/District&
& && && && &&Street&***&/Street&
& && && && &&Postcode&201102&/Postcode&
& && && && &&Contact&**&/Contact&
& && && && &&Mobile&**&/Mobile&
& && && & &/ShipFromAddress&
& && && & &ShipToAddress&
& && && && &&Email&&/Email&
& && && && &&Country&United States&/Country&
& && && && &&Province&WA&/Province&
& && && && &&City&SEATTLE&/City&
& && && && &&Street&2409 N 40TH ST&/Street&
& && && && &&Postcode&98103&/Postcode&
& && && && &&Contact&SARAH LOBER&/Contact&
& && && && &&CountryCode&US&/CountryCode&
& && && && &&Phone&(206) 548-9588&/Phone&
& && && & &/ShipToAddress&
& & & & & & & && &&ReturnAddress&
& & & & & & & & & & & & &Country&中国&/Country&
& & & & & & & & & & & & &Province&上海&/Province&
& & & & & & & & & & & & &City&上海&/City&
& & & & & & & & & & & & &District&闵行&/District&& & & & & & & & & & & &
& & & & & & & & & & & & &Street&**&/Street&& & & & & & & & & & & &
& & & & & & & & & & & & &Postcode&201102&/Postcode&& & & & & & & &
& & & & & & & & & & & & &Contact&**&/Contact&
& & & & & & & && &&/ReturnAddress&
& && && & &ItemList&
& && && & &Item&&EBayItemID&&/EBayItemID&&EBayTransactionID&*&/EBayTransactionID&&EBayBuyerID&sneetche&/EBayBuyerID&&Note&25813&/Note&&PostedQTY&1&/PostedQTY&&SKU&&CustomsTitleCN&_AA0282816&/CustomsTitleCN&&CustomsTitleEN&Fur vest1&/CustomsTitleEN&&DeclaredValue&5&/DeclaredValue&&Weight&0.05&/Weight&&OriginCountryCode&CH&/OriginCountryCode&&OriginCountryName&CHINA&/OriginCountryName&&/SKU&&/Item&&/ItemList&
& && && & &EMSPickUpType&0&/EMSPickUpType&
& && &&&&/OrderDetail&
& && &&/AddAPACShippingPackageRequest&
& & &/AddAPACShippingPackage&
&&&/soap12:Body&
&/soap12:Envelope&
端口8001要去掉
另外您是否已经发过邮件到我们的咨询邮箱,小豆已经测试过您的request没有任何问题
所以我们怀疑您可能把其他的response错误的对应到这个request上来了
您是否可以自己检查一下
问题解决了。主要是因为我们上传的方式用的HttpURLConnection 这种类人猿的方式,直接上传xml
什么http头信息,传输的编码都要自定义去填写,一个地方乱了麻烦了。
看到的帖子需要好好研究下,能直接自动生成调用接口,省去了很多麻烦且容易出错的代码编写。再次感谢功能豆。
类人猿。。。万邑联开发者平台
开发者文档
创建海外仓出库单(确认中)
接口说明通过本接口用户可以创建出库单并提交至“确认中”状态。当出库单状态在“确认中”后不能再更改状态。使用场景用户可使用本接口创建出库单至“确认中”,一次请求仅支持创建一个出库单。请求说明URL接口测试验证方式Token,md5格式jsonhttp请求方式http请求数限制默认每分钟300,有需要可以申请加大&参数说明名称类型必填说明示例warehouseIDString()Y万邑通海外仓ID,唯一,可查询。eBayOrderID &&String()NeBay OrderID用于标识一条唯一的eBay 订单,这个订单可以包含一个或多个商品交易(一个交易对应一个eBay 上的Transaction_ID + Item_ID).当买家在一个时间向同一卖家购买多种商品,eBay 将会基于这些交易(Transaction)生成一个唯一订单号(OrderID)。当买家一次仅仅购买一种商品(一个ItemID)时,则此OrderID 与此笔交易一一对应。在使用CompleteSale 接口时,OrderID & & 被用于定位一笔订单。repeatable&String(1)Y用户授权此海外仓出库单是否可重复。是否允许重复不可为空。 &eg.&可重复则取值 ‘Y’ &不可重复则取值‘N’我们根据eBay对一个Shipping Order唯一性验证规则制定相应的海外仓出库单唯一性验证规则如下: &当一个海外仓出库单对应的eBay OrderID, eBay TransactionID, & eBayItemID 组合唯一时,我们确认此出库单为唯一。作废订单也将被记录并实施验证。 &例外情况: &当用户由于业务需要重复发送一个海外仓出库单时,可将IsRepeat设为‘Y’,则以上唯一性验证失效,此时系统不阻止重复下单。IsRepeat设为‘N’时则唯一性验证生效。deliveryWayIDString()Y最后一公里派送方式ID。最后一公里派送方式ID不可为空。 & 可查询&insuranceTypeIDString()Y最后一公里派送方式所用保险类型ID。保险类型ID不可为空。&sellerOrderNoString()N卖家订单号。 &&recipientNameString()Y收件人姓名,来自于由eBay买家提供收货地址。收件人姓名不可为空。&phoneNumString()Y收件人电话。 &&zipCodeString()Y邮政编码&emailAddressString()N收件人电子邮箱,&stateString()Y收件人国家名称,可使用国家英文全称或是ISO国家代码。收件人国家不可为空。 &&&region&String()Y收件人州名称。收件人州不可为空&&cityString()Yaddress1String()Y收件人街道1&address2String()N收件人街道2&doorplateNumbersString()N派送方式为DHL、UK DPD,门牌号必填&productCodeString()Y产品编码。产品编码不可为空。 & SKU&specificationString()N规格(如果此产品注册时填写了该字段,那么此为必填项,否则无法准确定位您注册的产品。如果您在注册产品时没有填写该字段,则在XML中去掉‘Specification’字段。)&eBayTransactionIDLongNeBay TransactionID。eBay & TransactionID为选填。eBay上使用TransactionID+ItemID标识一个唯一的交易,一个OrderID可以对应一个或多个交易。当一笔交易的拍卖方式为‘BID’时,此笔交易的TransactionID为‘0’。eBay API参考:eBay API:GetOrdersParamater:OrderArray.Order.TransactionArray.Transaction.TransactionIDeBayItemIDLongNeBay ItemID。eBay & & ItemID为选填。eBay上使用描述一个刊登的唯一标识。一个刊登可以产生多笔交易,但是ItemID是唯一不变的。eBay API参考:eBay API:GetOrdersParamater:OrderArray.Order.TransactionArray.Transaction.Item.ItemIDeBaySellerIDString()N当前Transaction对应的eBay Seller ID。eBay Seller ID为选填。eBay API参考:eBay API:GetOrdersParamater:OrderArray.Order.SellerUserIDeBayBuyerIDString()N当前Transaction对应的eBay Buyer ID。eBay Buyer ID为选填。eBay API参考:eBay API:GetOrdersParamater:OrderArray.Order.BuyerUserIDproductNumInteger()Y一个海外仓出库单所包含的某个产品的数量。产品对应的单品数量必须&0。&platformString()N第三方卖家工具在提交海外仓出库单时填写该字段,命名规则由万邑通与三方工具提供商共识。卖家不必上传。&isShareOrderString(1)N共享单(Y/N)&fromBpartnerIdInteger()N共享人(共享单为Y,必填&请求示例{&&&&&action&:&createOutboundOrder&,&&&&&app_key&:&rebecca&,&&&&&data&:{&&&&&&&&&address1&:&1 Stafford Crt.&,&&&&&&&&&address2&:&aaaaaaa&,&&&&&&&&&city&:&Bayswater North&,&&&&&&&&&deliveryWayID&:&1010520&,&&&&&&&&&eBayOrderID&:&&,&&&&&&&&&emailAddress&:&&,&&&&&&&&&insuranceTypeID&:1000000,&&&&&&&&&phoneNum&:&&,&&&&&&&&&productList&:[&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&eBayBuyerID&:&rere&,&&&&&&&&&&&&&&&&&eBayItemID&:&3434245&,&&&&&&&&&&&&&&&&&eBaySellerID&:&99887rtrtr66123&,&&&&&&&&&&&&&&&&&eBayTransactionID&:&&,&&&&&&&&&&&&&&&&&productCode&:&LCD-IP4-01&,&&&&&&&&&&&&&&&&&productNum&:&1&,&&&&&&&&&&&&&&&&&specification&:&&&&&&&&&&&&&&}&&&&&&&&],&&&&&&&&&recipientName&:&mingbao&,&&&&&&&&&region&:&WV&,&&&&&&&&&repeatable&:&Y&,&&&&&&&&&sellerOrderNo&:&PowerSellerABC123&,&&&&&&&&&state&:&US&,&&&&&&&&&warehouseID&:1000008,&&&&&&&&&zipCode&:&25085&,&&&&&&&&&isShareOrder&:&N&,&&&&&&&&&fromBpartnerId&:&111&&&&&},&&&&&format&:&json&,&&&&&language&:&zh_CN&,&&&&&platform&:&SELLERERP&,&&&&&sign&:&&,&&&&&sign_method&:&md5&,&&&&&timestamp&:& 00:19:26&,&&&&&version&:&1.0&}返回结果示例{&&&&&code&:0,&&&&&data&:{&&&&&&&&&outboundOrderNum&:&1605745&&&&&},&&&&&msg&:&成功&}返回参数说明正确的返回结果:出库单号,出库单状态。错误的返回结果:错误码,错误信息附:一、特殊尾程派送方式参数赋值说明1.尾程派送服务DHL Packet Service收件人地址填写邮局自提柜时&&&&address1填写邮局&&&&address2填写自提柜编号&&&&doorplateNumbers填写门牌号例:收件人地址为邮局“Postfiliale”,地址门牌号为“520”,邮局自提柜编号为“”二、DE DPD尾程派送服务新增“门牌号”强制校验说明DE Warehouse尾程派送服务(如下)“门牌号[doorplateNumbers]”强制校验不能为空,未填写将提示下单错误,请进行填写或为空值时使用默认值。派送方式派送方式IDDPD International Parcels (2-8 & business days)1000213

我要回帖

更多关于 ebay block buyer 的文章

 

随机推荐