Request List
# | CMD | Available at |
1 | GetWaiterMessages | CS, ST |
2 | WaiterMessage | CS |
3 | GetOrderList | CS |
4 | CreateOrder | CS |
5 | GetOrderMenu | CS |
6 | GetWaiterList | CS |
7 | GetRefData | CS |
8 | LoginOnStation | CS |
9 | PayOrder | CS |
10 | PrintBill | CS |
11 | SaveOrder | CS |
12 | DelWaiterMessages | CS |
13 | GetItemBlob | CS |
14 | GetDocByLayout | CS |
15 | DeleteReceipt | CS |
- CS — the cash server
- ST — the cash station
You can get a list of requests supported in the interface using the CMD=GetFunctions universal command.
Download schemas for requests — the structure and possible arguments for each request.
CallRK7XMLRPC is the main function.
Parameters:
- AddressName — address:port
- Request — an XML request
- RequestSize — an XML request size
- ResultFile — the name of the file where the request results are written
- ErrorBuf — the place where connection errors are written
- ErrorBufSize — the size of the ErrorBuf.
CallRK7XMLRPCToStream is similar to the function above, but its result is written to the stream.
Parameters:
- AddressName — address:port
- Request — an XML request
- RequestSize — an XML request size
- ResultStream — IStream — the stream where the result is passed
- ErrorBuf — the place where connection errors are written
- ErrorBufSize — the size of the ErrorBuf.
The SetUseTempFileLimit function sets a file size limit if the result return time exceeds the threshold. The default value is 1000000 ms.
The GetDLLVersion function returns the version of the DLL.
The SetCryptKey function sets the encryption key. It can be different for different cash servers. It is specified in the properties of the XML interface.
Example of Requesting File from Server
You can use the GetItemBlob request to get some file in the base64 format stored inside the reference database but not imported into an external database.
The request in the example below will return the layout for the report with ID=1001 in the filename.fr3 format.
<?xml version="1.0" encoding="utf-8"?><RK7Query><RK7CMD CMD="GetItemBlob" RefName="OLAPReports" RefItemIdent="1001" RefBlobName="LAYOUT" UnpackedBlob="0"/></RK7Query>