GetPriceLists - accountsIQ/API-Wiki GitHub Wiki
The GetPriceLists
function retrieves the list of available price lists from the entity.
public WSResult2OfArrayOfPriceList GetPriceLists(string token)
Public Function GetPriceLists(ByVal token As String) As WSResult2OfArrayOfPriceList
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
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
}
}
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