0
我已經嘗試在英國網站列出新產品,但發生了一些錯誤。我會從我的數據庫中提取數據併發送到ebay。eBay錯誤無效ShipToLocation
這裏請求XML:
<AddFixedPriceItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>Ebay TOken</eBayAuthToken>
</RequesterCredentials>
<DetailLevel>ReturnAll</DetailLevel>
<ErrorLanguage>en_US</ErrorLanguage>
<Version>551</Version>
<WarningLevel>High</WarningLevel>
<Item>
<Site>UK</Site><PrimaryCategory><CategoryID>164306</CategoryID></PrimaryCategory><StartPrice currencyID="GBP">120.99</StartPrice><BuyItNowPrice>0</BuyItNowPrice>
<BestOfferDetails>
<BestOfferEnabled>false</BestOfferEnabled>
</BestOfferDetails>
<Country>GB</Country>
<Currency>GBP</Currency>
<DispatchTimeMax>10</DispatchTimeMax>
<ListingDuration>Days_3</ListingDuration>
<ListingType>FixedPriceItem</ListingType>
<PaymentMethods>PayPal</PaymentMethods>
<PayPalEmailAddress>[email protected]</PayPalEmailAddress>
<PictureDetails><PhotoDisplay>PicturePack</PhotoDisplay><PictureURL>http://i.ebayimg.sandbox.ebay.com/00/s/NTUwWDU1MA==/z/pRQAAOSwZDVUXafi/$_1.JPG?set_id=8800005007</PictureURL></PictureDetails>
<Location><![CDATA[SURAT, GUJARAT]]></Location><Quantity>1</Quantity>
<ReturnPolicy>
<ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
<RefundOption>MoneyBack</RefundOption>
<ReturnsWithinOption>Days_14</ReturnsWithinOption>
<Description>If you are not satisfied, return the item for refund.</Description>
<ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>
</ReturnPolicy>
<ShippingDetails>
<ShippingServiceOptions>
<ShippingService>UK_StandardShippingFromOutside</ShippingService>
<ShippingServiceCost currencyID="GBP">0.0</ShippingServiceCost>
<ShippingServicePriority>1</ShippingServicePriority>
<ExpeditedService>false</ExpeditedService>
<ShippingTimeMin>5</ShippingTimeMin>
<ShippingTimeMax>10</ShippingTimeMax>
<FreeShipping>true</FreeShipping>
</ShippingServiceOptions>
<InternationalShippingServiceOption>
<ShippingService>UK_SellersStandardInternationalRate</ShippingService>
<ShippingServiceCost currencyID="GBP">0.0</ShippingServiceCost>
<ShippingServicePriority>1</ShippingServicePriority>
<ShipToLocation>Americas</ShipToLocation>
<ShipToLocation>CA</ShipToLocation>
<ShipToLocation>GB</ShipToLocation>
<ShipToLocation>AU</ShipToLocation>
<ShipToLocation>Europe</ShipToLocation>
<ShipToLocation>Asia</ShipToLocation>
<ShipToLocation>CN</ShipToLocation>
<ShipToLocation>MX</ShipToLocation>
<ShipToLocation>DE</ShipToLocation>
<ShipToLocation>JP</ShipToLocation>
<ShipToLocation>BR</ShipToLocation>
<ShipToLocation>FR</ShipToLocation>
<ShipToLocation>RU</ShipToLocation>
</InternationalShippingServiceOption>
<ShippingType>Flat</ShippingType><SellerExcludeShipToLocationsPreference>true</SellerExcludeShipToLocationsPreference>
</ShippingDetails>
<ShipToLocations>Worldwide</ShipToLocations><RegionID>0</RegionID><ShippingTermsInDescription>True</ShippingTermsInDescription>
<ConditionID>1000</ConditionID>
</Item>
</AddFixedPriceItemRequest>
我獲得以下爲上述請求的錯誤響應。
<?xml version="1.0" encoding="UTF-8"?>
<AddFixedPriceItemResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2014-11-08T12:54:21.441Z</Timestamp>
<Ack>Failure</Ack>
<Errors>
<ShortMessage>Invalid ShipToLocation.</ShortMessage>
<LongMessage>Some of the ShipTo locations provided are not valid for this site. They have been dropped from your listing.</LongMessage>
<ErrorCode>17520</ErrorCode>
<SeverityCode>Warning</SeverityCode>
<ErrorParameters ParamID="0">
<Value><InternationalShippingServiceOptions></Value>
</ErrorParameters>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>891</Version>
<Build>E891_UNI_API5_17051033_R1</Build>
</AddFixedPriceItemResponse>
現在我不知道該怎麼改變。
我已經刪除 BR ShipToLocation>和 RU ShipToLocation>,但它不起作用。 –
HDK
2014-11-10 04:23:03
您可以嘗試在請求XML中只使用 Americas ShipToLocation>並查看它是否有效? –
ekad
2014-11-10 04:27:40
然後會發生其他錯誤:短消息:條件不適用。長消息條件不適用於此類別。 – HDK 2014-11-10 04:33:11