【问题标题】:eBay API call RelistFixedPriceItem doesn't accept a ListingType of "FixedPriceItem"eBay API 调用 RelistFixedPriceItem 不接受“FixedPriceItem”的列表类型
【发布时间】:2013-06-21 14:56:41
【问题描述】:

我正在尝试使用 eBay API 调用 RelistFixedPriceItem 将以前列为拍卖的商品重新列为固定价格。

我的 XML 请求中“有趣的部分”如下所示:

<RelistFixedPriceItemRequest>
    <Item>
        <ListingType>
            FixedPriceItem
        </ListingType>
    </Item>
</RelistFixedPriceItemRequest>

但是,eBay 仍然回应说我不能使用我使用的 ListingType(“FixedPriceItem”),而是应该使用“FixedPriceItem”(相同):

<RelistFixedPriceItemResponse xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2013-06-21T14:14:52.951Z</Timestamp>
    <Ack>Failure</Ack>
    <Errors>
        <ShortMessage>Unsupported ListingType.</ShortMessage>
        <LongMessage>Valid Listing type for fixedprice apis are FixedPriceItem and StoresFixedPrice.</LongMessage>
        <ErrorCode>21916286</ErrorCode>
        <SeverityCode>Error</SeverityCode>
        <ErrorClassification>RequestError</ErrorClassification>
    </Errors>
    <Version>827</Version>
    <Build>E827_UNI_API5_16161102_R1</Build>
</RelistFixedPriceItemResponse>

有没有人遇到过这个问题 - 或者找到了解决方法?

他们的API documentation 中没有任何内容表明这是不可能的。当然,在 ebay.com 上,您可以在重新发布商品时更改列表类型。

【问题讨论】:

    标签: ebay-api


    【解决方案1】:

    好吧,如果你看看他们的API documentation's Sample XML,你会注意到他们不使用

      <ListingType>
          FixedPriceItem
      </ListingType>
    

    这表明,当您使用 RelistFixedPriceItem 调用时,您不必将 Listing Type 指定为 FixedPriceItem

    我同意这是一个令人困惑的错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-27
      • 1970-01-01
      • 2019-05-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多