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 WeChat Pay - Refund operation allows users to process refunds for payments made through WeChat Pay.
This operation is useful in scenarios where a merchant needs to refund a customer’s payment due to returns, cancellations, or other adjustments. For example, an e-commerce platform can automate refund processing by sending refund requests directly to WeChat Pay via this node.
Properties
| Name | Meaning |
|---|---|
| Refund Data | JSON object containing the refund details required by WeChat Pay API. This includes fields such as transaction identifiers, refund amount, reason, etc., formatted according to WeChat Pay's refund API specification. |
Output
The node outputs a JSON object representing the response from the WeChat Pay refund API call. This typically includes confirmation of the refund request, status codes, refund IDs, and any error messages if applicable.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for accessing the external N8N Tools API service used for validation.
- The node internally uses a helper class that wraps WeChat API calls.
- Proper configuration of credentials with access to WeChat Pay APIs is necessary.
- The refund data must be provided in valid JSON format matching WeChat Pay's refund API requirements.
Troubleshooting
- Invalid Credentials or Subscription: If the node throws errors related to invalid subscription or API key, verify that the API key credential is correctly configured and active.
- Malformed Refund Data: Errors may occur if the refund data JSON is incorrectly formatted or missing required fields. Validate the JSON structure before execution.
- Unsupported Operation Error: If the operation name is incorrect or unsupported, ensure "refund" is selected under the WeChat Pay resource.
- API Request Failures: Network issues or WeChat Pay service downtime can cause failures. Check connectivity and WeChat Pay service status.
- Permission Issues: Ensure the WeChat Pay account has permissions to perform refund operations.