Skip to main content

Create Barcode in Zapier

What this action does

PDF4me, Create Barcode generates a standalone barcode or QR code image from any text or dynamic Zap data and returns a download link to the generated image. Choose from six formats, QR Code, Data Matrix, Code128, Aztec, HanXin, and PDF417, and encode order numbers, product URLs, tracking IDs, or any alphanumeric data automatically. No source PDF is required; the barcode is produced from scratch and can feed directly into storage, email, or a downstream PDF embedding step.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

Authenticating Your API Request​

Every PDF4me action in Zapier requires a valid Connection. Create or select one that holds your PDF4me API key so the Zap can authenticate barcode generation requests securely.

Important Facts You Should Not Miss​

Both fields are required
Barcode Type and Text are both required. Barcode Type determines the encoding standard, and Text carries the actual data to encode. Leaving either blank causes the action to fail without producing output.
Output is a download link
The action returns fileUrl, a download link to the generated barcode image, not the image bytes. Map fileUrl into a storage action such as Google Drive Upload File or Dropbox Upload File in the next Zap step.
Map dynamic data from prior steps
The Text field supports Zapier's field mapping. Click the + icon and select any output from a prior step, order ID from Shopify, row value from Google Sheets, or a contact field from HubSpot, to generate a unique barcode per record automatically.
PDF4me Create Barcode action in Zapier showing Barcode Type set to QR Code and Text mapped from a prior Zap step

Barcode Type selects the encoding format; Text is mapped from any prior step, an order ID, URL, SKU, or any alphanumeric value.

Parameters​

Required: Both Barcode Type and Text must be provided for the action to generate a barcode.

ParameterRequiredWhat it doesExample
Barcode TypeRequiredFormat of the barcode to generate. Options: QR Code, Data Matrix, Code128, Aztec, HanXin, PDF417: plus 150+ additional types. Defaults to QR code.QR Code
TextYesData to encode into the barcode. Map a dynamic value from a prior Zap step: order number, URL, SKU, asset ID, or any alphanumeric string.ORDER-2024-00123
Hide TextConditionalShown when Barcode Type is Code128. Hide text shown below barcode. Defaults to Yes.Yes
Text in the BarcodeRequiredText to be encoded in the Barcode

Output Fields​

FieldTypeWhat it contains
fileUrlTextDownload link of the generated barcode image. Map it into any later step that needs the file, for example an upload to Google Drive, Dropbox or OneDrive.
fileNameTextName of the resulting file, without extension.
fullFileNameTextName of the resulting file, with extension.
fileExtensionTextExtension of the resulting file, for example .png.
documentIdTextID PDF4me gives the resulting document.
jobIdTextID of the PDF4me job that processed the request.
traceIdTextTrace ID of the request, when PDF4me returns one. Give it to PDF4me support when reporting a problem.

Quick Setup​

  1. Add PDF4me → Create Barcode to your Zap.
  2. Select Account (or click Connect a new account and enter your API key).
  3. Choose Barcode Type from the dropdown: e.g., QR Code for links, Code128 for inventory labels.
  4. Map Text to the dynamic field you want to encode: e.g., {{Order Number}} from Shopify.
  5. Add a follow-up step: save the fileUrl to Google Drive, attach it to a Gmail message, or pass it to Add Barcode or QR Code to PDF for embedding.

Workflow Examples​

Workflow ExamplesCommon Zapier patterns using PDF4me Create Barcode.
E-commerce order tracking QR codes
  1. Shopify trigger fires on new order.
  2. PDF4me Create Barcode runs with Barcode Type set to QR Code and Text mapped from Order Number.
  3. Gmail attaches the barcode image to the order confirmation email.
  4. Google Drive saves the barcode image to the /Order Barcodes/ folder for records.
Inventory product label generation
  1. New row added to Google Sheets (product register) triggers the Zap.
  2. PDF4me Create Barcode encodes the SKU value into a Code128 barcode.
  3. PDF4me Add Barcode or QR Code to PDF embeds it into the label template PDF.
  4. Dropbox saves the labeled PDF to /Product Labels/ for the warehouse team.
Event ticket QR code distribution
  1. New registration in Eventbrite triggers the Zap.
  2. PDF4me Create Barcode generates a QR Code from the Attendee ID and Event Name.
  3. PDF4me Fill a PDF Form embeds the QR code into the ticket template.
  4. Gmail emails the completed ticket PDF to the attendee automatically.

Frequently Asked Questions​

Which barcode formats are supported?+
QR Code, Data Matrix, Code128, Aztec, HanXin (Chinese national standard 2D code), and PDF417 are the primary formats. The full library includes 150+ types covering retail (EAN13, UPC-A), logistics (GS1-128, ITF-14), and healthcare (HIBC, GS1 DataBar). Select the appropriate type from the Barcode Type dropdown.
How do I use the fileUrl output in a next step?+
Map the fileUrl field from this action into any Zapier step that accepts a file URL: Google Drive (Upload File), Dropbox (Upload File), Gmail (attachment), or OneDrive (Create File). The action returns a download link, not the image bytes.
Can I encode a full URL into a QR code?+
Yes. Enter the full URL in the Text field: for example, https://yoursite.com/track?order=12345. For very long URLs, use a URL shortener first to keep the QR code dense enough to scan at small print sizes.
What is the character limit per barcode type?+
QR Code handles up to 4,296 alphanumeric characters. Code128 supports up to 255. DataMatrix and PDF417 handle large payloads. Linear formats like EAN13 and UPC-A have fixed-length numeric constraints defined by their respective standards.
Does this action require a source PDF?+
No. Create Barcode generates a standalone barcode image from scratch: no source document is needed. To embed the barcode into an existing PDF, use the separate Add Barcode or QR Code to PDF action in the next Zap step.

Get Help​