Payfunnels icon

Payfunnels

Payfunnels

Actions5

Payment → Refund

AI-generated

Overview

This node performs a refund operation on a payment using the Payfunnels API. It is useful in scenarios where a user needs to refund a specific payment partially or fully, specifying the amount and reason for the refund. For example, an e-commerce platform can use this node to refund a customer's payment due to a duplicate charge or a fraudulent transaction.

Use Case Examples

  1. Refund a payment by providing the payment ID, refund amount, and reason such as 'requested_by_customer'.
  2. Process a partial refund for a payment identified by its ID with a specified amount and reason.

Properties

Name Meaning
Payment ID The ID of the payment to refund, used to identify which payment to refund.
Amount The amount to refund from the payment.
Reason The reason for the refund, which can be 'duplicate', 'fraudulent', or 'requested_by_customer'.

Output

JSON

  • id - The ID of the refunded payment.
  • amount - The amount refunded.
  • reason - The reason for the refund.
  • status - The status of the refund operation.

Dependencies

  • Payfunnels API with API key and authorization ID credentials

Troubleshooting

  • Common issues include invalid or missing payment ID, insufficient refund amount, or incorrect API credentials.
  • Error messages may indicate authorization failures, invalid parameters, or network issues. Verify credentials and input parameters to resolve.

Links

Discussion