Integration · Payments and finance
AI agents for Klarna
Take Klarna payments through a hosted payment page you can send to a customer, then manage the orders.
- Actions
- 10
- Read
- 4
- Write
- 6
Actions
What your agents can do in Klarna
Take Klarna payments through a hosted payment page you can send to a customer, then manage the orders: read, capture, refund or cancel them, and list Klarna payouts and the transactions in each, live or in the playground.
Read 4
Look things up. Nothing changes.
Get a hosted payment page
Reads a hosted payment page's status — WAITING, IN_PROGRESS, COMPLETED, CANCELLED, FAILED, DISABLED or ERROR — and, once paid, the Klarna order_id to capture or refund.
Get an order
Reads a Klarna order by its order ID: status (AUTHORIZED, PART_CAPTURED, CAPTURED, CANCELLED, EXPIRED, CLOSED), fraud_status, the order, captured.
List payouts
Lists Klarna's payouts to your bank account, newest first, optionally between two dates or in one currency.
List payout transactions
Lists the transactions (sales, captures, refunds, fees) settled in one payout, or every settled transaction of one order.
Write 6
Create, change or send.
Create a payment session
Starts a Klarna payment for an order: purchase country and currency, total and tax in minor units (1000 = 10.00), and the order lines that add up to the total.
Create a hosted payment page
Makes a Klarna-hosted payment page for a payment session from Create a payment session, with the pages to return to after success, cancel or failure.
Send a payment page link
Has Klarna send the link to a hosted payment page to the customer by email or text message.
Capture an order
Captures all or part of an authorized order, in minor units, usually when it ships: Klarna then charges the customer and pays you.
Refund an orderDeletes data
Refunds all or part of the captured amount of an order, in minor units, with an optional description shown to the customer and your reference.
Cancel an orderDeletes data
Cancels an authorized order that has not been captured, releasing the customer's authorization.
A person can approve first
Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything. Actions that delete data ask first by default.
Connection
How it connects
Connect it once in the console, then give it to the agents and workflows that need it.
Enter the API credentials from your Klarna account.
What you enter
- Username (UID)
- Password (API key)
Settings
- Region
- Environment
Kept safe
- Credentials are stored encrypted with your organization's own keys.
- They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
- Calls go only to the tool's own servers.
Ideas
Ideas to start with
Starting points made only from the actions above. Mix them with any other tool your agents can use.
- 01
Ask about your Klarna data
Ask a question in plain words. The agent can get a hosted payment page, get an order or list payouts in Klarna, then answers with what it found.
- 02
Let an agent update Klarna
Have the agent create a payment session or create a hosted payment page in Klarna as part of a larger task. Turn on approval and a person signs off on each change first.
- 03
Share what it finds in Slack
Give one agent Klarna and Slack: it can get a hosted payment page in Klarna and post a summary to a Slack channel in the same run.
FAQ
Klarna and MyDeepAgents
Can MyDeepAgents connect to Klarna?
Yes. The Klarna connector has 10 actions: 4 read and 6 make changes. Your agents can call them as tools, and your workflows can run them as steps.
How do I connect Klarna?
Enter the API credentials from your Klarna account. You'll need: Username (UID) and Password (API key). The connection also asks for: Region and Environment. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.
Can an agent change data in Klarna without asking?
Only if you let it. Each of the 6 actions that change data can be set to wait for a person's approval before it runs, and the 2 that delete data ask first by default.
Can I use Klarna in workflows as well as agents?
Yes. Every Klarna action also works as a step in a workflow, and the same connection serves your agents and your workflows.
Early access
Put Klarna to work
Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.