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 QR codes based on user input. Specifically, the "Generate" operation under the "QR Code" resource creates a QR code image encoding the provided text content. Users can customize various visual aspects of the QR code such as colors, error correction level, scale, and add labels.
Common scenarios where this node is beneficial include:
- Creating QR codes for URLs, contact information, or any textual data to be shared easily.
- Generating branded QR codes by customizing foreground/background colors and adding labels.
- Producing QR codes in different sizes and quality levels for printing or digital use.
Practical example: A marketing automation workflow that generates a QR code linking to a promotional webpage, customized with brand colors and a label, then sends it via email or stores it for later use.
Properties
| Name | Meaning |
|---|---|
| Text | The content encoded in the QR code (e.g., URL, text message). |
| Options | Collection of optional settings to customize the QR code appearance and output format: |
| - Background Color | Background color of the QR code in hexadecimal (default: #FFFFFF). |
| - Base64 | Whether to return the QR code image as a Base64 string instead of a direct image file (true/false). |
| - Download | Whether to force download the generated QR code image (true/false). |
| - Error Level | Error correction level of the QR code; options are Low (7%), Medium (15%), High (25%), Highest (30%). Default is Medium. |
| - Foreground Color | Foreground color of the QR code in hexadecimal (default: #000000). |
| - Label | Text label displayed below the QR code (optional). |
| - Label Size | Font size of the label text (default: 10). |
| - Scale | Scale factor to adjust the size of the QR code (default: 1). |
Output
The node outputs JSON data representing the generated QR code. Depending on the options selected:
- If
Base64is false, the output will typically contain a URL or direct link to the generated QR code image. - If
Base64is true, the output includes the QR code image encoded as a Base64 string, which can be embedded directly into HTML or other documents. - If
Downloadis true, the node triggers a forced download of the QR code image.
The exact structure of the JSON output depends on the API response but generally includes fields related to the QR code image data and metadata.
Dependencies
- Requires an active API key credential for the Invertexto API.
- The node makes HTTP GET requests to
https://api.invertexto.com/v1/qrcodewith query parameters based on user inputs. - No additional environment variables or configurations are needed beyond the API key.
Troubleshooting
Common issues:
- Invalid or missing API key will cause authentication errors.
- Improperly formatted text or unsupported characters might result in QR code generation failure.
- Network connectivity problems can prevent API calls from succeeding.
Error messages:
- Authentication errors usually indicate invalid or expired API credentials; verify and update the API key.
- API response errors may include messages about invalid parameters; ensure all required properties are correctly set.
- If the node returns an error about request limits, check your API usage quota with Invertexto.
Resolution tips:
- Double-check the "Text" property is not empty and properly encoded.
- Adjust error correction level if QR codes fail to scan reliably.
- Use the Base64 option to embed images directly if URL access is problematic.
Links and References
- Invertexto API documentation: https://invertexto.com/api-docs (general reference for API endpoints)
- QR Code standard and error correction info: https://www.qrcode.com/en/about/error_correction.html