It seems that square’s physical gift cards can use QR codes, and eGift cards use barcodes - yet there is no info in the docs for those of us creating gift cards via the API on how to generate a compatible qr code or barcode.
I suspect it’s pretty straightforward, please advise on what data needs to be encoded to make it work.
While creating a bar code and QR code for gift cards is available in our first party products it’s not yet available with the Gift Cards API. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team.
Thanks Bryan. What I really am after is just details about the format and data encoded rather than official tools to create the graphics. I highly doubt your system is set up to only work for the non API cards.
Not to worry, I think I figured it out myself.
For anyone else that stumbles along here, it appears the barcodes are using “Code 128” format and the data is SQGC://1234567890123456 where the number is the 16 digit GAN. I have not been able to check a QR code yet as I don’t have a physical square gift card handy, but I suspect it’s likely encoded that same bit of data.
Hi Bryan, is it possible to create QR codes for discount codes? I’m not sure how different this is to gift cards, but I would love to be able to represent discount codes with QR codes that the merchant can scan on a user’s phone and then auto apply it to their checkout.
It’s worth noting that Square’s own GiveAndGetLocal website which allows purchasing gift cards of any given merchant delivers the gift card with a QR code along with a barcode and along with the GAN.
The QR code can be easily decoded and it points to a url. If Square can simply officially document and support this url, then us developers can use open libraries to create our own QR codes that point to the appropriate url.