Api


XTimer

Description

Api for custom software management.

Global template variables

# Name Definition Profile Telegram
1 %[remaing]% Remaining time counter DOWN
2 %[elapsed]% Remaining time counter UP
3 %[price]% Set price on loader settings
4 %[deficit]% Remaining credits to reach the price
5 %[pulse]% Pulse count currently inserted
6 %[name]% Machine name in settings
7 %[version]% Firmware version
8 %[denom]% Coin denomination
9 %[ip]% Ip address of machine
10 %[uptime]% Minutes elapsed power on
11 %[date]% Current date
12 %[time]% Current time
13 %[sales]% Total Sales
14 %[records]% Total records

Api routes

# Name Definition GET POST Request Body Response
1 /login login json json
2 /database.csv sales records json json
3 /system get system status json json
4 /logout logout json json
5 /restart system restart json json
6 /settings system settings json json
7 /scan scan wifi json json
8 /full dowload full backup json json
9 /resetsales reset sales json json
10 /resetsettings reset settings json json
11 /resetcredits reset floating credits/pulse json json
12 /resetlow reset trigger low status json json
13 /profile get profiles json json
14 /loader get loaders json json
15 /run_profile run a profile json json
16 /run_loader run a loader json json
17 /stop stop a profile json json
18 /update firmware update json json
19 /activate run activate json json
20 /about get about json json
21 /revoke revoke license json json
22 /factory factory reset json json
23 /kiosk get kiosk loaders json json
24 /select select kiosk loaders json json