Skip to content

ffl_core.signing_terminal

Source: apps/ffl_core/ffl_core/signing_terminal.py · 4 endpoint(s)

Generated by make api-docs — do not edit by hand.

list_terminals

POST /api/method/ffl_core.signing_terminal.list_terminals

Auth (derived from code): Any authenticated user — no explicit role gate at function entry (deliberate open reads document this in Permissions).

Active signing tablets, for the Request agreement dialog.

Returns: [{"name", "pos_profile", "paired"}], by name.

apps/ffl_core/ffl_core/signing_terminal.py:103

pair_terminal

POST /api/method/ffl_core.signing_terminal.pair_terminal

Auth (derived from code): Guest — no session; the endpoint verifies the caller itself (HMAC signature, HTTP Basic credentials or a one-time token).

The tablet trades a pairing code for its device key (Guest).

The code works once. Any tablet paired to the same terminal before stops working. 10 tries per 10 minutes per IP address; after 50 wrong codes from anywhere in 10 minutes, pairing pauses until the window passes.

arg type required default description
code string yes — The 6 digits shown on the Signing Terminal record.

Returns: {"secret": the device key (shown this once), "terminal_name"}.

apps/ffl_core/ffl_core/signing_terminal.py:135

start_pairing

POST /api/method/ffl_core.signing_terminal.start_pairing

Auth (derived from code): Roles: Sales Manager / System Manager

Manager starts pairing a tablet: a 6-digit code to type on it.

arg type required default description
terminal string yes — Signing Terminal name; must be active.

Returns: {"code", "expires_in_minutes", "page": the URL to open on the tablet}.

apps/ffl_core/ffl_core/signing_terminal.py:114

terminal_poll

POST /api/method/ffl_core.signing_terminal.terminal_poll

Auth (derived from code): Guest — no session; the endpoint verifies the caller itself (HMAC signature, HTTP Basic credentials or a one-time token).

What the tablet should show now (Guest, every 2 seconds).

Limited per tablet (2400 an hour) and per IP address (30000 an hour: a shop's tablets together, about 16 of them polling all hour).

arg type required default description
secret string yes — The tablet's device key.

Returns: {"paired": false} for an unknown or switched-off tablet (the page goes back to pairing); {"paired": true, "token"} when the counter sent a link (handed out once); {"paired": true, "url"} when it sent the tablet to a page of this site (handed out once); otherwise {"paired": true, "idle": true, "terminal_name", "store_name", "form_4473_url"} — form_4473_url is the store's FastBound customer 4473 page, or "" when the store has no electronic 4473.

apps/ffl_core/ffl_core/signing_terminal.py:182