Orders_UpdateShippingStatusOptimized Overview

Request

Field Name  Data Type  Description
request
SaveOrderRequest
save order request. Update Orders with Tracking information.
Sample vb.net code
  //Update an order with shipping information
    // Assuming "o" is an OrderData
    Dim request As New SC.SaveOrderRequest
    request.OrderID = o.Order.ID
    request.ShippingCarrier = "UPS" // Sample shipping carrier
    request.ShippingServiceSelected = "UPS Ground" // Sample shipping service
    request.DeclaredValue = 100 // Commonly used for customs value or insurance
    request.Items = o.Order.Items
    Dim packages(o.Order.Packages.Length - 1) As SC.SavePackageRequest
    Dim i As Integer = 0
    For Each p As SC.Package In o.Order.Packages
        Dim packageRequest As New SC.SavePackageRequest
        //Update package-related info
        p.Weight = 12 ' Weight in oz
        p.TrackingNumber = "TRCK 123 456"
        p.ShippingCost = 10.5 ' in USD
        p.ShipDate = DateTime.Now
        // Populate dimensions if known. Optional
        //p.Width = 0 ' in
        //p.Height = 0 ' in
        //p.Length = 0 ' in
        // Copy the following from the Order and package save requests
        packageRequest.OrderID = o.Order.ID
        packageRequest.Package = p
        packageRequest.Weight = p.Weight
        packageRequest.ShippingCost = p.ShippingCost
        packageRequest.TrackingNumber = p.TrackingNumber
        packageRequest.DeclaredValue = request.DeclaredValue
        packageRequest.ShippingCarrier = request.ShippingCarrier
        packageRequest.ShippingServiceSelected = request.ShippingServiceSelected
        packages(i) = packageRequest
        i += 1
    Next
    request.Packages = packages
    // Send the save request
    Dim result As SC.SaveOrderResult = sellerCloud.Orders_UpdateShippingStatusOptimized(request)
    // Check result.UpdatedServerSide if TRUE
    If result.UpdatedServerSide Then
        Console.WriteLine("Order " & result.OrderID & " updated succcessfully!")
    Else
        Console.WriteLine("Order " & result.OrderID & " could not be updated!")
    End If

How did we do?