On this page

Points of sale and pairing ​

Purpose ​

This screen lists the company's point-of-sale terminals. The screen shows this note: Each terminal pairs once with a one-time code. A revoked terminal stops syncing and selling.

Where to find it ​

  • Menu: Point of sale → Terminals.
  • URL: /pos/terminals

Permissions ​

ActionPermission key
View terminalspos.terminal.view
Define a terminalpos.terminal.update
Create a pairing codepos.device.pair
Release a terminalpos.terminal.update
Revoke a terminalpos.terminal.revoke
Take over unsent documents from the outbox filepos.terminal.import

Columns ​

ColumnDescription
CodeThe device code. It forms part of receipt numbers such as POS-T01-2026-000001 (PB16)
StatusNot paired, Active or Revoked
App version and Last syncFrom the device's last connection
Last Z reportThe last Z number the system received
Open issuesThe device's entries in the sync work list
UnpairedWhen the device unpaired itself, or when the terminal was released from this screen (PB68)

Procedures ​

Define a terminal ​

  1. Select New terminal.
  2. Enter the code and name, choose the branch, profile and warehouse, then select Save. The number of active terminals is limited by the tenant's plan (P6).

Failed pairing attempts are limited. After 10 failed attempts from the same address (or 50 for the whole tenant) within 10 minutes, every pairing from that address is refused for a while, even with the right code. Wait ten minutes, then try again (PB26).

Pair a device ​

  1. Select the terminal's row, then New pairing code.
  2. An 8-character code appears, such as K7QM-R4TA. Enter it in the POS app within 10 minutes. The code works only once (PB12).
  3. The app creates its own key, which never leaves the device. It then connects to the system by signing a challenge, and receives an access token that's valid for 15 minutes (PB13). For Saudi companies, the terminal becomes a separate e-invoicing unit (PB9).

Unpair a device and release the terminal ​

When someone selects Unpair device in the POS app, a supervisor with pos.device.unpair must approve (PB69). If the device is online, it tells the system itself: the terminal goes back to Not paired and the device's token stops working straight away (PB68).

If the device was unpaired offline, or it's broken:

  1. Select the terminal's row.
  2. Under Release terminal, enter the reason, then select Release terminal.
  3. Create a new pairing code for the next device. It continues the same number series and Z reports. If a shift is still open, close it from the Shifts screen.

Take over unsent documents ​

A revoked terminal can't sync, but its device can export its unsent documents to a file signed with the device key (PB70).

  1. Copy the file off the device, then select the revoked (or released) terminal's row.
  2. Select Choose outbox file and pick the file. The system checks the signature and lists the documents with what the system has already received of them (Not received or their status).
  3. Select Take over … documents. The documents are posted as if the device had sent them, with the numbers the device gave them. Taking over the same file again duplicates nothing; quarantined documents go to the sync work list (PB71).

Revoke a terminal ​

Enter the reason, then select Revoke terminal. Syncing and selling stop immediately, and this can't be undone. Pair a new terminal to replace it.

Business rules ​

  • The Clock difference is worked out from documents uploaded while online (POS27).

Error messages ​

CodeMeaning
pos_terminal_limit_reachedThe company has reached the plan's terminal limit
device_revokedThe terminal has been revoked
pos_terminal_not_pairedThe terminal isn't paired, so there's nothing to release
pos_terminal_activeThe terminal is active and sends its own documents. An outbox file can only be taken over from a revoked or released terminal
outbox_signature_invalidThe file wasn't signed by this terminal's device, or it was changed after export
outbox_file_invalidThe file isn't an outbox file from a POS device