GetDeliveryRouteList - accountsIQ/API-Wiki GitHub Wiki

The GetDeliveryRouteList function retrieves the list of available delivery route from an entity.

Declaration

C#

public WSResult2OfArrayOfDeliveryRoute GetDeliveryRouteList(string token)

Visual Basic

Public Function GetDeliveryRouteList(ByVal token As String) As WSResult2OfArrayOfDeliveryRoute

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.

Example

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if( auth != null )
{
  WSResult2OfArrayOfDeliveryRoute routes = this.ws.GetDeliveryRouteList(this.auth);
  if (routes.Status == OperationStatus.Success)
  {
      foreach (DeliveryRoute route in routes.Result)
      {
      }
  }
}

Visual Basic

Dim ws As New Integration_1_1

Dim auth As String = ws.Login(entityID, partnerKey, userKey)      
If (Not Me.auth Is Nothing) Then
  Dim routes As WSResult2OfArrayOfDeliveryRoute = Me.ws.GetDeliveryRouteList(Me.auth)
  If (routes.Status = OperationStatus.Success) Then
      Dim route As DeliveryRoute
      For Each route In routes.Result
      Next
  End If
End If

See Also

⚠️ **GitHub.com Fallback** ⚠️