POS QR codes

Integration handbook for POS systems extension: POS QR Codes

This page describes a mode, where QR codes are generated by POS. It gives a freedom to the POS to do many things on its own.

How it works

  1. The POS creates a QR code, which will be scanned by custommers phone. The contents of this QR code is described in QR Code section.
  2. The phone talks with Qerko server and the data from the scanned QR code will be sent to the POS. POS have to identify the bill based on this data.
  3. POS receives the data from the QR code into the method searchBills and should return a list of matched bills. A list with length 1 is still a list :).

Required data

This needs to be entered into the POS in the setup process.

  1. The API key POS still needs to be conencted to Qerko API using websocket or long-polling. API key is needed there.
  2. idRestaurant This is the primary key for the restaurant on Qerko side. Qerko needs it in order to be able to send QR data to the correct restaurant. POS must enable the restaurant to enter the idRestaurant along with the API key or POS can download the idRestuarant from the whoami method

QR Code

The QR code generated by POS must:

  • contain following URL in order to work
  • contain Qerko logo (This is mandatory and you won't get production Pos-Id without the logo)


Contents of the QR code is this URL<idRestaurant>~<URL encoded data>

Keep in mind that this should still comply to URL spec. The URL should be no longer than 2000 characters, so keep the data relatively short. Besides 2 kB QR codes tends to be large.


In this example we will use:

  • restaurant-1 as idRestaurant. In reality it is GUID.
  • customer-1 as idCustomer. In reality it is GUID.
  • { "param1": "foo", "param2": "bar" } as data. Reality is up to POS.

Result URL is:

Message for POS will be:

    "type": "method-call-request",
    "method": "searchBills",
    "args": [
        "{ \"param1\": \"foo\", \"param2\": \"bar\" }", // qrIdentifier - The data - Qerko removes the URL encoding
        "customer-1", // idCustomer - As described in the extension-direct-bills.pdf

QR Generator

You can use Qerko's QR generator to generate the QR code visual. It will take care of adding the logo. Or you can use your own qr-generator, but the logo is mandatory.<URL encoded contents - the whole URL><URL encoded contents - the whole URL>

In production definitely use the first URL. It will work soon. It waits for deploy.


the QR code


This section describes additional method availible for this extension.

Qerko Methods

Follows a list of methods which can be called by POS using ​websocket​ or using an endpoint REST API​.


This method can be used to get info about restaurants whose API keys are used. If you have sent multiple API keys then there will be multiple restaurants (Undocumented feature).

GET /api/v2/pos/who-am-i


  • HTTP 200 - response Restaurant structure (REST API doesn't support multiple API keys)
  • HTTP 401 - invalid API key

Data structures

Follows a list of additional data structures.


This structure carries info about the restaurant.

idstringThe restaurant's primary key. It will never change.
namestringThe restaurant's human readable name.
variableSymbolstringVariable symbol used to identify payments.
identificationNumberstringIdentification number, also known as abbr IN or IČO in czech language.
taxIdentificationNumberstring``nullTax identification number, also known as abbr TIN or DIČ in czech language.
longitudefloatGPS coord of the restaurant
latitudefloatGPS coord of the restaurant
addressstringRestaurant's address