MarkSalesOrderAsSynchronized
Description
This method is used to mark the sales order as synchronized.
Syntax
SalesOrderResponse MarkSalesOrderAsSynchronized(SecurityToken securityToken, string salesOrderInternalId)
Arguments
Type | Name | Description |
---|---|---|
SecurityToken | securityToken | Merchant security token: used to identify merchant and validate transaction. (required) |
String | salesOrderInternalId | Unique internal sales order ID assigned by EBizCharge. (required) |
Return Value
Type | Description |
---|---|
SalesOrderResponse | Returns result of MarkSalesOrderAsSynchronized request. |
Examples
public function MarkSalesorderAsSynchronized()
{
$client = new SoapClient('End point URL');
$securityToken = array(
'SecurityId' => '******-454757-4567457-********',
'UserId' => 'merchant1',
'Password' => 'merchant1'
);
$response = $client->MarkSalesorderAsSynchronized(array(
'securityToken' => $securityToken,
'salesOrderInternalId' => '36052-7ec9-4b2e-85fa-4c04999'
));
$result = $response->MarkSalesorderAsSynchronizedResult;
}
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
<soapenv:Header />
<soapenv:Body>
<ebiz:MarkSalesOrderAsSynchronized>
<ebiz:securityToken>
<ebiz:SecurityId>********-23f6-4466-a993-********</ebiz:SecurityId>
<ebiz:UserId>?</ebiz:UserId>
<ebiz:Password>?</ebiz:Password>
</ebiz:securityToken>
<ebiz:salesOrderInternalId>********-0f0f-4f37-bc17-********</ebiz:salesOrderInternalId>
</ebiz:MarkSalesOrderAsSynchronized>
</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">
<MarkSalesOrderAsSynchronizedResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
<MarkSalesOrderAsSynchronizedResult>
<Status>Success</Status>
<StatusCode>1</StatusCode>
<Error />
<ErrorCode>0</ErrorCode>
</MarkSalesOrderAsSynchronizedResult>
</MarkSalesOrderAsSynchronizedResponse>
</s:Body>
</s:Envelope>
public void MarkSalesOrderAsSynchronized()
{
eBizService apiClient = new eBizService();
SecurityToken securityToken = new SecurityToken
{
SecurityId = "*******-c870-41b8-aa5c-********",
UserId = "",
Password = ""
};
var response = apiClient.MarkSalesOrderAsSynchronized(securityToken, "********-7dfd-4aad-ae21-********");
Console.WriteLine(response.Status);
Console.WriteLine(response.StatusCode);
Console.WriteLine(response.Error);
Console.WriteLine(response.ErrorCode);
}
Updated over 2 years ago