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
| Action | Permission key |
|---|---|
| View terminals | pos.terminal.view |
| Define a terminal | pos.terminal.update |
| Create a pairing code | pos.device.pair |
| Release a terminal | pos.terminal.update |
| Revoke a terminal | pos.terminal.revoke |
| Take over unsent documents from the outbox file | pos.terminal.import |
Columns
| Column | Description |
|---|---|
| Code | The device code. It forms part of receipt numbers such as POS-T01-2026-000001 (PB16) |
| Status | Not paired, Active or Revoked |
| App version and Last sync | From the device's last connection |
| Last Z report | The last Z number the system received |
| Open issues | The device's entries in the sync work list |
| Unpaired | When the device unpaired itself, or when the terminal was released from this screen (PB68) |
Procedures
Define a terminal
- Select New terminal.
- 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
- Select the terminal's row, then New pairing code.
- An 8-character code appears, such as
K7QM-R4TA. Enter it in the POS app within 10 minutes. The code works only once (PB12). - 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:
- Select the terminal's row.
- Under Release terminal, enter the reason, then select Release terminal.
- 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).
- Copy the file off the device, then select the revoked (or released) terminal's row.
- 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).
- 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
| Code | Meaning |
|---|---|
pos_terminal_limit_reached | The company has reached the plan's terminal limit |
device_revoked | The terminal has been revoked |
pos_terminal_not_paired | The terminal isn't paired, so there's nothing to release |
pos_terminal_active | The terminal is active and sends its own documents. An outbox file can only be taken over from a revoked or released terminal |
outbox_signature_invalid | The file wasn't signed by this terminal's device, or it was changed after export |
outbox_file_invalid | The file isn't an outbox file from a POS device |