This feature is intended for use by developers and experienced programmers who need to integrate third party systems with Kartris (such as EPOS or accounts systems) or add/update/remove/read data within Kartris remotely and programmatically.
To activate the web API you have to set a couple of things in your site's web.config file:
<appSettings>
<add key="KartrisWebAPISecretKey" value="[YourSecretKeyHere]" />
</appSettings>
...
<baseAddresses>
<add baseAddress="[YourWebShopURLHere]Protected/KartrisWebAPI.svc" />
</baseAddresses>
Once you have activated and configured the web API, you can access it as follows:
[YourWebShopURLHere]Protected/KartrisWebAPI.svc
The web service contains a single method called 'Execute' with two parameters:
'''<summary>
'''Execute Kartris method
'''</summary>
'''<param name="strMethod">Name of the method that you want to execute (fully
'''qualified name, case-sensitive) e.g. CKartrisBLL.WebShopURL </param>
'''<param name="strParametersXML">XML parameter array for the specified method</param>
'''<returns>XML Serialized Object</returns>
'''<remarks></remarks>
Public Function Execute(ByVal strMethod As String, ByVal strParametersXML As String) As String
set xmlhttp = WScript.CreateObject("MSXML2.ServerXMLHTTP.6.0")
xmlhttp.Open "POST", "[YourWebShopURLHere]Protected/KartrisWebAPI.svc", False
xmlhttp.setRequestHeader "Authorization", [YourSecretKeyHere]
xmlhttp.setRequestHeader "Content-Type", "text/xml"
xmlhttp.setRequestHeader "SOAPAction", "http://tempuri.org/IKartrisWebAPI/Execute"
xmlhttp.send requestDoc.xml
<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'>
<s:Body>
<Execute xmlns='http://tempuri.org/'>
<strMethod>TaxBLL.GetTaxRate</strMethod>
<strParametersXML>
<?xml version="1.0" encoding="utf-8" ?>
<KartrisWebAPI>
<Parameters>
<Parameter Name="numTaxID" Type="Byte">
<Value>2</Value>
</Parameter>
</Parameters>
</KartrisWebAPI>
</strParametersXML>
</Execute>
</s:Body>
</s:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ExecuteResponse xmlns="http://tempuri.org/">
<ExecuteResult>
<?xml version="1.0" encoding="utf-16"?>
<double>20</double>
</ExecuteResult>
</ExecuteResponse>
</s:Body>
</s:Envelope>
<?xml version="1.0" encoding="utf-8" ?>
<double>20</double>
Ensure your page has the following code pasted near the bottom, before the closing 'body' tag.
Copy this code and place it where you want the help icon to appear in your page.
Your help link will appear as the icon below. Click it to verify how the help content will look.
Place a QR code on your product or machinery to let a user easily retrieve the user guide documentation for it.
Right-click and 'copy'