Actions14
- Barcode Actions
- CNPJ Lookup Actions
- Currency Actions
- Email Validator Actions
- FIPE Actions
- Holiday Actions
- IP Lookup Actions
- Number to Word Actions
- QR Code Actions
- Validator Actions
- ZIP Code Actions
Overview
This node interacts with the Invertexto API to generate barcodes based on user input. Specifically, for the Barcode resource and Generate operation, it encodes a given text string into a barcode image of a specified type. This is useful in scenarios where you need to create barcodes dynamically for product labeling, inventory management, ticketing systems, or any application requiring machine-readable codes.
For example, you can generate an EAN-13 barcode for a retail product's UPC code or create a Code 128 barcode for shipping labels. The node supports customization options such as colors, font, size, and output format (including Base64 encoding or direct download).
Properties
| Name | Meaning |
|---|---|
| Text | The value that will be encoded into the barcode. For example, a product number or identifier. |
| Type | The barcode symbology/type to generate. Options include: Code 128, Code 39, EAN-13, ISBN, and UPC-A. |
| Options | A collection of optional settings to customize the barcode appearance and output: - Background Color: Hexadecimal color for the barcode background. - Base64: Return the image as a Base64 string if true. - Download: Force download of the image if true. - Font: Custom font for the barcode text. - Font Size: Size of the text font. - Foreground Color: Hexadecimal color for the barcode lines/text. - Label: Text label displayed above the barcode. - Label Size: Size of the label text. - Scale: Adjusts the overall size of the barcode. - Thickness: Adjusts the thickness of the barcode bars. |
Output
The node outputs JSON data representing the generated barcode. The exact structure depends on the API response but typically includes:
- The barcode image either as a URL or embedded data.
- If the "Base64" option is enabled, the image is returned as a Base64-encoded string.
- Additional metadata related to the barcode generation may also be included.
If the "Download" option is enabled, the node triggers a forced download of the barcode image.
No binary data output is explicitly handled by the node; all image data is managed via JSON fields.
Dependencies
- Requires an active API key credential for the Invertexto API.
- The node makes HTTP GET requests to
https://api.invertexto.com/v1/barcodewith appropriate query parameters. - No additional external libraries are bundled; the node relies on n8n's built-in HTTP request helper.
Troubleshooting
- Invalid API Key or Authentication Errors: Ensure the API key credential is correctly configured and valid.
- Unsupported Barcode Types: Using an unsupported barcode type may cause errors. Use only the provided options.
- Malformed Text Input: The text to encode must conform to the requirements of the selected barcode type (e.g., length and character set). Invalid input may result in API errors.
- Network Issues: Connectivity problems to the Invertexto API endpoint will cause request failures.
- Option Misconfiguration: Incorrect values for options like colors (must be valid hex), font sizes, or scale might lead to unexpected results or errors.
If the node throws an error, check the error message for details. Enabling "Continue On Fail" allows processing subsequent items even if some fail.
Links and References
- Invertexto API Documentation (general reference for API endpoints and parameters)
- Barcode Symbologies Overview (for understanding different barcode types)
This summary covers the Barcode resource with the Generate operation specifically, based on the provided source code and property definitions.