> For the complete documentation index, see [llms.txt](https://developer.openactive.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.openactive.io/data-model/types/barcode.md).

# 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`](https://schema.org/Text) | Must always be present and set to `"@type": "Barcode"` |

### **Optional properties**

| Property  | Expected Type                                                                          | Description                                                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| height    | [`Integer`](https://schema.org/Integer)                                                | <p>The height of the media in pixels.</p><p><br>Example</p><p><code>"height": 300</code></p>                                                                                                           |
| text      | [`Text`](https://schema.org/Text)                                                      | <p>The barcode number</p><p><br>Example</p><p><code>"text": "0123456789"</code></p>                                                                                                                    |
| thumbnail | Array of [`ImageObject`](https://developer.openactive.io/data-model/types/imageobject) | The URL for a thumbnail image for an image.                                                                                                                                                            |
| url       | [`URL`](https://schema.org/URL)                                                        | <p>A fallback rendered barcode image url in addition to the raw barcode details.</p><p><br>Example</p><p><code>"url": "<https://fallback.image.example.com/476ac24c694da79c5e33731ebbb5f1>"</code></p> |
| width     | [`Integer`](https://schema.org/Integer)                                                | <p>The width of the media in pixels.</p><p><br>Example</p><p><code>"width": 400</code></p>                                                                                                             |

### **Beta Extension properties**

These properties are defined in the [OpenActive Beta Extension](https://openactive.io/ns-beta). 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`](https://schema.org/Text) | <p><a href="https://github.com/openactive/open-booking-api/issues/130">Proposal #130</a></p><p>Type of barcode, e.g. 'Code39'</p> |

Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution License (CC-BY V4.0)](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [MIT License](https://opensource.org/licenses/MIT), for anyone to access, use and share; using attribution "[OpenActive](https://www.openactive.io/)".


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.openactive.io/data-model/types/barcode.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
