Use the Adyen CLI from KosmoKrator to call Adyen tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Adyen can be configured headlessly with `kosmokrator integrations:configure adyen`.
# 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 adyen --set api_key="$ADYEN_API_KEY" --set merchant_account="$ADYEN_MERCHANT_ACCOUNT" --enable --read allow --write ask --jsonkosmokrator integrations:doctor adyen --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
api_key
ADYEN_API_KEY
Secret secret
yes
API Key
merchant_account
ADYEN_MERCHANT_ACCOUNT
Text text
yes
Merchant Account
url
ADYEN_URL
URL url
no
API Base URL
Call Adyen Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Adyen.
adyen.adyen_capture_payment
Write write
Capture a previously authorized Adyen payment. Requires the PSP reference of the original payment and the amount to capture (value in minor units + currency). The merchant account is automatically injected.
Verify Adyen API connectivity and retrieve current merchant account information. Useful as a health check to confirm the integration is properly configured.
List stores for the configured Adyen merchant account. Returns store details including store codes, names, and addresses. The merchant account is automatically injected.
List transactions from the Adyen transaction feed. Returns a paginated list of transactions for the merchant account. Use page and size parameters to control pagination.
Initiate a payment through Adyen. Requires amount (value in minor units + currency) and payment method. The merchant account is automatically injected from the integration configuration. Returns the payment result including PSP reference.
Refund an Adyen payment (full or partial). Requires the PSP reference of the original payment and the amount to refund (value in minor units + currency). The merchant account is automatically injected.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
adyen.adyen_capture_payment
Capture a previously authorized Adyen payment. Requires the PSP reference of the original payment and the amount to capture (value in minor units + currency). The merchant account is automatically injected.
The PSP reference of the authorized payment to capture.
amount
object
yes
Capture amount object with "value" (in minor units, e.g., "1000" for €10.00) and "currency" (e.g., "EUR"). Example: {"value": "1000", "currency": "EUR"}.
adyen.adyen_get_current_merchant
Get current merchant account information from Adyen. Verifies API connectivity and returns available payment methods for the merchant account.
Verify Adyen API connectivity and retrieve current merchant account information. Useful as a health check to confirm the integration is properly configured.
The PSP reference of the transaction to retrieve (e.g., "8535296650153317").
adyen.adyen_list_stores
List stores for the configured Adyen merchant account. Returns store details including store codes, names, and addresses. The merchant account is automatically injected.
Cursor for pagination — pass the value from a previous response to get the next page.
adyen.adyen_list_transactions
List transactions from the Adyen transaction feed. Returns a paginated list of transactions for the merchant account. Use page and size parameters to control pagination.
Initiate a payment through Adyen. Requires amount (value in minor units + currency) and payment method. The merchant account is automatically injected from the integration configuration. Returns the payment result including PSP reference.
Payment amount object with "value" (in minor units, e.g., "1000" for €10.00) and "currency" (e.g., "EUR", "USD"). Example: {"value": "1000", "currency": "EUR"}.
A custom reference for this payment (e.g., an order number).
return_url
string
no
URL to redirect the shopper back to after payment completion.
shopper_reference
string
no
Unique identifier for the shopper (for recurring payments).
shopper_email
string
no
Shopper email address.
adyen.adyen_refund_payment
Refund an Adyen payment (full or partial). Requires the PSP reference of the original payment and the amount to refund (value in minor units + currency). The merchant account is automatically injected.
Refund amount object with "value" (in minor units, e.g., "1000" for €10.00) and "currency" (e.g., "EUR"). Example: {"value": "1000", "currency": "EUR"}.
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.