이베이 getorder API를 사용하여 주문 목록을 얻었으나 주문을 선택하고 상태를 업데이트하려고합니다.api를 사용하여 eBay에서 주문 상태를 업데이트 하시겠습니까?
어떻게 할 수 있습니까? 제발, 어떤 도움을 주시면 감사하겠습니다
인터넷에서 일부 코드를 사용하고 상태를 변경하면 "성공"을 표시합니다. 하지만 주문 목록을 다시로드 할 때 여전히 "완료"(또는 API에서 배송 된 = false를 사용하는 경우) 여전히 "완료"상태입니다.
코드 :
//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);
감사합니다이
api의 completeSale 메소드를 사용해 보셨습니까? –
안녕하세요, completessale 메서드를 사용하여 해 줘서 고마워. :) 주문 상태를 지불하고 바꿀 now.But now.iutorderapi orderatatus = active를 사용할 때 한 가지 이유는 여전히 출하 상태로 변경할 수 있습니까? 배송료 또는 유료화로 변경되지 않아야합니까? – ehsankayani
최신 상태를 반환해야합니다. 당신은 completesale에 대한 응답으로 sccuess지고 있습니까? –