Mollie
Create and manage payments with the Mollie payment gateway.
On this page
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.
// 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);
});{
"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"
}
}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
| Input | Type | Description |
|---|---|---|
descriptionrequired | text | Description of the payment (max 255 characters) |
currencyrequired | text | A three-character ISO 4217 currency code (e.g. EUR, USD) |
amountrequired | text | The amount to charge (e.g. "10.00") |
redirectUrlrequired | long text | URL to redirect customer after payment completion |
cancelUrloptional | long text | URL to redirect customer when they cancel payment |
webhookUrloptional | long text | URL for payment status updates |
includeLinesoptional | boolean | Whether to include detailed order line items |
linesoptional | array | Order line items (required for certain payment methods) |
includeBillingAddressoptional | boolean | Whether to include billing address details |
billingTitleoptional | text | Title (e.g. Mr., Mrs.) |
billingGivenNameoptional | text | First name |
billingFamilyNameoptional | text | Last name |
billingOrganizationNameoptional | text | Organization name |
billingStreetAndNumberoptional | text | Street address with number |
billingStreetAdditionaloptional | text | Additional address details |
billingPostalCodeoptional | text | Postal code |
billingEmailoptional | text | Email address |
billingPhoneoptional | text | Phone in E.164 format |
billingCityoptional | text | City name |
billingRegionoptional | text | State or region |
create_customer
Create Customer. Creates a new customer in Mollie
| Input | Type | Description |
|---|---|---|
nameoptional | text | The full name of the customer |
emailoptional | text | The email address of the customer |
localeoptional | one 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 |
metadataoptional | text | Additional data to save alongside the customer (JSON string) |
testmodeoptional | boolean | Whether 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
| Input | Type | Description |
|---|---|---|
orderNumberrequired | text | The order number for this order. We recommend each order number to be unique. |
currencyrequired | text | A three-character ISO 4217 currency code (e.g. EUR, USD) |
amountrequired | text | The total amount to charge (e.g. "10.00") |
linesrequired | array | The order lines for the order |
billingTitleoptional | text | The title of the person (e.g. Mr., Mrs.) |
billingGivenNamerequired | text | The given name (first name) of the person |
billingFamilyNamerequired | text | The family name (surname) of the person |
billingOrganizationNameoptional | text | The name of the organization |
billingStreetAndNumberrequired | text | A street and street number |
billingStreetAdditionaloptional | text | Any additional addressing details |
billingPostalCoderequired | text | A postal code |
billingEmailrequired | text | Email address |
billingPhoneoptional | text | Phone number in E.164 format |
billingCityrequired | text | City name |
billingRegionoptional | text | Region or state |
billingCountryrequired | text | A country code in ISO 3166-1 alpha-2 format |
includeShippingAddressoptional | boolean | Whether to include a separate shipping address |
shippingTitleoptional | text | The title of the person (e.g. Mr., Mrs.) |
shippingGivenNameoptional | text | The given name (first name) of the person |
shippingFamilyNameoptional | text | The family name (surname) of the person |
create_payment_link
Create Payment Link. Generate a new payment link targeting a customer, product, or specific amount
| Input | Type | Description |
|---|---|---|
descriptionrequired | text | A short description of the payment link (max 255 characters) |
includeAmountoptional | boolean | Whether to include a fixed amount or let customer enter amount |
currencyoptional | text | A three-character ISO 4217 currency code (e.g. EUR, USD) |
amountoptional | text | The amount to charge (e.g. "10.00") |
includeMinimumAmountoptional | boolean | Whether to set a minimum amount (only when no fixed amount) |
minimumAmountCurrencyoptional | text | Currency for minimum amount |
minimumAmountoptional | text | The minimum amount (e.g. "5.00") |
redirectUrloptional | long text | URL to redirect customer after payment completion |
webhookUrloptional | long text | URL for payment status updates |
includeLinesoptional | boolean | Whether to include detailed order line items |
linesoptional | array | Order line items (required for certain payment methods) |
includeBillingAddressoptional | boolean | Whether to include billing address details |
billingTitleoptional | text | Title (e.g. Mr., Mrs.) |
billingGivenNameoptional | text | First name |
billingFamilyNameoptional | text | Last name |
billingOrganizationNameoptional | text | Organization name |
billingStreetAndNumberoptional | text | Street address with number |
billingStreetAdditionaloptional | text | Additional address details |
billingPostalCodeoptional | text | Postal code |
billingEmailoptional | text | Email address |
create_payment_refund
Create Payment Refund. Creates refund for payment
| Input | Type | Description |
|---|---|---|
paymentIdrequired | id (picked from your account) | Select the payment to refund |
descriptionoptional | text | The description of the refund (max 255 characters) |
currencyrequired | text | A three-character ISO 4217 currency code (e.g. EUR, USD) |
amountrequired | text | The amount to refund (e.g. "10.00") |
metadataoptional | text | Additional data to save alongside the refund (JSON string) |
includeExternalReferenceoptional | boolean | Whether to include external reference details |
externalReferenceTypeoptional | one of "acquirer-reference" | Type of external reference |
externalReferenceIdoptional | text | Unique reference from the payment provider |
reverseRoutingoptional | boolean | Pull back funds routed to connected merchants (full refund only) |
includeRoutingReversalsoptional | boolean | Specify detailed routing reversals for partial refunds |
routingReversalsoptional | array | Detailed routing reversals for connected merchants |
testmodeoptional | boolean | Whether to create the refund in test mode |
search_customer
Search Customer. Retrieve a list of all customers
| Input | Type | Description |
|---|---|---|
fromoptional | text | Start the result set from this customer ID onwards |
limitoptional | number | Maximum number of customers to return (1-250, default: 50) |
sortoptional | one of "desc" | "asc" | Sort customers by creation date |
testmodeoptional | boolean | Whether 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
| Input | Type | Description |
|---|---|---|
fromoptional | text | Start the result set from this order ID onwards |
limitoptional | number | Maximum number of orders to return (1-250, default: 50) |
sortoptional | one of "desc" | "asc" | Sort orders by creation date |
profileIdoptional | text | Profile ID to retrieve orders for (optional) |
testmodeoptional | boolean | Whether to search in test mode |
search_payment
Search Payment. Retrieve all payments created with the current website profile
| Input | Type | Description |
|---|---|---|
fromoptional | text | Start the result set from this payment ID onwards |
limitoptional | number | Maximum number of payments to return (1-250, default: 50) |
sortoptional | one of "desc" | "asc" | Sort payments by creation date |
profileIdoptional | text | Profile ID to retrieve payments for (optional) |
testmodeoptional | boolean | Whether 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