GetOrdersBySupplierCode - accountsIQ/API-Wiki GitHub Wiki
The GetOrdersBySupplierCode
function retrieves a list of Orders that have been created for a given Supplier.
public WSResult2OfArrayOfOrder GetOrdersBySupplierCode(string token, string SupplierCode)
Public Function GetOrdersBySupplierCode(ByVal token As String, ByVal SupplierCode As String) As WSResult2OfArrayOfOrder
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
SupplierCode | String | Code of the Supplier to retrieve the orders of. |
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
WSResult2OfArrayOfOrder order = ws.GetOrdersBySupplierCode(auth, "TESTINTEGR");
// Use the orders
}
Dim ws As New Integration
Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not auth Is Nothing) Then
Dim orders As WSResult2OfArrayOfOrder = ws.GetOrdersBySupplierCode(Me.auth, "TESTINTEGR")
If ((orders.Status = OperationStatus.Success) AndAlso (Not orders.Result Is Nothing)) Then
Dim order As Order
For Each order In orders.Result
' Use the order
Next
End If
End If