Use case

Baggage and luggage tags: barcode tags from your own data

A bag tag identifies one bag and ties it to a person and a place: a suitcase at a hotel luggage desk, a ship's embarkation point, a rail luggage counter, a tour group, an event cloakroom, a storage room or a lost-and-found shelf. It is printed on demand, at a desk, from a record in your own system. No standard governs these tags: the operation decides what they carry. Airline bag tags and airport baggage systems are a separate subject and out of scope for BarcoderX.

What is built today: Status

The tag at a glance

The numbers in the drawing match the list. Sample data is made up.

Schematic of a bag tag with five numbered elements A portrait tag in two parts. In the upper part, from the top: 1 the destination in large type, here a room number; 2 the owner's name in large type with the date; 3 a QR code on the left, beside 4 the bag count and a handling note as text. A dashed line separates the stub below it. 5 On the stub, the tag number as a linear barcode with its text under it. The bars and the QR symbol are decorative, not scannable. DESTINATION ROOM 412 1 OWNER Alex Example Check-in Nov 15 2 QR 3 BAG 1 of 2 Hold at desk 4 LT-000392 5
Schematic, not scannable. A bag tag with made-up sample data. The QR symbol is decorative. Your layout follows your operation: nothing here is a required format.
  1. DestinationWhere the bag goes or is kept, in type large enough to read at arm's length: a room, a cabin, a platform, a vehicle or a shelf.
  2. Owner and dateThe owner's name in large type, and the day the bag was taken in, as text.
  3. QR codeA 2D symbol that a scanner reads. It can carry the tag number or a reference to the record in your own system.
  4. Bag count and handling noteWhich bag of how many, and any instruction, as text.
  5. Stub with a linear barcodeThe part under the dashed line goes to the owner. It repeats the tag number as Code 128, with the same text under the bars.

What is printed, and why

A bag tag does three jobs. It says where the bag goes or is kept, in text a porter or a crew member can read at a glance. It says whose bag it is. And it carries a number that a scanner, or a person, looks up in your own system.

Many desks print the tag in two parts: one goes on the bag, a stub goes to the owner, and both carry the same number. A guest or traveler with two bags gets two tags, so a counter such as "bag 1 of 2" is common.

They are printed at a desk when the bag is handed in, from a record such as a booking, a guest, a manifest or a storage entry, so nobody knows in advance how many will be needed. No standard governs these tags: the operation and the people who handle the bags decide the layout. If your tags must work with another party's scanners or systems, agree on the barcode and what it carries with them before you print.

Which barcodes, and why

Barcodes on bag tags, why they are used and the edition each needs
BarcodeWhy it is on the tagEdition
Code 128A linear barcode for the tag number. Code 128 holds letters and digits in one line of bars. It suits data with no GS1 structure; see the barcodes page.Basic
Code 39A linear barcode that scanners or records you already run may expect. Choose it when something you operate asks for it.Basic
ITFA numeric-only linear code, for a tag number made of an even number of digits. Choose it when a partner or scanner asks for it.Basic
QR CodeA 2D symbol holds more data in a small area and carries error correction. It can carry the tag number or a reference to the record in your own system.Ultimate

The scanners at each handover decide what they can read, so check which symbologies they accept before you choose.

Names carry accents. In some 2D symbols an ECI prefix declares the character set, such as UTF-8, so the reader decodes accented text correctly, and BarcoderX lets you set one where the symbology allows it.

BarcoderX enforces quiet zones, snaps the module width to whole dots and reports the effective size. Symbol options

The data that fills it

Fields a bag tag needs, a sample value and where each goes
FieldSample valueWhere it goes
DestinationROOM 412Large text, element 1.
Owner and dateAlex Example, Nov 15Text, element 2. Accented letters need the right font and character set.
Bag count and note1 of 2, Hold at deskText, element 4.
Tag numberLT-000392The barcode on the stub, element 5, with the text under it. The QR code, element 3, can carry the same number.

The values come from your own system: the booking, guest or storage record, the manifest and the list of bags. When a bag is checked in, your system prints its tag.

The values come from objects, a DataTable, CSV, JSON or XML. Counters, masks and more than 100 built-in functions produce the values that change on every label, such as the bag count. The tag number comes from your own system. Templates and data

