Actions33
- Mini Program Actions
- WeChat Pay Actions
- Official Account Actions
- WeChat Work Actions
Overview
The WeChat Enhanced node integrates multiple WeChat services, including Mini Programs, Official Accounts, WeChat Pay, and WeChat Work. Specifically, the Download Bill operation under the WeChat Pay resource allows users to download transaction bills for a specified date and type. This is useful for financial reconciliation, auditing, or bookkeeping purposes where detailed transaction records from WeChat Pay are required.
Typical scenarios include:
- Automatically retrieving daily transaction bills for accounting systems.
- Downloading specific types of bills (e.g., successful transactions, refunds) for analysis.
- Integrating WeChat Pay billing data into broader financial workflows.
Example: A business can schedule this node to run daily, downloading the previous day's transaction bill of all types to update their internal sales database.
Properties
| Name | Meaning |
|---|---|
| Bill Date | The date of the bill to download, formatted as YYYYMMDD. Required. |
| Bill Type | The type of bill to download. Options: All, Success, Refund, Revoked. Defaults to All. |
Output
The node outputs JSON data representing the content of the downloaded bill. The exact structure depends on the WeChat Pay API response but generally includes transaction details such as amounts, timestamps, order IDs, refund information, etc.
No binary output is indicated for this operation; the bill data is returned as structured JSON suitable for further processing or storage.
Dependencies
- Requires an active subscription and valid API key credential for the external "N8N Tools API" service used for validation.
- Requires proper credentials configured in n8n for accessing WeChat Pay APIs.
- The node uses an internal helper class (
WeChatApi) to interact with WeChat Pay endpoints. - Network access to WeChat Pay API endpoints is necessary.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error about invalid subscription or API key, verify that the API key credential is correctly set up and has the necessary permissions.
- Unsupported operation error: Ensure the operation selected is supported by the node version.
- Date format issues: The Bill Date must be provided in YYYYMMDD format; incorrect formatting may cause API errors.
- Network or authentication failures: Check network connectivity and that WeChat Pay credentials are valid and not expired.
- Empty or malformed bill data: If the output JSON is empty or incomplete, verify that the requested bill date actually has available data and that the bill type is correct.
Links and References
This summary focuses exclusively on the WeChat Pay > Download Bill operation as requested, based on static analysis of the provided source code and property definitions.