KosmoKrator

other

Mollie CLI for AI Agents

Use the Mollie CLI from KosmoKrator to call Mollie tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

9 functions 6 read 3 write Bearer token auth

Mollie CLI Setup

Mollie can be configured headlessly with `kosmokrator integrations:configure mollie`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure mollie --set access_token="$MOLLIE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor mollie --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token MOLLIE_ACCESS_TOKEN Secret secret yes Access Token
url MOLLIE_URL URL url no API Base URL

Call Mollie Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call mollie.mollie_list_payments '{
  "limit": 1,
  "from": "example_from",
  "profileId": "example_profileId"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:mollie mollie_list_payments '{
  "limit": 1,
  "from": "example_from",
  "profileId": "example_profileId"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs mollie --json
kosmo integrations:docs mollie.mollie_list_payments --json
kosmo integrations:schema mollie.mollie_list_payments --json
kosmo integrations:search "Mollie" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Mollie.

mollie.mollie_list_payments

Read read

List payments from Mollie. Returns payment resources with status, amount, and metadata. Use filters like profileId to narrow results.

Parameters
limit, from, profileId

Generic CLI call

kosmo integrations:call mollie.mollie_list_payments '{"limit":1,"from":"example_from","profileId":"example_profileId"}' --json

Provider shortcut

kosmo integrations:mollie mollie_list_payments '{"limit":1,"from":"example_from","profileId":"example_profileId"}' --json

mollie.mollie_get_payment

Read read

Retrieve a single Mollie payment by its ID. Returns the full payment resource with status, amount, and checkout links.

Parameters
id

Generic CLI call

kosmo integrations:call mollie.mollie_get_payment '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:mollie mollie_get_payment '{"id":"example_id"}' --json

mollie.mollie_create_payment

Write write

Create a new Mollie payment. Requires amount (currency and value), description, and a redirectUrl. Returns the payment resource with a checkout link.

Parameters
amount, description, redirectUrl, metadata, method, locale

Generic CLI call

kosmo integrations:call mollie.mollie_create_payment '{"amount":"example_amount","description":"example_description","redirectUrl":"example_redirectUrl","metadata":"example_metadata","method":"example_method","locale":"example_locale"}' --json

Provider shortcut

kosmo integrations:mollie mollie_create_payment '{"amount":"example_amount","description":"example_description","redirectUrl":"example_redirectUrl","metadata":"example_metadata","method":"example_method","locale":"example_locale"}' --json

mollie.mollie_list_customers

Read read

List all customers from Mollie. Returns customer resources with name, email, and metadata.

Parameters
limit, from

Generic CLI call

kosmo integrations:call mollie.mollie_list_customers '{"limit":1,"from":"example_from"}' --json

Provider shortcut

kosmo integrations:mollie mollie_list_customers '{"limit":1,"from":"example_from"}' --json

mollie.mollie_create_customer

Write write

Create a new Mollie customer. Requires name and email. Returns the customer resource with an ID for creating subscriptions.

Parameters
name, email, locale, metadata

Generic CLI call

kosmo integrations:call mollie.mollie_create_customer '{"name":"example_name","email":"example_email","locale":"example_locale","metadata":"example_metadata"}' --json

Provider shortcut

kosmo integrations:mollie mollie_create_customer '{"name":"example_name","email":"example_email","locale":"example_locale","metadata":"example_metadata"}' --json

mollie.mollie_list_subscriptions

Read read

List all subscriptions for a specific Mollie customer. Requires a customer ID (e.g., "cst_abc123"). Returns subscription resources with status, amount, and interval.

Parameters
customer_id, limit, from

Generic CLI call

kosmo integrations:call mollie.mollie_list_subscriptions '{"customer_id":"example_customer_id","limit":1,"from":"example_from"}' --json

Provider shortcut

kosmo integrations:mollie mollie_list_subscriptions '{"customer_id":"example_customer_id","limit":1,"from":"example_from"}' --json

mollie.mollie_create_subscription

Write write

Create a subscription for a Mollie customer. Requires customer ID, amount (currency and value), interval (e.g., "1 month"), and description.

Parameters
customer_id, amount, interval, description, method, webhookUrl, metadata, startDate, times

Generic CLI call

kosmo integrations:call mollie.mollie_create_subscription '{"customer_id":"example_customer_id","amount":"example_amount","interval":"example_interval","description":"example_description","method":"example_method","webhookUrl":"example_webhookUrl","metadata":"example_metadata","startDate":"example_startDate"}' --json

Provider shortcut

kosmo integrations:mollie mollie_create_subscription '{"customer_id":"example_customer_id","amount":"example_amount","interval":"example_interval","description":"example_description","method":"example_method","webhookUrl":"example_webhookUrl","metadata":"example_metadata","startDate":"example_startDate"}' --json

mollie.mollie_list_invoices

Read read

List invoices for the authenticated Mollie account. Supports filtering by year, month, and reference.

Parameters
limit, from, reference, year, month

Generic CLI call

