GetStockItemDefaults - accountsIQ/API-Wiki GitHub Wiki

The GetStockItemDefaults function retrieves all default values used when creating new StockItems.

Declaration

C#

public WSResult2OfStockItemDefaults GetStockItemDefaults(string token)

Visual Basic

Public Function GetStockItemDefaults(ByVal token As String) As WSResult2OfStockItemDefaults

Parameter List

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

Example

The following example loads a the current StockItem defaults.

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if( auth != null )
{
  WSResult2OfStockItemDefaults defaults = this.ws.GetStockItemDefaults(this.auth);
  if( defaults.Status == OperationStatus.SUCCESS )
  {
    String taxID = defaults.TaxID;
  }
}

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 defaults As WSResult2OfStockItemDefaults = Me.ws.GetStockItemDefaults(Me.auth)
  If (defaults.Status = OperationStatus.Success) Then
      Dim taxID As String
      taxID = defaults.TaxID
  End If
End If

See Also

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