WeChat Enhanced icon

WeChat Enhanced

WeChat Enhanced Node - Suporte completo para Mini Programs, Official Accounts, WeChat Pay e WeChat Work

Overview

The "Create Unlimited QR Code" operation of the WeChat Enhanced node allows users to generate unlimited-use QR codes for WeChat Mini Programs. Unlike temporary QR codes, these unlimited QR codes do not expire and can be used repeatedly to direct users to specific pages or scenes within a Mini Program.

This operation is beneficial in scenarios such as marketing campaigns, product packaging, event promotions, or any situation where a persistent QR code is needed to link users directly to a Mini Program page with custom parameters.

Practical example:
A retail store wants to create a permanent QR code that customers can scan to access a special offers page inside their Mini Program. Using this node operation, they can specify the scene parameter (e.g., "special_offers") and optionally the page path, generating a QR code image that can be printed on flyers or displayed in-store.

Properties

Name Meaning
Scene The scene parameter for the QR code, used to carry custom data or identify the QR code.
Page (Optional) The Mini Program page path to open when scanning the QR code.
Width The width of the generated QR code image in pixels (default is 430).

Output

The output JSON contains the result returned by the API call to generate the unlimited QR code. Typically, this includes:

  • A URL or base64-encoded image data representing the QR code.
  • Metadata about the QR code generation status.

If the node supports binary data output (not explicitly shown here), it would represent the QR code image file itself, which can be used downstream for saving or displaying.

Dependencies

  • Requires an active subscription and valid API key for the external N8N Tools API service, which acts as a proxy or helper for WeChat API calls.
  • The node uses credentials configured in n8n to authenticate requests.
  • The WeChat Mini Program must be properly set up with necessary permissions to generate QR codes.
  • Network connectivity to the N8N Tools API endpoint is required.

Troubleshooting

  • Invalid subscription or API key error:
    If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and has sufficient permissions.

  • Unsupported operation error:
    If the operation name is incorrect or unsupported, ensure you select "Create Unlimited QR Code" under the Mini Program resource.

  • Missing required parameters:
    The "Scene" property is mandatory. Omitting it will cause errors. Ensure all required fields are filled.

  • API request failures:
    Network issues or misconfiguration of credentials may cause HTTP request failures. Check network connectivity and credential validity.

Links and References

Discussion