One thing, one code area


One thing, one code area

Capability Overview

WeChat One Item One Code is Integrate the native capabilities of WeChat and give each product a unique QR code. Through WeChat One Item One Code, brands can connect each product with consumers, deliver product information, guide attention to public accounts, provide anti-counterfeiting inquiry services, issue red envelopes and other precision marketing, and conduct user management and data management.


##Implementation Principle

The QR code content provided by WeChat consists of three parts: "fixed prefix", "translated and compressed product id", and "custom parameters". Among them, the fixed prefix occupies 16 characters and is used for WeChat client identification; the product id occupies 12 characters and is used to uniquely identify a product; the custom parameters are passed in by the merchant and will be used as the primary key in [Generate QR code-> ;User scan ->Open the product homepage->Visit the webpage set by the merchant] This entire process is transparently transmitted. The merchant can locate the corresponding relationship between a QR code and a user by receiving events pushed by WeChat and checking tickets.


Background interactive mode


##QR code content description



Implementation steps

The first step: Obtain merchant information

The second step: Create the product

The third step: Release the product

Step 4: Obtain the product QR code

Step 5: Print the QR code


QR code version selection

QR code specification

In order to better print QR codes, please read the specifications first http://www.qrcode.com/zh/about /version.html

extinfo parameter length, QR code version, error correction level, QR code size and other factors affect the printing effect of QR code. When QR codes store the same content, the higher the error correction level, the higher the corresponding QR code version. Correspondingly, for the same version of the QR code, the higher the error correction level, the less content can be stored.

The QR code versions recommended by WeChat platform are version 2 and version 3 with error correction level L. In extreme cases, use version 4.

Field partDescription
The prefix part uses the web page HTTP prefix, and the prefix of all product QR codes is fixed.
Product code
The translated product id, used for identification A product.
Merchant-defined extinfo parameters are customized and passed in by the merchant. It is recommended to only use uppercase and lowercase letters, numbers and -_().*These 6 common characters.
QR code versionTotal number of characters that can be accommodatedNumber of occupied charactersNumber of available charactersMatrix
23228425*25
353282529*29
478285033*33

Note: Using a 25*25 matrix means that each row and column of the QR code consists of 25 data points.


##Version Picture Example

Example 1: extinfo parameter ≤ 4 characters, using version 2 QR code type, 25*25 matrix, printing effects of different sizes.

The content of the QR code is http://p.url.cn/yA4AcHqlXqY/1234

Example 2: extinfo parameter ≤ 25 characters, using version 3 QR code type, 29*29 matrix, Printing effects in different sizes.

##The content of the QR code is

http://p.url.cn/yA4AcHqlXqY/0123456789012345678901234

#Example 3: extinfo parameter ≤ 50 characters, using version 4 QR code type, 33 *33 matrix, printing effects of different sizes.

##The content of the QR code is http://p.url.cn/yA4AcHqlXqY/01234567890123456789012345678901234567890123456789