MarkInvoiceAsSynchronized
Description
The MarkInvoiceAsSynchronized method marks an invoice as synchronized by setting its InvoiceLastSyncDateTime field to the current UTC timestamp.
Syntax
InvoiceResponse MarkInvoiceAsSynchronized(SecurityToken securityToken, string invoiceInternalId)
Arguments
| Type | Name | Req. | Description |
|---|---|---|---|
| SecurityToken | securityToken | R | A unique token that is used to identify a merchant and authenticate the API request. |
| string | invoiceInternalId | R | Identifies the Invoice object to mark as synchronized. |
Return Value
| Type | Description |
|---|---|
| InvoiceResponse | Indicates whether the operation was successful. |
Example 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:Password/>
</ebiz:securityToken>
<ebiz:invoiceInternalId>********-9886-4d60-9a6c-************</ebiz:invoiceInternalId>
</ebiz:MarkInvoiceAsSynchronized>
</soapenv:Body>
</soapenv:Envelope>eBizService apiClient = new eBizService();
SecurityToken securityToken = new SecurityToken
{
SecurityId = "********-90b4-4a38-ad78-********",
UserId = "********",
Password = "********"
};
InvoiceResponse response = apiClient.MarkInvoiceAsSynchronized(securityToken, "*************-4ef6-9456-************");
public function MarkInvoiceAsSynchronized()
{
$client = new SoapClient('End point URL');
$securityToken = array(
'SecurityId' => '********-4547-1568-4567-************',
'UserId' => '*****',
'Password' => '*****'
);
$response = $client->MarkInvoiceAsSynchronized(
array(
'securityToken' => $securityToken,
'invoiceInternalId' => '********-3454-454-454-************',
)
);
$result = $response->MarkInvoiceAsSynchronizedResult;
}Example 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><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<MarkInvoiceAsSynchronizedResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
<MarkInvoiceAsSynchronizedResult>
<Status>Error</Status>
<StatusCode>0</StatusCode>
<Error>Update Record error</Error>
<ErrorCode>3</ErrorCode>
</MarkInvoiceAsSynchronizedResult>
</MarkInvoiceAsSynchronizedResponse>
</s:Body>
</s:Envelope>Updated 6 months ago
