> For the complete documentation index, see [llms.txt](https://manual.firstresonance.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.firstresonance.io/features/barcode-labels/templating/sample-templates.md).

# Sample templates

Here's an example of a few basic templates created with a barcode and text:

{% tabs %}
{% tab title="Inventory Labels" %}
{% code title="1x1 Inventory Label" overflow="wrap" %}

```
^XA
^PW211^FO55,30^BQN,2,3^FDQA,S1033^FS
^FT0,170^A0,30^FB211,1,0,C,0^FH\^FDPN:${part.partNumber}^FS
^XZ
```

{% endcode %}

{% code title="3x1 Inventory Label" overflow="wrap" %}

```
^XA

Logo:
^FO520,35^GFA,2470,2470,13,Q01F8,Q0IF,P07IFE,O01KF8,O03KFC,O0MF,N01MF8,N03MFC,:N07MFE,N0OF,:M01OF8,:M03OFC,::::M07OFE,::::M03OFC,:::M01OF8,:N0OF,:N07MFE,:N03MFC,N01MF8,O0MF,O07KFE,O01KF8,P0KF,P01IF8,Q03FC,,::::::::::::N0IFE07IF,O0306001C3,O0106I083,::O0306I083,O0706I083,O0F06I083,N0398CJ03,N070FC,N0C078,,S07IF,,N0IFE,N0E38E,N0C106,N0C10607IF,:N0C106I083,:::T0183,T0783,T0EC3,N03830038E6,N070FC0707C,N040CC,N0C186,:N0C10601C3C,N0C1060307E,N0C30602043,N0430C060C3,N07E1C060C3,N03C1006083,S06083,S06183,O07C00318E,N01FF003F0C,N0301800E,N0600C,N0C004J03,N0C006J03,:::N0C00407IF,N0600C03IF,N03838J03,N01FFK03,O038K03,V03,,:N0IFE,P01E,P018,P07,O01C,O038,O0E,N01C,N07,N0F,N0IFE,,::N0E,N07C,O0F8,O0DE,O087C,O081E,:O08F8,O0FC,N01F,N078,N0C,,:N0IFC,N0IFE,P01C,P038,P0F,O01C,O07,O0E,N038,N07,N0IFE,:,::O0FE,N03FF8,N0701C,N0600C,N0C006,::::N0600C,N0701C,N03818,,::N0IFC,N0IFE,N0C106,:::::::,::::::::::^FS

^PW576^FO12,75^BQN,2,3^FDQA,S1033^FS
^FO12,35^A0,45^FD${part.partNumber}^FS
^FO130,85^A0,32^FDRev: ${part.revision}^FS
^FO130,125^A0,25^FD${part.description}^FS
^FO130,155^A0,25^FDSN: ${serialNumber}^FS
^FO330,155^A0,25^FDLot: ${lotNumber}^FS
^XZ
```

{% endcode %}

{% code title="3x1 Logo Label" overflow="wrap" %}

```
^XA
^PW576
^CFA,15
^FX Company Logo
^FO0,2
^GFA,2470,2470,13,Q01F8,Q0IF,P07IFE,O01KF8,O03KFC,O0MF,N01MF8,N03MFC,:N07MFE,N0OF,:M01OF8,:M03OFC,::::M07OFE,::::M03OFC,:::M01OF8,:N0OF,:N07MFE,:N03MFC,N01MF8,O0MF,O07KFE,O01KF8,P0KF,P01IF8,Q03FC,,::::::::::::N0IFE07IF,O0306001C3,O0106I083,::O0306I083,O0706I083,O0F06I083,N0398CJ03,N070FC,N0C078,,S07IF,,N0IFE,N0E38E,N0C106,N0C10607IF,:N0C106I083,:::T0183,T0783,T0EC3,N03830038E6,N070FC0707C,N040CC,N0C186,:N0C10601C3C,N0C1060307E,N0C30602043,N0430C060C3,N07E1C060C3,N03C1006083,S06083,S06183,O07C00318E,N01FF003F0C,N0301800E,N0600C,N0C004J03,N0C006J03,:::N0C00407IF,N0600C03IF,N03838J03,N01FFK03,O038K03,V03,,:N0IFE,P01E,P018,P07,O01C,O038,O0E,N01C,N07,N0F,N0IFE,,::N0E,N07C,O0F8,O0DE,O087C,O081E,:O08F8,O0FC,N01F,N078,N0C,,:N0IFC,N0IFE,P01C,P038,P0F,O01C,O07,O0E,N038,N07,N0IFE,:,::O0FE,N03FF8,N0701C,N0600C,N0C006,::::N0600C,N0701C,N03818,,::N0IFC,N0IFE,N0C106,:::::::,::::::::::^FS
^FX Text Part Detail Section
^FO 80,2  ^FD ${part.description} ^FS
^FO 80,22  ^FD P/N: ${part.partNumber} ^FS
^FO 80,47  ^FD UOM: ${unitOfMeasure.type} ^FS
^FO 80,72  ^FD PO: ^FS
^FO 80,97 ^FD S/N: ${serialNumber} ^FS
^FO 80,122 ^FD Lot: ${lotNumber} ^FS
^FO 80,147  ^FD Custom Attribute: XX"^FS
^FO 80,172 ^FD Custom Attribute: XX^FS
^FX Status and Part Revision
^FO 380,20^GB50,50,6^FS
^FO 380,38 ^FD XX^FS
^FO 380,75^GB50,50,3^FS
^FO 380,85 ^FD Rev^FS
^FO 380,105 ^FD ${part.revision}^FS
^FX QR Code
^FO 450,20 ^BQN,2,3,Q,7 ^FDQA,${iuid}^FS
^FO 380, 135 ^FD Qty: ${quantity} ^FS
^FO 380, 155 ^FD UID: ${id} ^FS
^XZ
```

{% endcode %}

<div><img src="https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2Fgit-blob-949fbd609ef375f3d269a375e5b2f06c32de757c%2F1x1_Label%20Sample.png?alt=media" alt="1x1 Inventory Label Render"> <figure><img src="https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2Fgit-blob-02132a99a8216033c038d9a982497fc0be11f7a7%2Flabel%20(2).png?alt=media" alt=""><figcaption><p>3x1 Inventory Label Render</p></figcaption></figure></div>

<img src="https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2Fgit-blob-7973cb3904a4b05285fea2003c5917b3f3fea10b%2Flabel.png?alt=media" alt="" data-size="original">
{% endtab %}

{% tab title="Kit Labels" %}
{% code title="1x1 Kit Label" overflow="wrap" %}

```
^XA
^PW211^FO55,30^BQN,2,3^FDQA,S1033^FS
^FT0,170^A0,30^FB211,1,0,C,0^FH^FDKit #:${id}^FS
^XZ
```

{% endcode %}

{% code title="3x1 Kit Label" overflow="wrap" %}

```
^XA

Logo:
^FO520,35^GFA,2470,2470,13,Q01F8,Q0IF,P07IFE,O01KF8,O03KFC,O0MF,N01MF8,N03MFC,:N07MFE,N0OF,:M01OF8,:M03OFC,::::M07OFE,::::M03OFC,:::M01OF8,:N0OF,:N07MFE,:N03MFC,N01MF8,O0MF,O07KFE,O01KF8,P0KF,P01IF8,Q03FC,,::::::::::::N0IFE07IF,O0306001C3,O0106I083,::O0306I083,O0706I083,O0F06I083,N0398CJ03,N070FC,N0C078,,S07IF,,N0IFE,N0E38E,N0C106,N0C10607IF,:N0C106I083,:::T0183,T0783,T0EC3,N03830038E6,N070FC0707C,N040CC,N0C186,:N0C10601C3C,N0C1060307E,N0C30602043,N0430C060C3,N07E1C060C3,N03C1006083,S06083,S06183,O07C00318E,N01FF003F0C,N0301800E,N0600C,N0C004J03,N0C006J03,:::N0C00407IF,N0600C03IF,N03838J03,N01FFK03,O038K03,V03,,:N0IFE,P01E,P018,P07,O01C,O038,O0E,N01C,N07,N0F,N0IFE,,::N0E,N07C,O0F8,O0DE,O087C,O081E,:O08F8,O0FC,N01F,N078,N0C,,:N0IFC,N0IFE,P01C,P038,P0F,O01C,O07,O0E,N038,N07,N0IFE,:,::O0FE,N03FF8,N0701C,N0600C,N0C006,::::N0600C,N0701C,N03818,,::N0IFC,N0IFE,N0C106,:::::::,::::::::::^FS


^PW576^FO12,105^BQN,2,2^FDQA,S1033^FS
^FO12,35^A0,45^FDKit #: ${id}^FS
^FO330,35^A0,45^FDRUN-${runId}^FS
^FO12,85^A0,25^FD${run.title}^FS
^FO100,125^A0,25^FDCreated By: ${createdBy.name}^FS
^FO100,155^A0,25^FDDeliver To: ${deliveryLocation.name}^FS

^XZ
```

{% endcode %}

<div><figure><img src="https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2Fgit-blob-cf6c6a3d3e89b1208b7467db567d3b91a989a7ca%2F1x1_Label%20Sample%20Kit.png?alt=media" alt=""><figcaption><p>1x1 Kit Label Render</p></figcaption></figure> <figure><img src="https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2Fgit-blob-932f23766299c3165d55ef09cdea7267948072e1%2Flabel%20(4).png?alt=media" alt=""><figcaption><p>3x1 Kit Label Render</p></figcaption></figure></div>
{% endtab %}

{% tab title="Location Labels" %}
{% code title="1x1 Location Label" overflow="wrap" %}

```
^XA
^PW211^FO55,30^BQN,2,3^FDQA,S1033^FS
^FT0,170^A0,30^FB211,1,0,C,0^FH^FD${name}^FS
^XZ
```

{% endcode %}

{% code title="3x1 Location Label" overflow="wrap" %}

```
^XA

Logo:
^FO520,35^GFA,2470,2470,13,Q01F8,Q0IF,P07IFE,O01KF8,O03KFC,O0MF,N01MF8,N03MFC,:N07MFE,N0OF,:M01OF8,:M03OFC,::::M07OFE,::::M03OFC,:::M01OF8,:N0OF,:N07MFE,:N03MFC,N01MF8,O0MF,O07KFE,O01KF8,P0KF,P01IF8,Q03FC,,::::::::::::N0IFE07IF,O0306001C3,O0106I083,::O0306I083,O0706I083,O0F06I083,N0398CJ03,N070FC,N0C078,,S07IF,,N0IFE,N0E38E,N0C106,N0C10607IF,:N0C106I083,:::T0183,T0783,T0EC3,N03830038E6,N070FC0707C,N040CC,N0C186,:N0C10601C3C,N0C1060307E,N0C30602043,N0430C060C3,N07E1C060C3,N03C1006083,S06083,S06183,O07C00318E,N01FF003F0C,N0301800E,N0600C,N0C004J03,N0C006J03,:::N0C00407IF,N0600C03IF,N03838J03,N01FFK03,O038K03,V03,,:N0IFE,P01E,P018,P07,O01C,O038,O0E,N01C,N07,N0F,N0IFE,,::N0E,N07C,O0F8,O0DE,O087C,O081E,:O08F8,O0FC,N01F,N078,N0C,,:N0IFC,N0IFE,P01C,P038,P0F,O01C,O07,O0E,N038,N07,N0IFE,:,::O0FE,N03FF8,N0701C,N0600C,N0C006,::::N0600C,N0701C,N03818,,::N0IFC,N0IFE,N0C106,:::::::,::::::::::^FS



^PW576^FO12,25^BQN,2,3^FDQA,S1033^FS

^FO120,35^A0,45^FD${locationSubtype.name}: ${name}^FS
^FO120,85^A0,25^FD${parent.type}: ${parent.name}^FS
^FO120,115^A0,25^FD ${address}^FS
 

^XZ
```

{% endcode %}

<div><figure><img src="https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2Fgit-blob-6352b11fff88297d55adbaf7cce13cd228e4ed1d%2F1x1_Label%20Sample%20Location.png?alt=media" alt=""><figcaption><p>1x1 Location Label Render</p></figcaption></figure> <figure><img src="https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2Fgit-blob-726a6ac832e5470466e6b988d5a1ce387df12821%2Flabel%20(5).png?alt=media" alt=""><figcaption><p>3x1 Location Label Render</p></figcaption></figure></div>
{% endtab %}
{% endtabs %}

You can use [Labelary](http://labelary.com/) to add an image for your logo (or any other image you'd like to add) using this website. The image gets encoded as a Base64 string. See here for this example.

You can get a better understanding of the code by checking out this [programming guide](https://www.zebra.com/content/dam/zebra_new_ia/en-us/manuals/printers/common/programming/zpl-zbi2-pm-en.pdf)!

**Note**: For the QR code on line 3 of the above template, it includes "QA,". This is added to ensure all characters show up in the barcode as outlined [here](https://www.zebra.com/us/en/support-downloads/knowledge-articles/ait/QR-code-missing-first-three-characters-when-using-ZPL-language.html).


---

# 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://manual.firstresonance.io/features/barcode-labels/templating/sample-templates.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.
