Trigger ESI_SCD sync

syncEsiScd(p_companyID, p_locationID)

 

You can use this endpoint to trigger the ESI_SCD sync of a specific location. ESI_SCD must be available on a publicly accessible APIServer2/EasyConnect server. ESI_SCD 3.2.5 or higher is required.

Parameters

Name Type Required Description
p_companyID string Yes The security code you have been provided with, string (32)
p_locationID string Yes The id of the location to be synched

Return values

ERROR_NO_SECURITY_HASH - no p_companyID is provided.

ERROR_UNKNOWN_SECURITY_HASH - the supplied p_companyID is invalid.

NO_LOCATION_ID_RECEIVED - no p_locationID is provided or it is incorrect.

CURL_ERROR_NO_X - if the call to trigger the APIServer2/EasyConnect can not be made, where X is the code of the curl error.

CURL_RESULT_NOT_JSON_X - if the APIServer2/EasyConnect call returned an invalid response, where X is a more detailed description of the issue.

NO_DEVICE_TO_SYNC - there was no device found to be synched for the given p_companyID-p_locationID combnination. Please check the ESI_SCD details.

SYNC_ERROR_X - where X is a more detailed description of the sync issue


If the sync is successful, a JSON formatted string is returned [{"deviceid1":"ok"},{"deviceid2":"ok"}]

Sample

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:uen="uen:esws">
<soapenv:Header/>
<soapenv:Body>
<uen:Esws.syncEsiScd soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<p_companyID xsi:type="xsd:string">^4p;tU0Q+#dEIhTWkuj5FnLD^aKWqVu0</p_companyID>
<p_locationID xsi:type="xsd:string">1</p_locationID>
</uen:Esws.syncEsiScd>
</soapenv:Body>
</soapenv:Envelope>

Response

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:Esws.syncEsiScdResponse xmlns:ns1="uen:esws">
<return xsi:type="xsd:string">[{"543714888":"ok"},{"542189458":"SynchDevice:SearchDevice_ByIP:ERROR [-102]"}]</return>
</ns1:Esws.syncEsiScdResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>