Desktop receiver
The phone and the PC share one versioned REST API
Both clients are token-authenticated against the same v1 endpoints. Here is what happens to a single scan.
receiver/flashwedge_receiver.pyPython · Windows
# Flashwedge desktop receiver api = FlashwedgeApi('https://flashwedge.example/api/v1') api.authenticate(keyring.get('flashwedge')) # Sanctum ver = api.get('/app-version?client=desktop') if ver['update_required']: tray.notify('Please update the receiver') sub = api.get('/subscription') if sub['status'] != 'active': tray.notify('Plan inactive - scanning is paused') pc = api.post('/devices', name='TILL-FRONT') autostart.enable() # starts with Windows for scan in api.listen(pc['id']): # paired phone # scan = {'value': '6291041500213', 'type': 'EAN-13'} keyboard.write(scan['value']) # focused window keyboard.send('enter') api.confirm(scan['id']) # no driver, no dongle, no COM port
What happens to one scan
The desktop receiver, start to finish
Scanned by the phoneWritten to the phone database, then sent
KotlinMetered at the API27,418 of 50,000 scans this month
ShopSent to the paired PCAisle phone 2 to TILL-FRONT
PythonEntered in the focused appPOS, spreadsheet or ERP field
typedConfirmedThe phone marks the scan Delivered
doneThe scan
ENTERED- Value
- 6291041500213
- Type
- EAN-13
- Paired PC
- TILL-FRONT
- Scans this month
- 27,419 / 50,000
- State
- Delivered
API v1
What the clients ask the server
A short illustration of the calls in the listing above. The product ships with its own API documentation; this page is not a copy of it.
| Method | Endpoint | Used by | What it answers |
|---|---|---|---|
| GET | /api/v1/subscription | Both clients | Is the plan active, and what are its device and scan limits? |
| POST | /api/v1/devices | Both clients | Register this phone or PC on the account. Refused when the device limit is reached. |
| GET | /api/v1/app-version | Both clients | Which version is current, and must this client update? |
| — | Scan delivery | Phone to PC | Each scan is counted against the account, passed to the paired PC and confirmed back to the phone. |
Token-authenticated
Clients sign in once and keep a Sanctum token. No password is stored on the PC.
Versioned
The endpoints live under v1, so a later version can sit beside it without breaking installed clients.
Room for another client
An iOS app or a web scanner would use the same endpoints without touching the server.