How to Connect Klarna to an AI Agent
Auth setup
1. Log into Klarna Merchant Portal. 2. Go to Settings > API credentials. 3. Use as Basic auth (username:password).
Key facts
| Base URL | https://api.klarna.com/ |
| API version | v1 |
| Auth | API key (username:password) as Basic auth. Obtain from Klarna Merchant Portal. |
| Request body | application/json |
| Pagination | offset-based where applicable. |
| Rate limit | Not published. Contact Klarna for high-volume needs. |
| Error format | JSON: {"error_code":"...","error_messages":["..."],"correlation_id":"..."} |
Key endpoints
| Method | Path | Description |
POST | /payments/v1/sessions | Create payment session |
POST | /payments/v1/authorizations/{token}/order | Create order |
GET | /ordermanagement/v1/orders/{id} | Get order details |
POST | /ordermanagement/v1/orders/{id}/captures | Capture order |
Quickstart
POST /payments/v1/sessions
Authorization: Basic {base64(username:password)}
Content-Type: application/json
{"purchase_country":"US","purchase_currency":"USD","order_amount":10000,"order_lines":[...]}
Agent pitfalls & tips
- Amounts in minor units (cents): 10000 = $100.00.
- Playground (sandbox) uses different base URL โ api.playground.klarna.com.
- Order flow: create session โ authorize โ capture.
- Region-specific: US, EU, and APAC have different base URLs.
- BNPL options (Pay Later, Slice It) depend on market availability.
Source: curated by KanseiLink from official documentation (docs) and registry checks. Last reviewed: 2026-04-07. Specs change โ verify against the official docs before production use.
Frequently Asked Questions
What is Klarna's AEO score?
โผ
Klarna has an AEO score of 0.60 and is rated BBB (Basic agent connectivity available). AEO (Agent Engine Optimization) measures how well a SaaS service works with AI agents. Scores range from 0.00 to 1.00, with grades from AAA (best) to D (not agent-ready).
Is Klarna AI-agent-ready?
โผ
Klarna is currently connectable for AI agent use. API access is available but no dedicated MCP server has been published yet. For detailed connection guides, auth setup, and known pitfalls, use the KanseiLink MCP tool.
How does Klarna compare to other Payment services?
โผ
In the Payment category, Klarna is rated BBB. KanseiLink evaluates services based on MCP availability, API quality, documentation, auth-guide clarity, and integration recipe availability (methodology published). Visit the full rankings at kansei-link.com to see how Klarna compares.
How can I integrate Klarna with an AI agent?
โผ
The fastest way to integrate Klarna with an AI agent is through KanseiLink MCP. Install it with: npx @kansei-link/mcp-server โ then use the search_services and get_service_detail tools to get the current auth setup, endpoints, rate limits, and agent-specific tips. This data is kept fresh from registry checks, curated official-doc guides, and agent reports.
How do I authenticate with Klarna?
โผ
API key (username:password) as Basic auth. Obtain from Klarna Merchant Portal. Setup: 1. Log into Klarna Merchant Portal. 2. Go to Settings > API credentials. 3. Use as Basic auth (username:password).
What are Klarna's API rate limits?
โผ
Not published. Contact Klarna for high-volume needs.