Main with QR code api