Updated on November 10, 2026
There are two ways to create a WhatsApp QR code for business: Meta’s message QR code, created with the QR Codes API (or in Business Manager), which points to a wa.me/message/CODE address, and the wa.me link QR code, which you build from the phone number and text and turn into an image with any generator. Meta does not report scans for either one, so tracking is up to you: a different QR code per touchpoint, with a prefilled message that identifies the source, or a redirect on your own domain that logs each scan.
This guide shows how to create both types, when to use each, and how to track a printed QR code all the way to the conversation that reaches your system.
The two types of WhatsApp QR code
| Message QR code (Meta) | wa.me link QR code | |
|---|---|---|
| Encoded address | https://wa.me/message/4O4YGZEG3RIVE1 | https://wa.me/5584999999999?text=... |
| Where you create it | QR Codes API, Business Manager | You build the link; any QR generator |
| Phone number visible in the link | No | Yes |
| Prefilled message | Up to 140 characters | Free text in the text parameter |
| Edit after printing | Yes, the message can be changed via API | No, the text is inside the image |
| Deactivate | Yes, by deleting the code | No (only by changing the number) |
| Limit | 2,000 QR codes and short links per number | No limit |
| Scan report from Meta | Not available | Not available |
The figures in the Meta column come from the official QR Codes and Short Links page. The wa.me format is described in the WhatsApp Help Center. The full guide to links with a message is in WhatsApp link with a prefilled message.
In neither case does the QR code send a message by itself. Scanning opens WhatsApp with the text in the input field, and the customer is the one who taps send.
Message QR codes: Meta’s QR Codes API
Meta describes the feature as a “digital doorstep”: the customer scans the code with the phone camera, WhatsApp opens a chat with the business, and the text is ready, with no phone number to type. The operations live on the phone number’s message_qrdls endpoint:
| Operation | Method and path |
|---|---|
| Create | POST /{phone-number-id}/message_qrdls with prefilled_message and generate_qr_image |
| Change the message | POST /{phone-number-id}/message_qrdls with code and the new prefilled_message |
| List | GET /{phone-number-id}/message_qrdls |
| Get one | GET /{phone-number-id}/message_qrdls/{code} |
| Delete | DELETE /{phone-number-id}/message_qrdls/{code} |
Creating one directly in the Graph API:
curl 'https://graph.facebook.com/v27.0/106540352242922/message_qrdls' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-d '{
"prefilled_message": "Hi! I saw your poster at the Downtown store.",
"generate_qr_image": "SVG"
}'
The response returns the code, the message, the short link and the image URL:
{
"code": "4O4YGZEG3RIVE1",
"prefilled_message": "Hi! I saw your poster at the Downtown store.",
"deep_link_url": "https://wa.me/message/4O4YGZEG3RIVE1",
"qr_image_url": "https://scontent.xx.fbcdn.net/..."
}
Details from the documentation that affect planning:
- 140 characters is the maximum length of the prefilled message.
- 2,000 QR codes and short links is the maximum per phone number. If you create one code per sales rep, store and campaign, you will need to delete old ones.
- Codes do not expire on their own. To retire a QR code, delete it. Anyone who scans a deleted code sees a notice that the QR code or short link has expired.
- No analytics. Meta states that scan data is not available for QR codes and short links, because it limits what it logs to protect user privacy.
- SVG or PNG. The page recommends SVG, which stays sharp when enlarged for a banner or window sticker.
The big practical advantage is that you can change the message after printing. If the poster campaign changes, a POST with the same code updates the text and nothing has to be reprinted. You can also manage the same codes in the Business Manager and Meta Business Suite interface, as the page notes.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
wa.me link QR codes: the simplest option
A wa.me link QR code is simply an image of a URL like this one:
https://wa.me/5584999999999?text=Hi%21%20I%20scanned%20the%20menu%20at%20my%20table
The Help Center rules: full international number, with no zeros, brackets or dashes, and URL-encoded text (a space becomes %20). Vectalk’s free WhatsApp link generator builds the link with a message and creates the QR code in your browser.
Use a wa.me QR code when:
- the number is not on the API and you have no access to the QR Codes endpoint;
- you need messages longer than 140 characters;
- the material is short-lived and will not need edits.
The trade-off is that the text is baked into the image. If the number changes or the message goes out of date, the printed material stays wrong forever.
How to track QR code scans
Since Meta does not report scans, there are three techniques, and you can combine them.
1. One QR code per touchpoint, with a message that identifies the source
Create a code for each place where the QR code appears and add a short, readable tag to the message:
| Touchpoint | Prefilled message |
|---|---|
| Downtown store poster | “Hi! I saw your poster at the Downtown store. (QR-DTN)” |
| Product packaging | “Hi! I need help with my order. (QR-PKG)” |
| Trade show booth | “Hi! I stopped by your booth at the show. (QR-SHOW)” |
When the message arrives through the API webhook, your system looks for the tag in the text and stores the source on the contact. The event structure is covered in WhatsApp webhook payload examples. A Node.js example:
const SOURCES = {
'QR-DTN': { channel: 'qr', touchpoint: 'downtown-store-poster' },
'QR-PKG': { channel: 'qr', touchpoint: 'packaging' },
'QR-SHOW': { channel: 'qr', touchpoint: 'trade-show-booth' },
};
function sourceFromMessage(msg) {
if (msg.type !== 'text') return null;
const found = msg.text.body.match(/\(?(QR-[A-Z0-9]+)\)?/);
return found ? SOURCES[found[1]] || { channel: 'qr', touchpoint: found[1] } : null;
}
// Inside the webhook handler:
// for (const msg of value.messages ?? []) {
// const source = sourceFromMessage(msg);
// if (source) await contacts.setSource(msg.from, source);
// }
Limitation: the customer can delete or edit the text before sending. A tag in brackets at the end tends to survive more often than a long sentence, but what you count is always conversations started, not scans.
2. A redirect on your domain to count scans
To count everyone who scanned, including people who never sent a message, point the QR code to an address on your website that logs the visit and redirects to WhatsApp:
https://www.store.com/qr/downtown → log → 302 to https://wa.me/message/4O4YGZEG3RIVE1
import express from 'express';
const app = express();
const DESTINATIONS = {
downtown: 'https://wa.me/message/4O4YGZEG3RIVE1',
show: 'https://wa.me/message/WOMVT6TJ2BP7A1',
};
app.get('/qr/:touchpoint', async (req, res) => {
const destination = DESTINATIONS[req.params.touchpoint];
if (!destination) return res.redirect(302, 'https://www.store.com/');
await db.scans.insert({ touchpoint: req.params.touchpoint, at: new Date(), ua: req.get('user-agent') });
res.redirect(302, destination);
});
Now you have two numbers per touchpoint: scans (hits on the redirect) and conversations (messages with the tag). The gap between them shows how many people opened WhatsApp and gave up.
3. UTM for landing pages and GA4
If the QR code first takes people to a page on your site (menu, catalog, promotion page) and from there to WhatsApp, add UTM parameters to the QR address: ?utm_source=poster&utm_medium=qr&utm_campaign=xmas2026. GA4 shows visits by source, and the page’s WhatsApp button can fire an event on click, as explained in WhatsApp button on your website with GA4 tracking.
UTM parameters do not help inside wa.me: the webhook carries the text the customer sent, not the URL parameters. For UTM on links that go from WhatsApp to your site, see dynamic URL button with UTM in templates.
Printing and usage best practices
- Say what happens when people scan. “Point your camera here to chat with us on WhatsApp” reduces distrust of unknown QR codes.
- Test before printing on Android and iPhone, with the built-in camera, in good and poor lighting.
- Prefer SVG for large materials and leave a white margin around the code.
- One tag per touchpoint, with a table that says what each code means. Otherwise, in six months nobody will remember what
QR-7was. - Delete retired codes. It keeps you under 2,000 and stops old materials from leading to campaigns that ended.
- Be ready to reply. A scan becomes a conversation, and a conversation without a quick answer is a lost lead. The customer’s message opens the 24-hour customer service window, in which you reply with service messages.
About cost: a conversation started by the customer opens the service window. Since October 1, 2026, each number has an allowance of 1,000 service messages per month, and charges start at the 1,001st (BRL 0.0350 per message for recipients in Brazil, where BRL is the Brazilian real). Utility templates sent inside the window are charged separately. To estimate costs, use the WhatsApp API pricing calculator.
Do QR codes also work for ads and links?
The same deep_link_url that goes into the QR code is a short link you can use in email, signatures, social media bios or SMS. For Click-to-WhatsApp ads, Meta already tells you which ad started the conversation through the referral object in the webhook, so you need neither a QR code nor a tag in the text. See how to track Click-to-WhatsApp ads.
If you use the short link outside a QR code, avoid wrapping it in a third-party URL shortener: wa.me is already short and recognizable. The risks are covered in URL shorteners for WhatsApp links.
How to create WhatsApp QR codes with Vectalk
Vectalk gives you access to the official WhatsApp API and exposes Meta’s QR codes in its own API, using an instance token (the number is resolved from the token, so you do not send the phone-number-id):
curl --request POST \
--url https://apis.vectalk.com.br/api/qr-codes \
--header 'Authorization: Bearer YOUR_INSTANCE_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"prefilled_message": "Hi! I saw your poster at the Downtown store. (QR-DTN)",
"generate_qr_image": "SVG"
}'
The response has the same fields as Meta’s (code, prefilled_message, deep_link_url, qr_image_url). There are also routes to list (GET /api/qr-codes), get and delete (DELETE /api/qr-codes/{qrCodeId}) codes. Details at docs.vectalk.com.br. Messages started from the QR code arrive at the webhook you configure on the instance, in Meta’s format. Create your account at apps.vectalk.com.br/register.
Frequently asked questions
Can I see how many people scanned my WhatsApp QR code?
Not from Meta: the documentation says analytics are not available for QR codes and short links. To count scans, point the QR code to a redirect on your domain that logs the visit before opening WhatsApp.
Does a WhatsApp QR code expire?
Meta’s message QR code does not expire on its own. It only stops working when you delete the code. A wa.me link QR code works as long as the number is active on WhatsApp.
Can I change the message of a QR code that is already printed?
Yes, with Meta’s QR code: send a POST to message_qrdls with the same code and the new prefilled_message. Not with a wa.me QR code, because the text is inside the image, unless it points to a redirect on your domain.
Do I need the API to create a WhatsApp QR code?
No. Anyone can create a wa.me QR code with a generator. The API (or Business Manager) is only needed for Meta’s message QR code, with an editable, deletable wa.me/message/ link.
Official sources consulted on November 10, 2026: QR Codes and Short Links (Meta for Developers), How to use click to chat (WhatsApp Help Center), Text messages webhook, Platform pricing, Vectalk: create QR Code, Vectalk: authentication.
Put your business on the official WhatsApp
Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.
