Mollie

Create and manage payments with the Mollie payment gateway.

Finance and paymentsAPI key8 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (8)
  4. create_payment
  5. create_customer
  6. create_order
  7. create_payment_link
  8. create_payment_refund
  9. search_customer
  10. search_order
  11. search_payment
  12. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("mollie", action, input) resolves with the provider's answer and rejects when Mollie isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "mollie"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Mollie when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellMollie = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Mollie isn't connected.
  const output = await step.run("Mollie", () =>
    step.ctx.integrations.invoke("mollie", "create_payment", {
      "description": "<description>",
      "currency": "<currency>",
      "amount": "<amount>",
      "redirectUrl": "<redirect url>"
    }),
  );
  step.ctx.log("Mollie answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "mollie",
    "piece_action": "create_payment",
    "input": {
      "description": "<description>",
      "currency": "<currency>",
      "amount": "<amount>",
      "redirectUrl": "<redirect url>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/mollie/create_payment" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"description":"<description>","currency":"<currency>","amount":"<amount>","redirectUrl":"<redirect url>"}}'

Actions

create_payment

Create Payment. Creates a new payment in Mollie

InputTypeDescription
descriptionrequiredtextDescription of the payment (max 255 characters)
currencyrequiredtextA three-character ISO 4217 currency code (e.g. EUR, USD)
amountrequiredtextThe amount to charge (e.g. "10.00")
redirectUrlrequiredlong textURL to redirect customer after payment completion
cancelUrloptionallong textURL to redirect customer when they cancel payment
webhookUrloptionallong textURL for payment status updates
includeLinesoptionalbooleanWhether to include detailed order line items
linesoptionalarrayOrder line items (required for certain payment methods)
includeBillingAddressoptionalbooleanWhether to include billing address details
billingTitleoptionaltextTitle (e.g. Mr., Mrs.)
billingGivenNameoptionaltextFirst name
billingFamilyNameoptionaltextLast name
billingOrganizationNameoptionaltextOrganization name
billingStreetAndNumberoptionaltextStreet address with number
billingStreetAdditionaloptionaltextAdditional address details
billingPostalCodeoptionaltextPostal code
billingEmailoptionaltextEmail address
billingPhoneoptionaltextPhone in E.164 format
billingCityoptionaltextCity name
billingRegionoptionaltextState or region

create_customer

Create Customer. Creates a new customer in Mollie

InputTypeDescription
nameoptionaltextThe full name of the customer
emailoptionaltextThe email address of the customer
localeoptionalone of "en_US" | "en_GB" | "nl_NL" | "nl_BE" | "de_DE" | "de_AT" | "de_CH" | "fr_FR" | "fr_BE" | "es_ES" | "ca_ES" | "pt_PT"The language to be used in the hosted payment pages
metadataoptionaltextAdditional data to save alongside the customer (JSON string)
testmodeoptionalbooleanWhether to create the customer in test mode

create_order

Create Order. ⚠️ We no longer recommend using the Orders API. Please refer to the Payments API instead. Create a new order in Mollie

InputTypeDescription
orderNumberrequiredtextThe order number for this order. We recommend each order number to be unique.
currencyrequiredtextA three-character ISO 4217 currency code (e.g. EUR, USD)
amountrequiredtextThe total amount to charge (e.g. "10.00")
linesrequiredarrayThe order lines for the order
billingTitleoptionaltextThe title of the person (e.g. Mr., Mrs.)
billingGivenNamerequiredtextThe given name (first name) of the person
billingFamilyNamerequiredtextThe family name (surname) of the person
billingOrganizationNameoptionaltextThe name of the organization
billingStreetAndNumberrequiredtextA street and street number
billingStreetAdditionaloptionaltextAny additional addressing details
billingPostalCoderequiredtextA postal code
billingEmailrequiredtextEmail address
billingPhoneoptionaltextPhone number in E.164 format
billingCityrequiredtextCity name
billingRegionoptionaltextRegion or state
billingCountryrequiredtextA country code in ISO 3166-1 alpha-2 format
includeShippingAddressoptionalbooleanWhether to include a separate shipping address
shippingTitleoptionaltextThe title of the person (e.g. Mr., Mrs.)
shippingGivenNameoptionaltextThe given name (first name) of the person
shippingFamilyNameoptionaltextThe family name (surname) of the person

