Mollie icon

Mollie

Consume Mollie API (v.0.8.6)

Refunds → Create Order Refund

AI-generated

Overview

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

  1. Refund a full order by providing the order ID without specifying order lines.
  2. Refund specific items within an order by specifying order line IDs and quantities.
  3. 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.
  • amount
    • value - 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

Discussion