易趣交易API getOrders:检查是否为发货订单被标记 [英] eBay Trading API getOrders: check if order is marked as shipped
问题描述
我想从我的易趣卖家账户获得的所有订单。使用GetOrders API工作正常。
I want to get all orders from my ebay seller account. Using the GetOrders API works fine.
我所有的订单都被标记为ACTIVE或完全取决于订单的状态。但是,当我将其标记为运(由API或上网站)订单保持活跃或完全重新爬行了。我预计订单状态被运。
All of my orders are marked as ACTIVE or COMPLETE depending on the status of the order. But when I mark them as shipped (by API or on the website) the orders stay ACTIVE or COMPLETE after re-crawling. I expected the order status' to be SHIPPED.
- 我使用易趣的Java SDK版本797
- 每个API调用返回成功
我如何计算出,如果作为发货的订单被标记?
How do I figure out if an order is marked as shipped?
这是不是取决于这个国家?
Does this depend on the country?
- 我使用的是德国的eBay沙箱(WebGUI中是德文/英文混合;))
- 我使用的是.COM API-网址
下面是我的code:
GetOrdersCall call = new GetOrdersCall(context);
DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[]{
DetailLevelCodeType.RETURN_ALL
};
call.setDetailLevel(detailLevels);
call.setOrderRole(TradingRoleCodeType.SELLER);
call.setNumberOfDays(30);
OrderType[] orders;
try {
orders = call.getOrders();
for(OrderType order : orders)
System.out.println(order.getOrderStatus().name());
} catch (Exception e) {}
永远的System.out打印SHIPPED
System.out never prints SHIPPED
THX!
推荐答案
您既可以检查现场
<ShippedTime>2013-02-22T13:22:04.000Z</ShippedTime>
,也可以从交易阵列中使用的信息:
or you can use the information from the transaction array:
<TransactionArray>
<Transaction>
<Buyer>
<Email>test.test.test</Email>
</Buyer>
<ShippingDetails>
<SellingManagerSalesRecordNumber>1234</SellingManagerSalesRecordNumber>
<ShipmentTrackingDetails>
<ShippingCarrierUsed>DHL</ShippingCarrierUsed>
<ShipmentTrackingNumber>123456798</ShipmentTrackingNumber>
</ShipmentTrackingDetails>
</ShippingDetails>
...
这篇关于易趣交易API getOrders:检查是否为发货订单被标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!