MarkApplicationTransactionAsApplied
Description
This method allows marking the application transaction against the order or account as applied.
Syntax
ApplicationTransactionResponse ApplicationDataResponse MarkApplicationTransactionAsApplied(SecurityToken ueSecurityToken securityToken, ApplicationTransactionRequest applicationTransactionRequest)
Arguments
Type | Name | Description |
---|---|---|
SecurityToken | securityToken | Merchant security token: used to identify merchant and validate transaction. (required) |
string | applicationTransactionInternalId | Application Transaction Response. |
Return Value
Type | Description |
---|---|
ApplicationTransactionResponse | Returns result of ApplicationTransactionResponse. |
Example
public function MarkApplicationTransactionAsApplied()
{
$client = new SoapClient('End point URL');
$securityToken = array(
'SecurityId' => '******-454757-4567457-********',
'UserId' => 'merchant1',
'Password' => 'merchant1'
);
$response = $client->MarkApplicationTransactionAsApplied(
array(
'securityToken' => $securityToken,
'applicationTransactionInternalId' => '343343-34324-32432432'
)
);
$result = $response->MarkApplicationTransactionAsAppliedResult;
}
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
<soapenv:Header />
<soapenv:Body>
<ebiz:MarkApplicationTransactionAsApplied>
<ebiz:securityToken>
<ebiz:SecurityId>********-766e-44e8-9e9b-********</ebiz:SecurityId>
<ebiz:UserId>odoocrm</ebiz:UserId>
<ebiz:Password>odoocrm</ebiz:Password>
</ebiz:securityToken>
<ebiz:applicationTransactionInternalId>********-f0fb-4154-bf8d-********</ebiz:applicationTransactionInternalId>
</ebiz:MarkApplicationTransactionAsApplied>
</soapenv:Body>
</soapenv:Envelope>
Response:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MarkApplicationTransactionAsAppliedResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
<MarkApplicationTransactionAsAppliedResult>
<ApplicationTransactionInternalId>********-f0fb-4154-bf8d-********</ApplicationTransactionInternalId>
<Status>Success</Status>
<StatusCode>1</StatusCode>
<Error />
<ErrorCode>0</ErrorCode>
</MarkApplicationTransactionAsAppliedResult>
</MarkApplicationTransactionAsAppliedResponse>
</s:Body>
</s:Envelope>
public void MarkApplicationTransactionAsApplied()
{
eBizService apiClient = new eBizService();
SecurityToken securityToken = new SecurityToken
{
SecurityId = "*******-c870-41b8-aa5c-********",
UserId = "",
Password = ""
};
var response = apiClient.MarkApplicationTransactionAsApplied(securityToken, "********-7dfd-4aad-ae21-********");
Console.WriteLine(response.Status);
Console.WriteLine(response.StatusCode);
Console.WriteLine(response.Error);
Console.WriteLine(response.ErrorCode);
Console.ReadLine();
}
Updated over 2 years ago