Here's the flow of the process:
- Generate the QR code on the client side.
- Convert the QR code to a data URL.
- Send the data URL to a SSJS script via a POST request.
- The SSJS script retrieves the data URL and uses it to send a POST request to the REST API.