Actions20
- Payments Actions
- Payment links Actions
- Methods Actions
- Refunds Actions
- Captures Actions
Refunds → Create Order Refund
AI-generatedOverview
This node interacts with the Mollie API to create a refund for an order. It allows users to specify the order ID and optionally provide details about specific order lines to refund. If no order lines are specified, the entire order will be refunded. Additional optional fields such as a description and metadata can be included to provide more context for the refund. This node is useful for e-commerce platforms or payment systems that need to automate refund processes for customer orders.
Use Case Examples
- Refund a full order by providing the order ID without specifying order lines.
- Refund specific items within an order by specifying order line IDs and quantities.
- Add a description and metadata to the refund for better tracking and customer communication.
Properties
| Name | Meaning |
|---|---|
| Live Api Key | Determines whether to use the live API key for authenticating requests to Mollie. |
| Order ID | The unique identifier of the order for which the refund is being created. |
| Order Lines | An array of objects specifying the order lines to refund. If empty, the entire order is refunded. |
| Additional Fields | Optional fields to add extra information to the refund, such as a description or metadata. |
Output
JSON
id- The unique identifier of the created refund.amountvalue- The monetary value of the refund.currency- The currency of the refund amount.
description- The description provided for the refund.metadata- Custom metadata associated with the refund.status- The current status of the refund (e.g., pending, refunded).lines- Details of the refunded order lines, if specified.
Dependencies
- Mollie API
Troubleshooting
- Ensure the provided Order ID is valid and exists in the Mollie system to avoid errors.
- Verify that the API key (live or test) is correctly set and has the necessary permissions.
- If specifying order lines, ensure each line has a valid ID and quantity; invalid or missing fields may cause the refund creation to fail.
- Check that the refund amount values are formatted correctly with two decimals and no thousands separator, e.g., '1000.00'.
- If the API returns an error, the node throws a NodeApiError with the error message; review the message for specific issues and adjust parameters accordingly.
Links
- Mollie API - Create Order Refund - Official Mollie API documentation for creating order refunds.
