Accept payments, manage refunds, customers, mandates and subscriptions on Mollie, the European payment gateway.
Mollie ships in the w6w first-party pack. It declares 41 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.mollieMollie is a European payment gateway: accept payments over 30+ methods (iDEAL, cards, Bancontact, SEPA Direct Debit, PayPal, Klarna, and more) via Payments, hosted Payment Links, and recurring subscriptions billed against a saved Mandate, then track, refund and reconcile them.
This app covers that core payment-gateway surface — Payments, Refunds, Chargebacks, Methods, Payment Links, Customers, Mandates and Subscriptions — the path a workflow needs to accept a payment and later reconcile, refund, or bill a recurring charge against it. Monetary amounts are always {currency, value} objects with value an exact decimal STRING ("10.00"), never an integer of cents.
Mollie’s Orders API (and its companion Shipments API) is deprecated by Mollie itself as of this writing — the vendor’s own docs mark every orders-api operation deprecated: true and steer integrations at the Payments API’s lines field instead — so this app does not implement it.
The wider Mollie Connect surface (OAuth-based platform/marketplace access on behalf of other Mollie merchants — Organizations, Clients, Client Links, Balance Transfers, Onboarding, Capabilities, Permissions) and Business operations (Balances, Settlements, Invoices, Payouts, Sales Invoices, Business Accounts, Terminals, Wallets, Delayed Routing, Unmatched Credit Transfers, Sessions/Checkout Sessions) are a different activation and a different account relationship, and are left out rather than half-covered.
Three routes to the same 41 actions. The Workflow tab is generated from Mollie's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
chargeback-list Retrieve a cursor-paginated list of chargebacks across the whole account (or profile).
customer-create Create a customer, for repeat/recurring payments and payment-method mandates.
customer-delete Permanently delete a customer, and all mandates and subscriptions belonging to it. Cannot be undone.
customer-payment-list Retrieve a cursor-paginated list of payments made by one customer.
mandate-create Register a SEPA Direct Debit or PayPal mandate directly, without a first payment. Required fields differ by method — SEPA needs consumerAccount (IBAN); PayPal needs consumerEmail plus a billing-agreement or vault ID.
mandate-revoke Revoke a mandate. Any active subscription using it will stop being charged. Cannot be undone.
method-get Retrieve details (min/max amount, image, issuers) for one payment method.
method-list-all List every payment method the profile could activate, enabled or not.
payment-cancel Cancel a payment while it is still cancelable (open, pending or authorized, depending on the method).
payment-chargeback-list Retrieve a cursor-paginated list of chargebacks for one payment.
payment-create Create a payment. Returns a `_links.checkout.href` the customer completes it at.
payment-link-create Create a reusable, shareable checkout link. Omit amount to let the customer enter one.
payment-link-update Update a payment link's description, archived state, or redirect URL.
payment-refund-cancel Cancel a refund that has not been processed yet. Only some methods support this.
payment-refund-create Refund a payment, in full or in part. `amount` is required — there is no implicit full refund.
payment-refund-list Retrieve a cursor-paginated list of refunds for one payment.
profile-list List every website profile on the organization. With a plain API key (scoped to one profile) this returns just that profile.
refund-list Retrieve a cursor-paginated list of refunds across the whole account (or profile).
subscription-create Start a recurring subscription against a customer that already has a valid mandate (e.g. from a prior `first` payment).
subscription-list Retrieve a cursor-paginated list of subscriptions for one customer.
subscription-list-all Retrieve a cursor-paginated list of subscriptions across the whole account (or profile).
subscription-payment-list Retrieve a cursor-paginated list of payments a subscription has resulted in.
subscription-update Update a subscription's amount, description, interval, schedule or mandate.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying Mollie's real ids.
{
"manifestVersion": "2",
"name": "mollie-example",
"steps": [
{
"id": "customer-get",
"uses": {
"app": "io.w6w.mollie",
"action": "customer-get",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"customerId": "<customerId>"
}
}
]
}customer-get chargeback-list customer-create customer-list customer-payment-create +36 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for Mollie, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to Mollie. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "customer-get",
payload: {
customerId: "<value>",
// testmode: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action customer-get --payload '{"customerId":"<value>"}' Give an AI agent Mollie — without giving it Mollie's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.mollie#customer-get",
"input": {
"customerId": "<customerId>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's Mollie connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
Mollie's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. Mollie itself is MIT, and the runtime that executes it is source-available (FSL).
Mollie declares its own checks, so its health is a property of the app rather than something the host guesses at.
Component status from status.mollie.com's Instatus feed (/api/v2/components.json). Covers the Mollie API, Mollie Connect, Webhook, payment links and hosted checkout components this app depends on; individual local/international payment-method components are reported for context but do not drive the verdict.
Reads the documented RateLimit/RateLimit-Policy structured headers. Mollie's own docs say this feature is rolled out gradually per account — a response with no such header reports `unknown`, not a failure.