Skip to content

Bars Only Barcode

Barcode style
type: "barcode"

Render clean bars without the human-readable line for tight layouts where the value is printed elsewhere — value swapped per API call. Try imejis free.

Edit it — this is the actual editor panel
Design JSON — “Bars only” variant
{
  "title": "Barcode sample",
  "description": "A dynamic Code 128 barcode",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-barcode",
      "key": "sku",
      "type": "barcode",
      "position": {
        "x": 240,
        "y": 140
      },
      "rotation": 0,
      "size": {
        "width": 320,
        "height": 140
      },
      "dynamic": true,
      "properties": {
        "value": "012345678905",
        "format": "code128",
        "barColor": "#000000",
        "backgroundColor": "#ffffff",
        "displayValue": false,
        "opacity": 1
      }
    }
  ]
}

Barcode examples

Real renders of the bars only barcode — each one is the same component with different property values, and the API payload below each preview reproduces it exactly.

Compact ticket stub

A slim entry code on a cinema ticket where the ID prints elsewhere.

API overrides for this example
{
  "sku.displayValue": false,
  "sku.value": "TKT-2026-000481"
}

Asset tag strip

A navy bars-only strip for an IT asset label with the ID engraved beside it.

API overrides for this example
{
  "sku.displayValue": false,
  "sku.value": "AST-77-1204",
  "sku.barColor": "#1E3A8A"
}

When to use the bars only style

  • Compact ticket stubs
  • Labels where the number prints separately
  • Dense multi-barcode sheets

Use it dynamically via the API

Encode a different SKU/ticket per render via '<key>.value'; format and colors can also be overridden.

Full API request with this variant's current values — the playground above sends only the properties you change
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
    "sku.value": "012345678905",
    "sku.format": "code128",
    "sku.barColor": "#000000",
    "sku.backgroundColor": "#ffffff",
    "sku.displayValue": false,
    "sku.opacity": 1
}'

Only send the properties you want to change — everything else keeps its design value. See the API documentation for all languages.

Other barcode styles

See the barcode component page for the full property reference and FAQs.

We use cookies to run the site and, depending on your region and your choice here, for analytics and marketing. See our Cookie Policy. You can change this any time from “Cookie settings” in the footer.