【问题标题】:eBay API: GetOrders call returning no orderseBay API:GetOrders 调用不返回任何订单
【发布时间】:2012-05-03 10:20:32
【问题描述】:

我已在沙盒 eBay 帐户下测试订单。

我无法从GetOrders API 调用中获取订单列表。

返回成功消息,但没有获取订单。

以下是 API 调用详情:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns="urn:ebay:apis:eBLBaseComponents" ><soap:Header><RequesterCredentials><eBayAuthToken>...</eBayAuthToken><Credentials><AppId>Clarion89-2b36-4da6-b073-00dafbcff12</AppId><DevId>f79169c1-f95b-4d23-9fe2-547504ffb827</DevId><AuthCert>...</AuthCert></Credentials></RequesterCredentials></soap:Header><soap:Body><GetOrdersRequest><DetailLevel>ReturnAll</DetailLevel><Version>527</Version><CreateTimeFrom>2012-04-02T09:52:27.000Z</CreateTimeFrom><CreateTimeTo>2012-05-03T09:52:27.000Z</CreateTimeTo><OrderRole>Seller</OrderRole><OrderStatus>Active</OrderStatus><ListingType>FixedPriceItem</ListingType></GetOrdersRequest></soap:Body></soap:Envelope>

返回的响应如下

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <GetOrdersResponse xmlns="urn:ebay:apis:eBLBaseComponents">
   <Timestamp>2012-05-03T09:54:03.650Z</Timestamp>
   <Ack>Success</Ack>
   <Version>771</Version>
   <Build>E771_CORE_BUNDLED_14795207_R1</Build>
   <PaginationResult>
    <TotalNumberOfPages>0</TotalNumberOfPages>
    <TotalNumberOfEntries>0</TotalNumberOfEntries>
   </PaginationResult>
   <HasMoreOrders>false</HasMoreOrders>
   <OrderArray/>
   <OrdersPerPage>100</OrdersPerPage>
   <PageNumber>1</PageNumber>
   <ReturnedOrderCountActual>0</ReturnedOrderCountActual>
  </GetOrdersResponse>
 </soapenv:Body>
</soapenv:Envelope>

请告诉我为什么我没有收到订单详情

【问题讨论】:

    标签: orders ebay-api


    【解决方案1】:

    首先我会使用更高的版本(我实际上使用 771 作为兼容级别)

    当我开始为 api 编码时,我曾经有过类似的问题,然后我将 CreatedTime 过滤器切换到 NumberOfDays,这是从今天开始回顾的日子。

    您使用什么语言拨打电话?

    【讨论】:

      【解决方案2】:

      对照存储在 ebay 上的订单检查您的请求参数。可能没有与您在调用中输入的参数匹配的订单。尝试输入最基本的请求参数,例如

      <?xml version="1.0" encoding="utf-8"?>
      <GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
      <RequesterCredentials>
          <eBayAuthToken>[your authentication token]</eBayAuthToken>
      </RequesterCredentials>
      <CreateTimeFrom>2012-05-10T00:00:00.000Z</CreateTimeFrom>
      <CreateTimeTo>2012-05-15T00:00:00.000Z</CreateTimeTo>
      </GetOrdersRequest>
      

      您可以根据需要输入日期,但请确保使用 ebay 接受的日期格式。

      【讨论】:

        猜你喜欢
        • 2015-07-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多