2016-10-31 64 views
1

我使用以下eBay API中的代碼在eBay中創建物品!Ebay additem拍賣獲取錯誤

但是,以下代碼僅創建拍賣類型清單。

我只是想知道如果有人知道我可以創建現在購買物品/列表,而不是?

請幫幫我。

謝謝

這是我的XML請求。

<?xml version="1.0" encoding="utf-8" ?> 
<AddItemRequest 
    xmlns="urn:ebay:apis:eBLBaseComponents"> 
    <RequesterCredentials> 
     <eBayAuthToken>AgAAAA</eBayAuthToken> 
    </RequesterCredentials> 
    <DetailLevel>ReturnAll</DetailLevel> 
    <ErrorLanguage>en_US</ErrorLanguage> 
    <Version>949</Version> 
    <Item> 
     <Site>US</Site> 
     <PrimaryCategory> 
      <CategoryID>45114</CategoryID> 
     </PrimaryCategory> 
     <ItemSpecifics> 
      <NameValueList> 
       <Name>Brand</Name> 
       <Value>Unbranded</Value> 
      </NameValueList> 
      <NameValueList> 
       <Name>MPN</Name> 
       <Value>Does Not Apply</Value> 
      </NameValueList> 
      <NameValueList> 
       <Name>Model</Name> 
       <Value>mp02</Value> 
      </NameValueList> 
      <NameValueList> 
       <Name>Country/Region of Manufacture</Name> 
       <Value>United States</Value> 
      </NameValueList> 
     </ItemSpecifics> 
     <ConditionID>1000</ConditionID> 
     <BuyItNowPrice currencyID="USD">30.00</BuyItNowPrice> 
     <Country>US</Country> 
     <Currency>USD</Currency> 
     <DispatchTimeMax>3</DispatchTimeMax> 
     <ListingDuration>Days_7</ListingDuration> 
     <ListingType>Auction</ListingType> 
     <LiveAuction>TRUE</LiveAuction> 
     <LotSize>11</LotSize> 
     <Location>san jose, CA</Location> 
     <PaymentMethods>PayPal</PaymentMethods> 
     <PayPalEmailAddress>[email protected]</PayPalEmailAddress> 
     <PictureDetails> 
      <PictureURL>http://www.qbforms.com/api/shopfunc/Penguins.jpg</PictureURL> 
     </PictureDetails> 
     <PostalCode>95125</PostalCode> 
     <Quantity>1</Quantity> 
     <RegionID>0</RegionID> 
     <StartPrice>20.00</StartPrice> 
     <ShippingTermsInDescription>True</ShippingTermsInDescription> 
     <Title>tak_test2_31</Title> 
     <Description>itemXYZzx</Description> 
     <ReturnPolicy> 
      <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption> 
      <RefundOption>MoneyBack</RefundOption> 
      <ReturnsWithinOption>Days_30</ReturnsWithinOption> 
     </ReturnPolicy> 
     <ShippingDetails> 
      <ShippingType>Flat</ShippingType> 
      <ShippingServiceOptions> 
       <ShippingService>USPSMedia</ShippingService> 
       <ShippingServiceCost>2.0</ShippingServiceCost> 
      </ShippingServiceOptions> 
     </ShippingDetails> 
    </Item> 
</AddItemRequest> 

回答

0

如果我理解正確的話,你要創建一個立即購買上市,而不是拍賣上市,那麼它很簡單:你只需要使用不同的API調用AddFixedPriceItem

Here is the API reference包含所有細節。

+0

謝謝你的回覆,但是這個AddFixedPriceItem API添加項目在固定價格我想要在拍賣中添加項目。 –