Skip to main content

Scannable discount codes

As of POS version 11.5, merchants can generate scannable QR codes for any discount code in the Shopify Admin. These QR codes can be applied by both POS staff at checkout and by customers in online store sessions.

What this means for discount apps

No changes are required with this release. If your app creates discount codes, you can now generate QR codes for them that encode the store's discount URL.

What you should do

Shopify uses the format https://{shop}.myshopify.com/discount/{CODE} with the following encoding caveats:

  • Simple discount codes encode directly. For example, the discount code SUMMER20 becomes SUMMER20 in the final QR code URL.
  • Special characters are URL-encoded twice. For example, the discount code SAVE 10% becomes SAVE%252010%2525 in the final QR code URL.

If you want to include QR codes as shareable links in your apps, you’ll need to replicate the same URL-encoding used by Shopify for your discount codes.

Was this section helpful?