GetSupplierDefaults - accountsIQ/API-Wiki GitHub Wiki
The GetSupplierDefaults
function retrieves all default values used when creating new Suppliers.
public WSResult2OfAccountDefaults GetSupplierDefaults(string token)
Public Function GetSupplierDefaults(ByVal token As String) As WSResult2OfAccountDefaults
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
The following example loads the current Supplier defaults.
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if( auth != null )
{
WSResult2OfAccountDefaults defaults = this.ws.GetSupplierDefaults(this.auth);
if( defaults.Status == OperationStatus.SUCCESS )
{
String controlAccount = defaults.ControlGLAccountCode;
// ...
}
}
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 WSResult2OfAccountDefaults = Me.ws.GetSupplierDefaults(Me.auth)
If (defaults.Status = OperationStatus.Success) Then
Dim controlAccount As String
controlAccount = defaults.ControlGLAccountCode
' ...
End If
End If