kosmo integrations:call mollie.mollie_list_invoices '{"limit":1,"from":"example_from","reference":"example_reference","year":1,"month":1}' --json

Provider shortcut

kosmo integrations:mollie mollie_list_invoices '{"limit":1,"from":"example_from","reference":"example_reference","year":1,"month":1}' --json

mollie.mollie_get_current_user

Read read

Retrieve the enabled payment methods for the authenticated Mollie account. Returns a list of available payment methods (e.g., iDEAL, credit card, PayPal).

Parameters
none

Generic CLI call

kosmo integrations:call mollie.mollie_get_current_user '{}' --json

Provider shortcut

kosmo integrations:mollie mollie_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

mollie.mollie_list_payments

List payments from Mollie. Returns payment resources with status, amount, and metadata. Use filters like profileId to narrow results.

Operation
Read read
Schema command
kosmo integrations:schema mollie.mollie_list_payments --json
ParameterTypeRequiredDescription
limit integer no Number of payments to return (default: 50, max: 250).
from string no Payment ID to start from for pagination.
profileId string no Filter by profile ID.

mollie.mollie_get_payment

Retrieve a single Mollie payment by its ID. Returns the full payment resource with status, amount, and checkout links.

Operation
Read read
Schema command
kosmo integrations:schema mollie.mollie_get_payment --json
ParameterTypeRequiredDescription
id string yes The payment ID (e.g., "tr_abc123").

mollie.mollie_create_payment

Create a new Mollie payment. Requires amount (currency and value), description, and a redirectUrl. Returns the payment resource with a checkout link.

Operation
Write write
Schema command
kosmo integrations:schema mollie.mollie_create_payment --json
ParameterTypeRequiredDescription
amount object yes Amount object with "currency" (e.g., "EUR") and "value" (e.g., "10.00").
description string yes Description shown to the customer (e.g., "Order #123").
redirectUrl string yes URL to redirect the customer to after payment completion.
metadata object no Custom metadata to attach to the payment.
method string no Payment method (e.g., "ideal", "creditcard", "paypal").
locale string no Locale for the payment screen (e.g., "nl_NL", "en_US").

mollie.mollie_list_customers

List all customers from Mollie. Returns customer resources with name, email, and metadata.

Operation
Read read
Schema command
kosmo integrations:schema mollie.mollie_list_customers --json
ParameterTypeRequiredDescription
limit integer no Number of customers to return (default: 50, max: 250).
from string no Customer ID to start from for pagination.

mollie.mollie_create_customer

Create a new Mollie customer. Requires name and email. Returns the customer resource with an ID for creating subscriptions.

Operation
Write write
Schema command
kosmo integrations:schema mollie.mollie_create_customer --json
ParameterTypeRequiredDescription
name string yes Full name of the customer.
email string yes Email address of the customer.
locale string no Preferred locale (e.g., "nl_NL", "en_US").
metadata object no Custom metadata to attach to the customer.

mollie.mollie_list_subscriptions

List all subscriptions for a specific Mollie customer. Requires a customer ID (e.g., "cst_abc123"). Returns subscription resources with status, amount, and interval.

Operation
Read read
Schema command
kosmo integrations:schema mollie.mollie_list_subscriptions --json
ParameterTypeRequiredDescription
customer_id string yes The customer ID (e.g., "cst_abc123").
limit integer no Number of subscriptions to return (default: 50, max: 250).
from string no Subscription ID to start from for pagination.

mollie.mollie_create_subscription

Create a subscription for a Mollie customer. Requires customer ID, amount (currency and value), interval (e.g., "1 month"), and description.

Operation
Write write
Schema command
kosmo integrations:schema mollie.mollie_create_subscription --json
ParameterTypeRequiredDescription
customer_id string yes The customer ID (e.g., "cst_abc123").
amount object yes Amount object with "currency" (e.g., "EUR") and "value" (e.g., "9.99").
interval string yes Billing interval (e.g., "1 month", "1 year", "2 weeks").
description string yes Description of the subscription shown to the customer.
method string no Payment method (e.g., "ideal", "creditcard").
webhookUrl string no URL to receive webhook notifications for subscription events.
metadata object no Custom metadata to attach to the subscription.
startDate string no Start date for the subscription (ISO 8601, e.g., "2026-05-01").
times integer no Number of billing cycles. Omit for indefinite.

mollie.mollie_list_invoices

List invoices for the authenticated Mollie account. Supports filtering by year, month, and reference.

Operation
Read read
Schema command
kosmo integrations:schema mollie.mollie_list_invoices --json
ParameterTypeRequiredDescription
limit integer no Number of invoices to return (default: 50, max: 250).
from string no Invoice ID to start from for pagination.
reference string no Filter by invoice reference.
year integer no Filter by year (e.g., 2026).
month integer no Filter by month (1-12).

mollie.mollie_get_current_user

Retrieve the enabled payment methods for the authenticated Mollie account. Returns a list of available payment methods (e.g., iDEAL, credit card, PayPal).

Operation
Read read
Schema command
kosmo integrations:schema mollie.mollie_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.