Skip to main content

App start

1

Log in (only if there is no valid session)

POST /login_check sets the BEARER and refresh_token cookies.
2

Load the profile

POST /user/do_action with action: get_profile.
3

Load the balance

POST /user/do_action with action: get_credit.
4

Register the device

POST /terminal/do_action with action: checkApiKey. The terminal is created on first use.

Selling a voucher

1

Generate the voucher

printVoucher returns the voucher data. Print it right away. The shop balance is debited here.
2

Confirm the print

confirmVoucher once the printer reports success.
If the ticket did not print, call reprintVoucher, print again, then confirmReprintVoucher. If the customer wants a copy later, call duplicateVoucher, print, then confirmReprintVoucher.
Only printVoucher debits the balance. Confirm, reprint, duplicate and confirm-reprint never debit it again.

Other calls

Overview