BarcoderX ships one font family covering Basic Latin, Latin-1 and Latin Extended-A, which includes Spanish accents and punctuation. Fonts and accents

Why generate it from code

A desk serves one person at a time, and a wrong room or name on a tag sends a bag to the wrong place. Printing from code takes the values from the record, so nobody retypes them. The desk runs a web page or an app; its print button sends the job to your server, and the print agent beside the printer delivers it. That route works from any device with a browser, phones and tablets included.

How it reaches the printer

The printer commands are the same on both routes, and both run on infrastructure you operate.

  • Direct, from your application. The SDK packages send the printer commands from your own .NET process over TCP port 9100, serial, the Windows spooler, CUPS or USB. No API server and no agent is in the path.
  • Through your API server. Your application queues a print job through the REST API on your API server. A print agent on the printer's network collects it and writes it to the printer beside it. The agent only dials out, so the printer network needs no inbound port.

A desk with its own computer can print directly. A tablet at a luggage desk or on a quay uses the API-server route.

Delivery to the agent is at-least-once and the agent de-duplicates by job id, so a reconnect does not print a tag twice. Print jobs honor an idempotency key, so a retried request does not queue a second tag.

A tag and its stub are one label size, and another desk may use another. A template's size is set in millimeters, inches or dots, at any resolution from 96 to 1,200 dpi. In ZPL, ^PW and ^LL set the width and the length in dots.

Stock is your choice. That includes the tag stock and the printer that takes it. Direct thermal media darkens under the heat of the print head and the print fades with heat, light and age; thermal transfer melts ink from a ribbon and lasts longer (see direct thermal and thermal transfer). In ZPL, ^MT tells the printer which one is loaded. On a thermal printer each dot is printed or left blank, with no gray, so a tag prints in one color on its stock. Color and non-thermal printers print through graphic mode instead, and PNG and PDF exports can carry color.

Which edition covers it

EditionsBasic covers the linear (1D) and postal symbologies, including every GS1 DataBar variant; Ultimate adds the PDF417 family, other multi-row symbologies, every matrix (2D) symbology and GS1 composites, as set out on the pricing page.

For bag tags, that means Code 128, Code 39 and ITF are in Basic, since they are linear symbologies. A QR Code is a matrix (2D) symbology and needs Ultimate. If the scanners at your handovers read Code 128, a tag can carry it in Basic.

The ZPL behind it

Printer commands a tag like this can use. Each page explains one command in our own words.

^BC
Prints a Code 128 barcode.
^B3
Prints a Code 39 barcode.
^B2
Prints an Interleaved 2 of 5 barcode, a numeric-only linear code.
^BQ
Prints a QR Code barcode.
^BY
Sets the module width of the barcodes that follow.
^FB
Turns text into a block that wraps.
^CI
Selects the international character set or text encoding used for printing.
^PW
Sets the print width of the label in dots.
^LL
Sets the label length in dots.

What BarcoderX does not do here

  • No airline bag tags and no airport systems. Airline bag tags and airport baggage systems are out of scope. BarcoderX does not integrate with airline or airport systems, and it makes no third-party calls: it renders and prints the tag from the data it is given.
  • No scanning or tracking. BarcoderX does not read barcodes, so it does not scan a bag in or out, follow it from one handover to the next or check that a bag reaches its owner. That is your system and your scanners.
  • No bag records. Your tag data stays in your systems. Nothing is hosted for you, so BarcoderX does not keep a list of bags, owners or lost items.
  • No certification. No standard governs these tags, and BarcoderX does not certify, approve or validate a tag under any rule.

New to the printer language? Read the ZPL guides and command reference.

Sources

What this page says about BarcoderX is this: it prints from the data it is given, read from objects, a DataTable, CSV, JSON or XML; it enforces quiet zones, snaps the module width to whole dots and reports the effective size; it lets you set an ECI character set where the symbology allows it; it prints directly or through your own API server and a print agent that only dials out, and a retried request with an idempotency key does not queue a second tag; and it does not read barcodes, track bags or host anything for you. The description of bag tags is general and ours; no standard is cited because none defines these tags, and no airline or airport document was used.

Written by BarcoderX in its own words.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.