GetPriceLists - accountsIQ/API-Wiki GitHub Wiki

The GetPriceLists function retrieves the list of available price lists from the entity.

Declaration

C#

public WSResult2OfArrayOfPriceList GetPriceLists(string token)

Visual Basic

Public Function GetPriceLists(ByVal token As String) As WSResult2OfArrayOfPriceList

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)
{
  WSResult2OfArrayOfPriceList price listes = ws.GetPriceLists(auth);
  if (price listes.Status == OperationStatus.Success)
  {
      foreach (PriceList price list in price listes.Result)
      {
          // Do something with each price list code
      }
  }
  else
  {
      // Examine ErrorCode to get more information on the failure
  }
}

Visual Basic

Dim ws As New Integration

Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
  Dim price listes As WSResult2OfArrayOfPriceList = Me.ws.GetPriceLists(Me.auth)
  If (price listes.Status = OperationStatus.Success) Then
      Dim price list As PriceList
      For Each price list In price listes.Result
        ' Do something with each price list code
      Next
  Else
    ' Examine ErrorCode to get more information on the failure
  End If
End If

See Also

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