2014-11-08 3 views
0

저는 영국 사이트에 새 제품을 나열하려고했지만 일부 오류가 발생합니다. 내 데이터베이스에서 데이터를 가져와 이베이로 보냅니다. 나는 위의 요청에 대한 오류 응답을 다음 얻을eBay 오류 ShipToLocation이 유효하지 않습니다.

<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을 요청합니다.

<?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>&lt;InternationalShippingServiceOptions&gt;</Value> 
    </ErrorParameters> 
    <ErrorClassification>RequestError</ErrorClassification> 
    </Errors> 
    <Version>891</Version> 
    <Build>E891_UNI_API5_17051033_R1</Build> 
</AddFixedPriceItemResponse> 

이제 무엇을 변경해야하는지 알지 못합니다.

답변

1

응답 XML에서 <LongMessage> 태그 내용이 제공 ShipTo 위치 중 일부는이 사이트에 대한 유효하지 않은 자명

입니다. 그들은 귀하의 목록에서 삭제되었습니다.

는 요청 XML eBay API Documentation, BRRU에 따르면

<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> 

에서 <ShipToLocation> 태그에서보세요 것은 유효하지 않습니다. 요청 XML에서 <ShipToLocation>BR</ShipToLocation><ShipToLocation>RU</ShipToLocation> 을 제거하십시오.

+0

BR RU을 제거했지만 작동하지 않습니다. – HDK

+0

요청 XML에서 ' Americas'만 사용하고 작동하는지 확인할 수 있습니까? – ekad

+0

그러면 다른 오류가 발생합니다. 짧은 메시지 : 조건이 적용되지 않습니다. 긴 MessageCondition은이 범주에 적용 할 수 없습니다. – HDK

관련 문제