Home
Find the answer to your question
It is always a good idea to keep the buyer posted about the order shipping status. Use the CompleteSale call mark an item as shipped. You can also upload a shipment tracking number so that the buyer can track the order. This is a VB.NET sample that demonstrates how to mark an item as shipped and upload the tracking number. The sample has been written using .NET SDK.
Below is the code. Corresponding SOAP request is attached with this article.
Note: If an item has to be shipped in multiple shipments/packages use multiple <ShipmentTrackingDetails> container to specifty the tracking details.
Imports eBay.Service.Call Imports eBay.Service.Core.Sdk Imports eBay.Service.Util Imports eBay.Service.Core.Soap Namespace Trading_Samples Public Class OrderManagement Private Sub CompleteSale() 'create the context Dim context As New ApiContext() 'set the User token context.ApiCredential.eBayToken = "Your token" 'set the server url context.SoapApiServerUrl = "https://api.sandbox.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 = "727" context.Site = SiteCodeType.Australia 'Create the call and set the fields Dim apicall As New CompleteSaleCall(context)
'call the Execute methodapicall.Execute() Console.WriteLine(apicall.ApiResponse.Ack) End Sub End Class End Namespace |