MarkInvoiceAsSynchronized
Description
This method allows users to mark the invoice as synchronized.
Syntax
InvoiceResponse MarkInvoiceAsSynchronized(SecurityToken securityToken, string invoiceInternalId,);
Arguments
Type | Name | Description |
---|---|---|
SecurityToken | securityToken | Merchant security token: used to identify merchant and validate transaction. (required) |
string | invoiceInternalId | Internal ID for the invoice. (required) |
Return Value
Type | Description |
---|---|
InvoiceResponse | Returns the payment response |
Examples
public function MarkInvoiceAsSynchronized()
{
$client = new SoapClient('End point URL');
$securityToken = array(
'SecurityId' => '******-454757-4567457-********',
'UserId' => 'merchant1',
'Password' => 'merchant1'
);
$response = $client->MarkInvoiceAsSynchronized(
array(
'securityToken' => $securityToken,
'invoiceInternalId' => '343-345435-45435-454',
)
);
$result = $response->MarkInvoiceAsSynchronizedResult;
}
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
<soapenv:Header />
<soapenv:Body>
<ebiz:MarkInvoiceAsSynchronized>
<ebiz:securityToken>
<ebiz:SecurityId>********-766e-44e8-9e9b-********</ebiz:SecurityId>
<ebiz:UserId>?</ebiz:UserId>
<ebiz:Password>?</ebiz:Password>
</ebiz:securityToken>
<ebiz:invoiceInternalId>********-9886-4d60-9a6c-a9caac25b912</ebiz:invoiceInternalId>
</ebiz:MarkInvoiceAsSynchronized>
</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">
<MarkInvoiceAsSynchronizedResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
<MarkInvoiceAsSynchronizedResult>
<Status>Success</Status>
<StatusCode>1</StatusCode>
<Error />
<ErrorCode>0</ErrorCode>
</MarkInvoiceAsSynchronizedResult>
</MarkInvoiceAsSynchronizedResponse>
</s:Body>
</s:Envelope>
public void MarkInvoiceAsSynchronized()
{
eBizService apiClient = new eBizService();
SecurityToken securityToken = new SecurityToken
{
SecurityId = "********-90b4-4a38-ad78-********",
UserId = "",
Password = ""
};
var response = apiClient.MarkInvoiceAsSynchronized(securityToken, "0c2fcb4c-b521-4ef6-9456-8cdf078512f0");
Console.WriteLine(response.Status);
Console.WriteLine(response.StatusCode);
Console.WriteLine(response.Error);
Console.WriteLine(response.ErrorCode);
}
Updated over 2 years ago