GetOrder - accountsIQ/API-Wiki GitHub Wiki
The GetOrder function retrieves an order given its unique identifier.
public WSResult2OfOrder GetOrder(string token, int orderID)Public Function GetOrder(ByVal token As String, ByVal orderID As Integer) As WSResult2OfOrder| Parameter | Type | Description |
|---|---|---|
| token | String | The session token retrieved during authentication. |
| orderID | Int32 | Unique identifier of an order. |
Integration ws = new Integration();
String auth = "";// See Authentication page for more
if (auth != null)
{
// Get the order ID from a listing method
int orderID = 125;
WSResult2OfOrder order = ws.GetOrder(auth, orderID);
Assert.IsTrue(order.Result != null && order.Status == OperationStatus.Success);
// Use the order and maybe save it back to the system
}Dim ws As New Integration
Dim auth As String = "" // See Authentication page for more
If (Not auth Is Nothing) Then
Dim orderID As Integer = 125
Dim order As WSResult2OfOrder = Me.ws.GetOrder(Me.auth, orderID)
Assert.IsTrue(((Not order.Result Is Nothing) AndAlso (order.Status = OperationStatus.Success)))
End If