2016-05-18 10 views
1

eBay APIコール - AddItemを使用して、アイテムをeBayモーターに投稿しようとしています。それは私に以下のようなエラーを投げます。これにいくつかの光を当ててください。Ebay motors API - カテゴリが無効です。 ID 33562

注 - 互換性のあるeBayモーターに手動でアイテムを追加できます。私はAPIの呼び出しを使用してアイテムの詳細(手動で追加されます)を取得しました - GetItem。 AddItem APIコールに同じ詳細を配置しました。以下のエラーで失敗しました。

<ShortMessage>Category is not valid.</ShortMessage> 
<LongMessage>The category is not valid, select another category.</LongMessage> 
<ErrorCode>107</ErrorCode> 
<SeverityCode>Error</SeverityCode> 
<ErrorClassification>RequestError</ErrorClassification> 

要求メッセージが

<?xml version="1.0" encoding="UTF-8"?> 
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents"> 
    <RequesterCredentials> 
     <eBayAuthToken>********PG1QKFIlH****</eBayAuthToken> 
    </RequesterCredentials> 
    <Version>967</Version> 
    <ErrorLanguage>en_US</ErrorLanguage> 
    <WarningLevel>High</WarningLevel> 
    <Item> 
     <Title>Sample ebay motor brake fitment product</Title> 
     <Description>Hummer Truck Right Side Mirror</Description> 
     <StartPrice currencyID="USD">236.0</StartPrice> 
     <Country>US</Country> 
     <Currency>USD</Currency> 
     <ListingDuration>Days_7</ListingDuration> 
     <Location>Los Angeles, California</Location> 
     <DispatchTimeMax>2</DispatchTimeMax> 
     <ConditionID>1000</ConditionID> 
     <PaymentMethods>PayPal</PaymentMethods> 
     <PayPalEmailAddress>w*****[email protected]</PayPalEmailAddress> 
     <Quantity>1</Quantity> 
     <PrimaryCategory> 
      <CategoryID>33562</CategoryID> 
     </PrimaryCategory> 
     <PictureDetails> 
      <GalleryType>Gallery</GalleryType> 
      <GalleryURL>http://****/z/QJsAAOSwXSJXPHk~/$_1.JPG?set_id=880000500F</GalleryURL> 
      <PhotoDisplay>PicturePack</PhotoDisplay> 
      <PictureURL>http://*****/z/QJsAAOSwXSJXPHk~/$_1.JPG?set_id=880000500F</PictureURL> 
     </PictureDetails> 
     <ShippingDetails> 
      <ApplyShippingDiscount>false</ApplyShippingDiscount> 
      <GlobalShipping>true</GlobalShipping> 
      <CalculatedShippingRate> 
       <WeightMajor measurementSystem="English" unit="lbs">0</WeightMajor> 
       <WeightMinor measurementSystem="English" unit="oz">0</WeightMinor> 
      </CalculatedShippingRate> 

      <ShippingServiceOptions> 
       <ShippingService>ShippingMethodStandard</ShippingService> 
       <ShippingServiceCost currencyID="USD">0.0</ShippingServiceCost> 
       <ShippingServicePriority>1</ShippingServicePriority> 
       <ExpeditedService>false</ExpeditedService> 
       <ShippingTimeMin>1</ShippingTimeMin> 
       <ShippingTimeMax>6</ShippingTimeMax> 
       <FreeShipping>true</FreeShipping> 
      </ShippingServiceOptions> 
      <ShippingType>Flat</ShippingType> 
      <ThirdPartyCheckout>false</ThirdPartyCheckout> 
      <TaxTable> 
       <TaxJurisdiction> 
        <JurisdictionID>CA</JurisdictionID> 
        <SalesTaxPercent>10.0</SalesTaxPercent> 
        <ShippingIncludedInTax>false</ShippingIncludedInTax> 
       </TaxJurisdiction> 
      </TaxTable> 
      <ShippingDiscountProfileID>0</ShippingDiscountProfileID> 
      <InternationalShippingDiscountProfileID>0</InternationalShippingDiscountProfileID> 
      <ExcludeShipToLocation>Alaska/Hawaii</ExcludeShipToLocation> 
      <ExcludeShipToLocation>US Protectorates</ExcludeShipToLocation> 
      <ExcludeShipToLocation>APO/FPO</ExcludeShipToLocation> 
      <ExcludeShipToLocation>Africa</ExcludeShipToLocation> 
      <ExcludeShipToLocation>Asia</ExcludeShipToLocation> 
      <ExcludeShipToLocation>Central America and Caribbean</ExcludeShipToLocation> 
      <ExcludeShipToLocation>Europe</ExcludeShipToLocation> 
      <ExcludeShipToLocation>Middle East</ExcludeShipToLocation> 
      <ExcludeShipToLocation>Oceania</ExcludeShipToLocation> 
      <ExcludeShipToLocation>Southeast Asia</ExcludeShipToLocation> 
      <ExcludeShipToLocation>South America</ExcludeShipToLocation> 
      <ExcludeShipToLocation>BM</ExcludeShipToLocation> 
      <ExcludeShipToLocation>GL</ExcludeShipToLocation> 
      <ExcludeShipToLocation>MX</ExcludeShipToLocation> 
      <ExcludeShipToLocation>PM</ExcludeShipToLocation> 
      <ExcludeShipToLocation>PO Box</ExcludeShipToLocation> 
      <SellerExcludeShipToLocationsPreference>true</SellerExcludeShipToLocationsPreference> 
     </ShippingDetails> 

     <ReturnPolicy> 
      <RefundOption>MoneyBack</RefundOption> 
      <Refund>Money Back</Refund> 
      <ReturnsWithinOption>Days_14</ReturnsWithinOption> 
      <ReturnsWithin>14 Days</ReturnsWithin> 
      <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption> 
      <ReturnsAccepted>Returns Accepted</ReturnsAccepted> 
      <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption> 
      <ShippingCostPaidBy>Buyer</ShippingCostPaidBy> 
      <RestockingFeeValue>No</RestockingFeeValue> 
      <RestockingFeeValueOption>NoRestockingFee</RestockingFeeValueOption> 
     </ReturnPolicy> 
     <ItemCompatibilityList> 
      <Compatibility> 
       <NameValueList/> 
       <NameValueList> 
        <Name>Year</Name> 
        <Value>2008</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Make</Name> 
        <Value>Workhorse Custom Chassis</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Model</Name> 
        <Value>R26</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Trim</Name> 
        <Value>Base Motor Home - Stripped Chassis</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Engine</Name> 
        <Value>8.1L 496Cu. In. V8 GAS OHV Naturally Aspirated</Value> 
       </NameValueList> 
       <CompatibilityNotes></CompatibilityNotes> 
      </Compatibility> 
      <Compatibility> 
       <NameValueList/> 
       <NameValueList> 
        <Name>Year</Name> 
        <Value>1998</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Make</Name> 
        <Value>Advance Mixer</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Model</Name> 
        <Value>M</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Trim</Name> 
        <Value>Base Straight Truck - Half Cab</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Engine</Name> 
        <Value>-- DIESEL</Value> 
       </NameValueList> 
       <CompatibilityNotes></CompatibilityNotes> 
      </Compatibility> 
      <Compatibility> 
       <NameValueList/> 
       <NameValueList> 
        <Name>Year</Name> 
        <Value>1988</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Make</Name> 
        <Value>Yugo</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Model</Name> 
        <Value>GVS</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Trim</Name> 
        <Value>Base Hatchback 3-Door</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Engine</Name> 
        <Value>1.1L 1116CC l4 GAS SOHC Naturally Aspirated</Value> 
       </NameValueList> 
       <CompatibilityNotes></CompatibilityNotes> 
      </Compatibility> 
      <Compatibility> 
       <NameValueList/> 
       <NameValueList> 
        <Name>Year</Name> 
        <Value>1963</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Make</Name> 
        <Value>Wolseley</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Model</Name> 
        <Value>1500</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Trim</Name> 
        <Value>Base</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Engine</Name> 
        <Value>1.5L 1489CC 91Cu. In. l4 GAS OHV Naturally Aspirated</Value> 
       </NameValueList> 
       <CompatibilityNotes></CompatibilityNotes> 
      </Compatibility> 
      <Compatibility> 
       <NameValueList/> 
       <NameValueList> 
        <Name>Year</Name> 
        <Value>1928</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Make</Name> 
        <Value>Yellow Cab</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Model</Name> 
        <Value>Model D-1</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Trim</Name> 
        <Value>Base</Value> 
       </NameValueList> 
       <NameValueList> 
        <Name>Engine</Name> 
        <Value>--</Value> 
       </NameValueList> 
       <CompatibilityNotes></CompatibilityNotes> 
      </Compatibility> 
     </ItemCompatibilityList> 

    </Item> 
</AddItemRequest> 

答えて

2

であるあなたがHTTPヘッダーX-EBAY-API-SITEIDの値として100を使用していることを確認してください。これにより、カテゴリーが有効なeBayモーターサイトへのリクエストが確実にルーティングされます。ヘッダーに0を使用すると、カテゴリーが有効でないebay.comへの要求がルーティングされます。

関連する問題