WeChat Enhanced icon

WeChat Enhanced

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

Overview

The "WeChat Enhanced" node provides comprehensive integration with various WeChat services, including Mini Programs, Official Accounts, WeChat Pay, and WeChat Work. Specifically, for the WeChat Pay resource and the Query Refund operation, this node allows users to query the status of a refund transaction processed through WeChat Pay.

This operation is beneficial in scenarios where merchants or service providers need to verify the status of refunds issued to customers, ensuring that refund requests have been successfully processed or to troubleshoot refund issues.

Practical example:
A merchant uses this node to automatically check the refund status after initiating a refund via WeChat Pay. The node can be configured with identifiers such as the WeChat Pay transaction ID, merchant order number, merchant refund number, or WeChat Pay refund ID to retrieve detailed refund information.

Properties

Name Meaning
Transaction ID The unique WeChat Pay transaction ID associated with the original payment.
Out Trade No The merchant's internal order number related to the payment or refund.
Out Refund No The merchant's internal refund number used to identify the refund request.
Refund ID The unique refund ID assigned by WeChat Pay for the refund transaction.

Output

The output of the Query Refund operation is a JSON object containing detailed information about the refund status retrieved from WeChat Pay. This typically includes fields such as refund amount, refund status, refund time, and other relevant metadata returned by the WeChat Pay API.

If multiple input items are processed, the node returns an array of JSON objects, each corresponding to the refund query result for the respective input.

The node does not output binary data for this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external N8N Tools API service, which acts as a proxy or validation layer for WeChat API calls.
  • Properly configured credentials for accessing WeChat Pay APIs (e.g., API keys, certificates) must be set up within n8n.
  • Network access to WeChat Pay endpoints is necessary.

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 for the external N8N Tools API is correctly configured and active.

  • Missing or incorrect refund identifiers:
    Ensure that at least one of the refund identification properties (transactionId, outTradeNo, outRefundNo, or refundId) is provided and accurate. Missing or wrong IDs will cause the refund query to fail or return no results.

  • API rate limits or connectivity issues:
    Network problems or exceeding WeChat Pay API rate limits may cause errors. Check network connectivity and consider implementing retry logic or delays between requests.

  • Malformed JSON input:
    For properties expecting JSON strings (not applicable directly here but relevant for other operations), ensure valid JSON formatting.

Links and References

Discussion