ebay ReviseItemCall 之ReturnPolicy问题

最近ebay在Return Policy那块提供给ebay Sales 一个新的function。简称为RestockingFeeValueOption。这个属性在ReturnPolicyType中一个属性。在实现了AdditemCall中将RestockingFeeValue 成功上传至ebay。接着在Revise的时候,我暂时还未找出办法。我分别用了ReviseItemCall 和ReviseFixePriceitemCall尝试,结果好像都没有在ebay上修改成功。但是从ebay 的Request和Response的message。好像看不出问题。
下面先给晒关于这Revise核心代码(ReviseFixedPriceItemCall 替换ReviseitemCall也是一样的)

public static void ReviseitemReturnPolicy(String ebayItemNumber) throws ApiException, SdkException, Exception
{
apiContentUtil = new ApiContentUtil();
ReviseFixedPriceItemCall call = new ReviseFixedPriceItemCall();
call.setApiContext(apiContentUtil.getApiContext());
ItemType item = new ItemType();
item.setItemID(ebayItemNumber);
//--------------------
ReturnPolicyType returnPolicy = new ReturnPolicyType();
ReturnsAcceptedOptionsCodeType returnsAcceptedOption = ReturnsAcceptedOptionsCodeType.RETURNS_ACCEPTED;
returnPolicy.setReturnsAcceptedOption(returnsAcceptedOption.value());
//set refund
RefundOptionsCodeType refundOption = RefundOptionsCodeType.MONEY_BACK_OR_EXCHANGE;
returnPolicy.setRefundOption(refundOption.value());
//set with in
ReturnsWithinOptionsCodeType returnsWithinOption = ReturnsWithinOptionsCodeType.DAYS_14;
returnPolicy.setReturnsWithinOption(returnsWithinOption.value());
returnPolicy.setShippingCostPaidByOption("Buyer");
System.out.println("vRestockingFeeCodeType:"+RestockingFeeCodeType.PERCENT_15.value());

returnPolicy.setRestockingFeeValue("PERCENT_15");
returnPolicy.setRestockingFeeValueOption(RestockingFeeCodeType.PERCENT_15.value());
//--------------------
item.setReturnPolicy(returnPolicy);
item.setUpdateReturnPolicy(true);
call.setItemToBeRevised(item);
call.reviseFixedPriceItem();


System.out.println("Request:"+call.getRequestXml());

System.out.println("Response:"+ call.getResponseXml());



}

下面晒下和ebay的交互信息

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<ebl:RequesterCredentials SOAP-ENV:mustUnderstand="0" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebl="urn:ebay:apis:eBLBaseComponents">
<ebl:eBayAuthToken>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX </ebl:RequesterCredentials>
</S:Header>
<S:Body>
<ReviseItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<Version>791</Version>
<Item>
<ItemID>xxxxxx</ItemID>
<UpdateReturnPolicy>true</UpdateReturnPolicy>
<ReturnPolicy>
<RefundOption>MoneyBackOrExchange</RefundOption>
<ReturnsWithinOption>Days_14</ReturnsWithinOption>
<ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
<ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>
<RestockingFeeValue>PERCENT_15</RestockingFeeValue>
<RestockingFeeValueOption>Percent_15</RestockingFeeValueOption>
</ReturnPolicy>
</Item>
</ReviseItemRequest>
</S:Body>
</S:Envelope>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<ReviseItemResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2012-11-02T07:27:21.332Z</Timestamp>
<Ack>Warning</Ack>
<Errors>
<ShortMessage>Item specifics ("2135") do not match the category selected.</ShortMessage>
<LongMessage>The catalog product details for this listing have changed.</LongMessage>
<ErrorCode>5121</ErrorCode>
<SeverityCode>Warning</SeverityCode>
<ErrorParameters ParamID="0">
<Value>-1</Value>
</ErrorParameters>
<ErrorParameters ParamID="1">
<Value>2135</Value>
</ErrorParameters>
<ErrorParameters ParamID="2">
<Value/>
</ErrorParameters>
<ErrorParameters ParamID="3">
<Value>Primary Category's VCS Id: 5397. </Value>
</ErrorParameters>
<ErrorParameters ParamID="4">
<Value>No VCS for secondary category. </Value>
</ErrorParameters>
<ErrorParameters ParamID="5">
<Value>Attribute System Version 10459. </Value>
</ErrorParameters>
<ErrorParameters ParamID="6">
<Value>Primary VCS Version: 115334. </Value>
</ErrorParameters>
<ErrorParameters ParamID="7">
<Value/>
</ErrorParameters>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>797</Version>
<Build>E797_UNI_BUNDLED_15500405_R1</Build>
<ItemID>360504281548</ItemID>
<StartTime>2012-11-01T23:20:25.000Z</StartTime>
<EndTime>2012-11-04T23:20:25.000Z</EndTime>
<Fees>
<Fee>
<Name>AuctionLengthFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>BoldFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>BuyItNowFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>CategoryFeaturedFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>FeaturedFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>GalleryPlusFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>FeaturedGalleryFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>FixedPriceDurationFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>GalleryFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>GiftIconFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>HighLightFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>InsertionFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>InternationalInsertionFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>ListingDesignerFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>ListingFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>PhotoDisplayFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>PhotoFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>ReserveFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>SchedulingFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>SubtitleFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>BorderFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>ProPackBundleFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>BasicUpgradePackBundleFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>ValuePackBundleFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>PrivateListingFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>ProPackPlusBundleFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
<Fee>
<Name>MotorsGermanySearchFee</Name>
<Fee currencyID="USD">0.0</Fee>
</Fee>
</Fees>
</ReviseItemResponse>
</soapenv:Body>
</soapenv:Envelope>

通过和ebay的交互信息可以看出ebay并没有将为revise的信息返回Fail。这个状态ebay应该是默认成功了。但是在ebay上始终看不到变化。 暂时我还未找到解决办法。如果有哪位知道请赐教!谢谢!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值