C# 是否使用API更新易趣上的订单状态?
我使用eBay getorder API获取订单列表,但现在我想选择一个订单并更新其状态 我该怎么做?请,任何帮助都将不胜感激 我在网上使用一些代码,它显示了改变状态的“成功”。但是当我再次加载订单列表时(或者如果我在API中使用C# 是否使用API更新易趣上的订单状态?,c#,.net,ebay-api,C#,.net,Ebay Api,我使用eBay getorder API获取订单列表,但现在我想选择一个订单并更新其状态 我该怎么做?请,任何帮助都将不胜感激 我在网上使用一些代码,它显示了改变状态的“成功”。但是当我再次加载订单列表时(或者如果我在API中使用shipped=false),它仍然是“完整的” 代码: 谢谢你这应该行得通:我要将易趣订单状态从“活动”更改为“完成”,你可以调用“ReviseCheckoutStatus”API,它对我有效:)你尝试过API的completeSale方法吗?嗨,是的,谢谢你我使用c
shipped=false
),它仍然是“完整的”
代码:
谢谢你这应该行得通:我要将易趣订单状态从“活动”更改为“完成”,你可以调用“ReviseCheckoutStatus”API,它对我有效:)你尝试过API的completeSale方法吗?嗨,是的,谢谢你我使用completeSale方法:)。我可以将订单状态更改为“支付”,但有一件事,为什么当我使用API获取订单时,orderstatus=active?是否应更改为已发货或已付款等?应返回最新状态。您是否收到对completesale的sccuess响应?这是一个旧线程,但我有一个问题,我想将订单状态从
Complete
更改为我的自定义状态Confirmed
,我们可以这样做吗@曾格
//create the context
ApiContext context = new ApiContext();
//set the User token
context.ApiCredential.eBayToken = "token";
//set the server url
// context.SoapApiServerUrl = "https://api.sandbox.ebay.com/wsapi";
context.SoapApiServerUrl = "https://api.ebay.com/wsapi";
//enable logging
context.ApiLogManager = new ApiLogManager();
context.ApiLogManager.ApiLoggerList.Add(new FileLogger("log.txt", true, true, true));
context.ApiLogManager.EnableLogging = true;
//set the version
context.Version = "705";
context.Site = SiteCodeType.UK;
//Create the call and set the fields
CompleteSaleCall apicall = new CompleteSaleCall(context);
//Either ItemID-TransactionID or OrderLineItemID or OrderID is required. If item is part of an order, specify OrderID.
apicall.OrderLineItemID = "123467585959-0";
apicall.Shipped = true;
//apicall.Shipment = new ShipmentType();
//apicall.Shipment.ShipmentTrackingDetails = new ShipmentTrackingDetailsTypeCollection();
//ShipmentTrackingDetailsType shpmnt = new ShipmentTrackingDetailsType();
//shpmnt.ShipmentTrackingNumber = "VZ9478668";
//shpmnt.ShippingCarrierUsed = "YourCarrier";
//apicall.Shipment.ShipmentTrackingDetails.Add(shpmnt);
//Specify time in GMT. This is an optional field
//If you don't specify a value for the ShippedTime, it will be defaulted to the time at which the call was made
// apicall.Shipment.ShippedTime = new DateTime(2011, 3, 5, 10, 0, 0).ToUniversalTime();
//call the Execute method
apicall.Execute();
Console.WriteLine(apicall.ApiResponse.Ack);