Create Payment Link. Generate a new payment link targeting a customer, product, or specific amount

InputTypeDescription
descriptionrequiredtextA short description of the payment link (max 255 characters)
includeAmountoptionalbooleanWhether to include a fixed amount or let customer enter amount
currencyoptionaltextA three-character ISO 4217 currency code (e.g. EUR, USD)
amountoptionaltextThe amount to charge (e.g. "10.00")
includeMinimumAmountoptionalbooleanWhether to set a minimum amount (only when no fixed amount)
minimumAmountCurrencyoptionaltextCurrency for minimum amount
minimumAmountoptionaltextThe minimum amount (e.g. "5.00")
redirectUrloptionallong textURL to redirect customer after payment completion
webhookUrloptionallong textURL for payment status updates
includeLinesoptionalbooleanWhether to include detailed order line items
linesoptionalarrayOrder line items (required for certain payment methods)
includeBillingAddressoptionalbooleanWhether to include billing address details
billingTitleoptionaltextTitle (e.g. Mr., Mrs.)
billingGivenNameoptionaltextFirst name
billingFamilyNameoptionaltextLast name
billingOrganizationNameoptionaltextOrganization name
billingStreetAndNumberoptionaltextStreet address with number
billingStreetAdditionaloptionaltextAdditional address details
billingPostalCodeoptionaltextPostal code
billingEmailoptionaltextEmail address

create_payment_refund

Create Payment Refund. Creates refund for payment

InputTypeDescription
paymentIdrequiredid (picked from your account)Select the payment to refund
descriptionoptionaltextThe description of the refund (max 255 characters)
currencyrequiredtextA three-character ISO 4217 currency code (e.g. EUR, USD)
amountrequiredtextThe amount to refund (e.g. "10.00")
metadataoptionaltextAdditional data to save alongside the refund (JSON string)
includeExternalReferenceoptionalbooleanWhether to include external reference details
externalReferenceTypeoptionalone of "acquirer-reference"Type of external reference
externalReferenceIdoptionaltextUnique reference from the payment provider
reverseRoutingoptionalbooleanPull back funds routed to connected merchants (full refund only)
includeRoutingReversalsoptionalbooleanSpecify detailed routing reversals for partial refunds
routingReversalsoptionalarrayDetailed routing reversals for connected merchants
testmodeoptionalbooleanWhether to create the refund in test mode

search_customer

Search Customer. Retrieve a list of all customers

InputTypeDescription
fromoptionaltextStart the result set from this customer ID onwards
limitoptionalnumberMaximum number of customers to return (1-250, default: 50)
sortoptionalone of "desc" | "asc"Sort customers by creation date
testmodeoptionalbooleanWhether to search in test mode

search_order

Search Order. ⚠️ We no longer recommend using the Orders API. Please refer to the Payments API instead. Searches for orders in Mollie

InputTypeDescription
fromoptionaltextStart the result set from this order ID onwards
limitoptionalnumberMaximum number of orders to return (1-250, default: 50)
sortoptionalone of "desc" | "asc"Sort orders by creation date
profileIdoptionaltextProfile ID to retrieve orders for (optional)
testmodeoptionalbooleanWhether to search in test mode

search_payment

Search Payment. Retrieve all payments created with the current website profile

InputTypeDescription
fromoptionaltextStart the result set from this payment ID onwards
limitoptionalnumberMaximum number of payments to return (1-250, default: 50)
sortoptionalone of "desc" | "asc"Sort payments by creation date
profileIdoptionaltextProfile ID to retrieve payments for (optional)
testmodeoptionalbooleanWhether to search in test mode

Details

Id
mollie
Category
Finance and payments
Tags
payments, gateway, europe, billing
Package
@activepieces/piece-mollie@0.1.3
Runs
Through the integration runner