This section describes how to define and configure Barcode and QR Code data for Samsung Wallet cards.
Card Data Format
Barcode and QR Code data are defined using barcode.* fields. These fields determine the value to encode, the presentation, and the barcode or QR format.
The barcode object must be supplied as an escaped JSON string. Dynamic barcode and QR Code features must be enabled in the Samsung Wallet Partners Portal.
(Optional) Barcode operation mode. The effective value is STATIC when omitted. Allowed values: STATIC, TOTP, and INTERVAL.
barcode.value
(Required) Actual value to encode in the barcode or QR Code.
barcode.serialType
(Required) Type of data to display, such as barcode, QR Code, or serial number.
barcode.ptFormat
(Required) Display format, such as barcode only, barcode with serial number, or QR Code only.
barcode.ptSubFormat
(Optional) Barcode or QR Code encoding format.
barcode.errorCorrectionLevel
(Optional) QR error-correction level. Applies only to QR Code presentation. Allowed values: L, M, Q, and H.
barcode.interval
(Conditional) Refresh cadence in milliseconds, provided as a numeric string of up to 11 digits. Required when barcode.generationType is INTERVAL.
barcode.secretKeyEncoding
(Conditional) Encoding of barcode.secretKey; no default is defined. For example, base16. Required when barcode.generationType is TOTP.
barcode.secretKey
(Conditional) Shared secret used for TOTP generation. Treat this value as credential material. Required when barcode.generationType is TOTP.
barcode.totpAlgorithm
(Conditional) TOTP algorithm identifier. When omitted in TOTP mode, TOTP_SHA1 is used. Required when barcode.generationType is TOTP.
barcode.totpDigits
(Conditional) Number of digits in the generated TOTP value. When omitted in TOTP mode, a zero-padded six-digit value is used. Required when barcode.generationType is TOTP.
barcode.totpPeriodMillis
(Conditional) TOTP time step in milliseconds. When omitted in TOTP mode, 30000 is used. Required when barcode.generationType is TOTP.
Presentation Types (barcode.serialType)
Code Name
Description
SERIALNUMBER
Displays a serial number.
BARCODE
Displays a 1D barcode.
QRCODE
Displays a QR Code.
SHIPPING
Shipping information (online use only).
CALLORDER
Call-order information (online use only).
URL
URL serial (online use only).
Presentation Formats (barcode.ptFormat)
Code Name
Description
BARCODE
Barcode only.
BARCODESERIAL
Barcode with serial number.
SERIAL
Serial number only.
DUALSERIAL
Dual serial numbers.
DUALBARCODE
Dual barcodes.
DUALBARCODESERIAL
Dual barcodes for each serial number.
BARCODEPIN
Barcode with PIN.
QRCODE
QR Code only.
QRCODESERIAL
QR Code with serial number.
Barcode / QR Formats (barcode.ptSubFormat)
All formats are supported by the ZXing barcode scanning library.
Ensure that barcode.serialType, barcode.ptFormat, and barcode.ptSubFormat are logically compatible.
Use barcode.interval only with INTERVAL mode.
Do not expose or log barcode.secretKey.
Validate supported formats against ZXing specifications.
Manage Your Cookies
We use cookies to improve your experience on our website and to show you relevant
advertising. Manage you settings for our cookies below.
Essential Cookies
These cookies are essential as they enable you to move around the website. This
category cannot be disabled.
Company
Domain
Samsung Electronics
developer.samsung.com, .samsung.com
Analytical/Performance Cookies
These cookies collect information about how you use our website. for example which
pages you visit most often. All information these cookies collect is used to improve
how the website works.
Company
Domain
Samsung Electronics
.samsung.com
Functionality Cookies
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and
tailor the website to provide enhanced features and content for you.
Company
Domain
Samsung Electronics
developer.samsung.com, google.account.samsung.com
Preferences Submitted
You have successfully updated your cookie preferences.