Skip to content
jsontoimg
Start free
← All articles

QR Code Ticket Generator: Registration List to Scannable Passes

Published · Balaji

QR Code Ticket Generator: From Registration List to Scannable Passes

Looking for the commercial overview and format specs? Visit our dedicated Event Ticket Generator API hub.

A QR code ticket generator transforms attendee registration records into branded, scannable passes with tamper-evident barcodes. While rendering an image takes under 300ms, building a production door check-in system requires handling symbology choices, request idempotency, HMAC signing, and offline scanner verification.

Here is how to architect an end-to-end registration-to-ticket pipeline using jsontoimg's native vector Code layers.

The Production Event Flow

  1. Attendee Registers: An attendee submits a registration form (via your backend, Stripe Checkout, or Eventbrite webhook).
  2. Backend Mints Cryptographic Ticket ID: Generate an RFC 9562 UUID v7 and append an HMAC-SHA256 signature.
  3. Dispatch Render Request: Call POST /api/v1/render with format: "png" or "pdf", passing attendee fields and the signed ticket string in the Code layer.
  4. Deliver Asset: Send the signed assetUrl directly inside confirmation emails or mobile push notifications.
{
  "template": "tpl_conference_pass",
  "version": 1,
  "format": "png",
  "layers": {
    "name": { "text": "Grace Hopper" },
    "tier": { "text": "General Admission" },
    "gate": { "text": "Gate 4, Hall B" },
    "code": { "text": "TKT-0190a7e2-5b1c-7c3e.f9a8b2c1d4" }
  }
}

Symbology: QR Codes vs Barcodes for Venue Scanners

jsontoimg native Code layers support four vector formats:

  • qrcode: Best for mobile screens, Apple Wallet/Google Wallet cards, and general smartphone cameras.
  • code128: Industry-standard 1D high-density barcode for handheld laser scanners at high-throughput turnstiles.
  • ean13 & code39: Legacy retail and badge tracking symbologies.

Verify venue hardware capabilities before finalizing your template design to ensure rapid read rates at entry gates.

Idempotency: Never Issue Duplicate Tickets

HTTP POST is non-idempotent by default (RFC 9110). If a webhook fires twice or a network blip causes a retry, you risk minting duplicate passes.

  • Deduplicate on Order/Attendee ID: Check your database before initiating a render.
  • Verify Webhook Signatures: Inbound webhooks from jsontoimg carry an X-Render-Signature header (HMAC-SHA256 over raw request body as defined in RFC 2104). Verify this signature to ensure authenticity.
  • Track by eventId: Each batch or render event includes a unique eventId. Discard repeated deliveries.

Batching Pre-Registration Runs

When issuing passes for a 500-attendee cohort before an event:

  • Batch jobs in chunks of 50 via POST /api/v1/renders/batch.
  • Ten 50-job batches process in parallel or sequential queues.
  • Synchronous individual registrations at checkout use ?wait=30 for instant delivery.

Security at the Door

jsontoimg draws the visual pass and encodes the vector barcode; your door check-in app verifies it. Build an offline verification step into your mobile scanner that validates the HMAC signature locally, ensuring instant validation even if convention center Wi-Fi drops.

Related Resources

Frequently Asked Questions

How do I generate event tickets with QR codes automatically?

Capture registration submissions via webhooks, generate a secure ticket ID with an HMAC signature, and send a POST request to jsontoimg specifying your template and named Code layer. Email the resulting asset URL to the attendee.

Which barcode format works best for mobile tickets?

QR codes (qrcode) are ideal for mobile screens because smartphone cameras and modern 2D imagers scan them from any angle. For dedicated 1D laser turnstile scanners, code128 is recommended.

How do I prevent duplicate tickets when requests retry?

Use your internal database attendee ID as an idempotency key before dispatching render jobs, and log eventId tokens delivered by render webhooks.

Get 25 free images →

Your first 25 images are on us.

Design a template, grab an API key, and render your first PNG or PDF in minutes. No card required.