GetTransaction - accountsIQ/API-Wiki GitHub Wiki
The GetTransaction
function retrieves an existing transaction from the system given its unique transaction identifier.
public WSResult2OfTransaction GetTransaction(string token, int transactionID)
Public Function GetTransaction(ByVal token As String, ByVal transactionID As Integer) As WSResult2OfTransaction
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
transactionID | Int32 | Unique identifier of the transaction to retrieve. |
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
WSResult2OfTransaction transaction = ws.GetTransaction(auth, 1);
Assert.IsTrue(transaction.Status == OperationStatus.Success);
}
Dim ws As New Integration
Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
Assert.IsTrue((Me.ws.GetTransaction(Me.auth, 1).Status = OperationStatus.Success))
End If