Generating a QR code

Use the QR code generator API to display a code on your site. This allows for the specification of the image type as well as the size. See the code snippet to the right as an example.


QR Code Attributes

  • The snap_code_size can be between 50 and 500 (and defaults to 125)
  • The image type can be either .svg or .png
  • The image type and size parameters are stripped from the generated QR code

Example QR image

QR Code

Sizing

Do not specify width or height attributes on the HTML <img> tag as this stretches and distorts the QR code.

Example QR code

<a href="https://pos.snapscan.io/qr/shopalot?id=Ord123&amount=1000">
  <img
    src="https://pos.snapscan.io/qr/shopalot.svg?id=Ord123&amount=1000&snap_code_size=125"
  />
</a>