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
| Field | Type | Description |
|---|
| Order | integer | Order ID to refund |
Optional Fields
| Field | Type | Default | Description |
|---|
| Amount | number | Full | Refund amount |
| Reason | string | - | Refund reason |
| Restock Items | boolean | false | Return items to stock |
| Refund Payment | boolean | true | Process gateway refund |
| Line Items | array | All | Specific 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
| Variable | Type | Description |
|---|
{{Action.refund_id}} | integer | Created refund ID |
{{Action.amount}} | string | Amount refunded |
{{Action.order_id}} | integer | Order ID |
Common Workflows
Automated Cancellation Refund
- Trigger: Order Cancelled
- Condition: Order was paid
- Action: Refund Order
- Restock Items: true
- Refund Payment: true
Return Processing
- Trigger: Return approved
- Action: Refund Order
- Amount: Return value
- Restock Items: true
- Reason: Return -
{{Trigger.return_reason}}
Dispute Resolution
- Trigger: Dispute filed
- Condition: Auto-refund policy applies
- 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