-
Notifications
You must be signed in to change notification settings - Fork 2
GetOrdersByCustomerCode
PatrickLane edited this page Oct 30, 2014
·
1 revision
The GetOrdersByCustomerCode
function retrieves a list of sales orders that have been created for a given customer.
public WSResult2OfArrayOfOrder GetOrdersByCustomerCode(string token, string customerCode)
Public Function GetOrdersByCustomerCode(ByVal token As String, ByVal customerCode As String) As WSResult2OfArrayOfOrder
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
customerCode | String | Code of the customer to retrieve the orders of. |
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
WSResult2OfArrayOfOrder Orders = ws.GetOrdersByCustomer(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.GetOrdersByCustomerCode(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