易趣GetOrders未付订单

时间:2015-09-02 14:19:39

标签: ebay ebay-api

我试图从付费日期为空的eBay中提取订单清单。这是我目前的查询:

http://developer.ebay.com/devzone/xml/docs/reference/ebay/getorders.html

eBay可以退回未支付的订单吗?我需要添加参数吗?



<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Header>
      <RequesterCredentials xmlns="urn:ebay:apis:eBLBaseComponents">
         <eBayAuthToken>XX</eBayAuthToken>
      </RequesterCredentials>
   </soap:Header>
   <soap:Body>
      <GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
         <MessageID>XX</MessageID>
         <Version>779</Version>
         <CreateTimeFrom>2015-08-05T00:00:00</CreateTimeFrom>
         <CreateTimeTo>2015-08-05T23:59:00</CreateTimeTo>
         <OrderRole>Seller</OrderRole>
         <OrderStatus>All</OrderStatus>
         <Pagination>
            <EntriesPerPage>50</EntriesPerPage>
            <PageNumber>1</PageNumber>
         </Pagination>
      </GetOrdersRequest>
   </soap:Body>
</soap:Envelope>
&#13;
&#13;
&#13;

2 个答案:

答案 0 :(得分:2)

我不熟悉GetOrders请求,但你当然可以获得一个没有使用GetMyeBaySelling API付款并将'AwaitingPayment'设置为OrderStatusFilter的Crimothy列表。

http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetMyeBaySelling.html

这个简单的请求可以为您提供您所追求的内容:

<?xml version="1.0" encoding="utf-8"?>
<GetMyeBaySellingRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>... </eBayAuthToken>
</RequesterCredentials>
<SoldList>
<Include>true</Include>
<Pagination><EntriesPerPage>100</EntriesPerPage>
<PageNumber>1</PageNumber>
</Pagination>
<OrderStatusFilter>AwaitingPayment</OrderStatusFilter>
</SoldList><DetailLevel>ReturnAll</DetailLevel>
<Version>935</Version>
<WarningLevel>High</WarningLevel>
</GetMyeBaySellingRequest>

答案 1 :(得分:0)

在关闭</GetOrdersRequest>

之前尝试并传入DetailLevel
<DetailLevel>ReturnAll</DetailLevel>