FlowmageDocs

Create refund

BetaChanges data

Refunds money on a Mollie payment, in whole or in part.

Settings

SettingWhat it is
ConnectionRequiredThe Mollie connection the step signs in with.
Payment idRequiredThe tr_… id of the payment to give money back on.
Currency"EUR" or "GBP" or "CHF" or "DKK" or "NOK" or "PLN" or "SEK" or "USD" or "CZK" or "HUF" or "AUD" or "CAD" or "RON"
AmountRequiredText with two decimals, like 10.00. Less than the payment refunds a part of it.
DescriptionMollie may show this to your customer. At most 255 characters.
Acquirer referenceYour own reference at the card acquirer, for reconciliation.
Your own dataobject of text
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `mollie`)
paymentIdtext
amountCurrency"EUR" or "GBP" or "CHF" or "DKK" or "NOK" or "PLN" or "SEK" or "USD" or "CZK" or "HUF" or "AUD" or "CAD" or "RON", by default "EUR"
amountValuetextits `{{ }}` must give a string
descriptiontext
externalReferenceIdtext
metadataobject of text, by default {}

Output

FieldType
refundIdstring
refundobject
statusstring
replayedMollie replayed an earlier attemptboolean
Sample output, and the expression for each field
  • refund{}
  • refundId"re_4qqhO89gsT"
  • replayedfalse
  • status"queued"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "amountCurrency": "EUR",
    "amountValue": "<amount>",
    "connection": "<connection id>",
    "description": "",
    "externalReferenceId": "",
    "metadata": {},
    "paymentId": "<payment id>"
  },
  "label": "Create refund",
  "type": "mollie.createRefund",
  "version": 1
}