{"id":51,"date":"2026-07-08T10:42:31","date_gmt":"2026-07-08T10:42:31","guid":{"rendered":"https:\/\/blog.skndan.com\/jsontoimg\/?page_id=51"},"modified":"2026-11-17T13:33:54","modified_gmt":"2026-11-17T13:33:54","slug":"event-tickets","status":"publish","type":"page","link":"https:\/\/blog.skndan.com\/jsontoimg\/use-cases\/event-tickets\/","title":{"rendered":"Event Ticket Generator API: Dynamic Tickets with QR Codes from JSON"},"content":{"rendered":"<h1>Event Ticket Generator API: Dynamic Tickets with QR Codes from JSON<\/h1>\n<p>jsontoimg provides an event ticket generator API that transforms registration data into branded, scannable event passes and tickets. With one master template designed in J2I Studio, your backend sends attendee names, ticket tiers, gate numbers, and unique QR or barcode values over REST\u2014receiving pixel-perfect PNG passes for Apple Wallet\/email or printable PDF tickets.<\/p>\n<h2>The Registration-to-Ticket Pipeline<\/h2>\n<ol>\n<li><strong>Attendee Registers<\/strong>: Registration completes on your platform, Stripe Checkout, or Eventbrite webhook.<\/li>\n<li><strong>Backend Dispatches JSON<\/strong>: Your application issues a single <code>POST \/api\/v1\/render<\/code> or queues a batch request.<\/li>\n<li><strong>Dynamic QR &amp; Barcode Generation<\/strong>: jsontoimg&#39;s native vector Code layer generates crisp, scannable QR codes (<code>qrcode<\/code>), Code 128 (<code>code128<\/code>), or EAN-13 barcodes from the payload text.<\/li>\n<li><strong>Instant Delivery<\/strong>: Attach the rendered PNG to confirmation emails, embed it in SMS\/WhatsApp tickets, or provide vector PDFs for door badge printing.<\/li>\n<\/ol>\n<h2>Single Ticket API Request Example<\/h2>\n<pre><code class=\"language-bash\">curl -X POST &quot;https:\/\/app.jsontoimg.com\/api\/v1\/render?wait=30&quot; \\\n  -H &quot;Authorization: Bearer $JSONTOIMG_API_KEY&quot; \\\n  -H &quot;Content-Type: application\/json&quot; \\\n  -d &#39;{\n    &quot;template&quot;: &quot;tpl_conference_pass_2026&quot;,\n    &quot;version&quot;: 1,\n    &quot;format&quot;: &quot;png&quot;,\n    &quot;layers&quot;: {\n      &quot;attendee_name&quot;: { &quot;text&quot;: &quot;Marcus Vance&quot; },\n      &quot;ticket_tier&quot;: { &quot;text&quot;: &quot;VIP All-Access&quot; },\n      &quot;seat&quot;: { &quot;text&quot;: &quot;Row B, Seat 14&quot; },\n      &quot;qr_ticket&quot;: { &quot;text&quot;: &quot;https:\/\/checkin.example.com\/t\/9941a87-hmac&quot; }\n    }\n  }&#39;\n<\/code><\/pre>\n<h2>Making QR Codes Tamper-Evident for Door Scanners<\/h2>\n<p>A bare numeric order ID inside a QR code is easily forged or guessed. To guarantee security at venue doors:<\/p>\n<ul>\n<li><strong>Mint Unguessable UUIDs<\/strong>: Use <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc9562\">RFC 9562<\/a> UUID v7 instead of auto-incrementing integers.<\/li>\n<li><strong>Append Server-Side HMAC Signatures<\/strong>: Sign the ticket ID with an <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc2104\">HMAC-SHA256<\/a> hash using a private secret: <code>ticketId.signature<\/code>.<\/li>\n<li><strong>Offline Scanning Verification<\/strong>: Door scanning apps verify the signature locally using the same shared secret, allowing high-speed check-ins even when venue cellular connectivity fails.<\/li>\n<li><strong>Privacy First<\/strong>: Never encode personally identifiable information (PII) like phone numbers or home addresses into QR codes, as tickets are frequently screenshotted and shared on social media.<\/li>\n<\/ul>\n<h2>Batch Ticket Processing for Large Events<\/h2>\n<p>For festivals, conferences, or sporting events with hundreds of attendees, do not send individual HTTP calls. Use <code>POST \/api\/v1\/renders\/batch<\/code>:<\/p>\n<ul>\n<li>Submit up to <strong>50 tickets per batch request<\/strong>.<\/li>\n<li>An event with 1,000 attendees requires just 20 batch calls.<\/li>\n<li>Track progress asynchronously via webhooks or Server-Sent Events (SSE).<\/li>\n<li>Failed jobs never deduct credits; simply retry the failed attendee IDs.<\/li>\n<\/ul>\n<h2>Related Resources<\/h2>\n<ul>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/QR_code\">QR code (Wikipedia)<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\">All image generation use cases<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/tools\/free-event-ticket-generator\">Free online event ticket generator<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/docs\/guides\/batch\">Batch renders docs<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/docs\/generate\/pdf\">PDF generation docs<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/event-ticket-generator-qr-code-api\">Event Ticket QR Code Generator Guide<\/a> \u2014 Step-by-step pipeline from registration to scannable passes.<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/certificates\">Certificate Generator API<\/a> \u2014 Generate verifiable diplomas and awards with QR layers.<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/name-badges\">Name Badges &amp; ID Cards<\/a> \u2014 Produce printable event badges from guest lists.<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/batch-image-generation-generate-thousands-of-images\">Batch Renders Guide<\/a> \u2014 Best practices for processing thousands of images.<\/li>\n<\/ul>\n<h2>Frequently Asked Questions<\/h2>\n<h3>What formats can the ticket generator API output?<\/h3>\n<p>jsontoimg exports tickets as PNG, JPG, WebP, AVIF, or multi-page PDF. PNG and WebP are ideal for mobile display and email delivery; PDF is recommended for thermal printers or badge lanyards.<\/p>\n<h3>Which barcode and QR types are supported?<\/h3>\n<p>jsontoimg native Code layers support <code>qrcode<\/code>, <code>code128<\/code>, <code>ean13<\/code>, and <code>code39<\/code>. Simply specify the format on the layer and pass the raw alphanumeric string in your JSON payload.<\/p>\n<h3>How fast is the ticket generation?<\/h3>\n<p>Using <code>?wait=30<\/code>, synchronous renders complete in hundreds of milliseconds. For large cohorts, our batch endpoint processes 50 jobs concurrently with webhook notifications upon completion.<\/p>\n<h3>Can I style different tiers (VIP vs General Admission)?<\/h3>\n<p>Yes. You can manage separate templates per tier, or use a single master template with dynamic badge labels, color overrides, and version pinning (<code>&quot;version&quot;: 1<\/code>).<\/p>\n<p><a href=\"https:\/\/app.jsontoimg.com\/login\">Get 25 free images \u2192<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Each registration POSTs attendee name, tier, and a unique QR payload on a Code layer. The ticket image comes back on wait or webhook.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":45,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-51","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":7,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/51\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/51\/revisions\/401"}],"up":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/45"}],"wp:attachment":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/media?parent=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}