-
Notifications
You must be signed in to change notification settings - Fork 2
GetStockItemDefaults
Arivetti edited this page Aug 8, 2025
·
2 revisions
The GetStockItemDefaults function retrieves all default values used when creating new StockItems.
public WSResult2OfStockItemDefaults GetStockItemDefaults(string token)Public Function GetStockItemDefaults(ByVal token As String) As WSResult2OfStockItemDefaults| Parameter | Type | Description |
|---|---|---|
| token | String | The session token retrieved during authentication. |
The following example loads a the current StockItem defaults.
Integration ws = new Integration();
String auth = "";// See Authentication page for more
if( auth != null )
{
WSResult2OfStockItemDefaults defaults = this.ws.GetStockItemDefaults(this.auth);
if( defaults.Status == OperationStatus.SUCCESS )
{
String taxID = defaults.TaxID;
}
}Dim ws As New Integration_1_1
Dim auth As String = "" // See Authentication page for more
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