Refund Order

Process refunds for WooCommerce orders automatically.

Overview

The Refund Order action processes a refund for a WooCommerce order. This can be a full or partial refund, with optional automatic payment gateway refund.

Configuration

Required Fields

FieldTypeDescription
OrderintegerOrder ID to refund

Optional Fields

FieldTypeDefaultDescription
AmountnumberFullRefund amount
Reasonstring-Refund reason
Restock ItemsbooleanfalseReturn items to stock
Refund PaymentbooleantrueProcess gateway refund
Line ItemsarrayAllSpecific items to refund

Example Configurations

Full Refund

Order: {{Trigger.order_id}}
Reason: Customer requested cancellation
Restock Items: true
Refund Payment: true

Partial Refund

Order: {{Trigger.order_id}}
Amount: 25.00
Reason: Shipping issue compensation
Refund Payment: true

Manual Refund (No Gateway)

Order: {{Trigger.order_id}}
Amount: {{Trigger.refund_amount}}
Reason: Already refunded via PayPal
Refund Payment: false

Output Data

VariableTypeDescription
{{Action.refund_id}}integerCreated refund ID
{{Action.amount}}stringAmount refunded
{{Action.order_id}}integerOrder ID

Common Workflows

Automated Cancellation Refund

  1. Trigger: Order Cancelled
  2. Condition: Order was paid
  3. Action: Refund Order
    • Restock Items: true
    • Refund Payment: true

Return Processing

  1. Trigger: Return approved
  2. Action: Refund Order
    • Amount: Return value
    • Restock Items: true
    • Reason: Return - {{Trigger.return_reason}}

Dispute Resolution

  1. Trigger: Dispute filed
  2. Condition: Auto-refund policy applies
  3. Action: Refund Order
    • Reason: Dispute auto-resolution

Important Notes

  • Gateway refunds require API connectivity
  • Some gateways don’t support automatic refunds
  • Partial refunds may not restock items
  • Always log refund reasons

Best Practices

  • Include clear refund reasons
  • Restock items when appropriate
  • Verify gateway supports automatic refunds
  • Notify customers of refund processing