Links

Barcode

This page describes the Barcode type.
This type is derived from https://schema.org/Barcode, which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.

Properties

Required properties

Property
Expected Type
Description
@type
Text
Must always be present and set to "@type": "Barcode"

Optional properties

Property
Expected Type
Description
height
Integer
The height of the media in pixels.
Example
"height": 300
text
Text
The barcode number
Example
"text": "0123456789"
thumbnail
Array of ImageObject
The URL for a thumbnail image for an image.
url
URL
A fallback rendered barcode image url in addition to the raw barcode details.
Example
"url": "https://fallback.image.example.com/476ac24c694da79c5e33731ebbb5f1"
width
Integer
The width of the media in pixels.
Example
"width": 400

Beta Extension properties

These properties are defined in the OpenActive Beta Extension. The OpenActive Beta Extension is defined as a convenience to help document properties that are in active testing and review by the community. Publishers should not assume that properties in the beta namespace will either be added to the core specification or be included in the namespace over the long term.
Property
Expected Type
Description
beta:codeType
Text
Type of barcode, e.g. 'Code39'
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution License (CC-BY V4.0), and code samples are licensed under the MIT License, for anyone to access, use and share; using attribution "OpenActive".