Cash drawer

Integrating via

The cash drawer is controlled by the printer: the drawer is connected to the printer and eKasa sends it the open command. Your software does not communicate with the drawer directly.

Which setups support the drawer

Setup Open with a receipt Open at any time Connector pin
CHDU Lite or CHDU-SK, printer connected to the storage yes yes yes
Sunmi payment terminal yes yes no
PAX or Ingenico payment terminal on request yes no
Payment terminal with an external USB printer yes yes yes
In-Memory (PDF) no no no

On payment terminals, only some models and accessories support a drawer. If the terminal does not support it, opening fails, but the receipt is printed.

Opening with a receipt

The drawer opens when a cash register receipt is printed if Otvárať peňažnú zásuvku (Open cash drawer) is turned on in the eKasa settings (tab Tlač (Print), section Papierový doklad (Paper receipt)). It is on by default.

You can override this setting for a specific receipt with the OpenDrawer option in print.options, for example to open the drawer only for cash payments:

{
  "request": { "data": { } },
  "print": {
    "printerName": "pos",
    "options": {
      "OpenDrawer": false
    }
  }
}

On PAX and Ingenico terminals, the drawer opens with a receipt only when you request it with "OpenDrawer": true. The drawer does not open for a non-fiscal receipt. Details about print options are in the article Issuing the receipt.

Opening at any time

You can also open the drawer without a receipt, for example when exchanging money or checking cash:

POST http://localhost:3010/api/v1/printers/open_drawer
await client.OpenDrawerAsync(cancellationToken);

Connector pin

Printers have a drawer connector with two possible pins. With a printer connected to the storage or via USB, choose the pin that matches the drawer in the eKasa settings, field Pin konektora (Connector pin), Pin č.2 (pin 2) or Pin č.5 (pin 5). Pin 2 is the default. If the drawer does not open, try the other pin.

Where next

Esc

↑↓ selectEnter openEsc close

Chýba vám niečo v dokumentácii?

Napíšte nám, s čím potrebujete pomôcť. Ozveme sa do pár hodín.

Údaje použijeme len na odpoveď. Viac v ochrane osobných údajov.