Connectors / Finance · HTTP Connector
Klarna integration and API
Create a session, update order lines and create a capture in Klarna. Connect Klarna to the rest of your finance stack with Tray.ai.
What can you do with Klarna on Tray.ai?
Klarna is a payments provider that lets online and in-store shoppers pay now or later in installments, with merchant tools for orders, refunds and payouts. Tray.ai connects to Klarna through the HTTP Connector, so your workflows can call the Klarna API alongside the rest of your stack. API access comes through Klarna's partner program or API plan, so you need approved credentials first.
- Create a capture when your warehouse system marks an order as shipped.
- Create a refund when a return is approved in your help desk.
- List payouts and reconcile them in your accounting system.
- Add shipping info with the tracking number from your shipping platform.
- Connects through
- HTTP Connector
- Authentication
- Basic authentication
- Base URL
- https://api.klarna.com
Set it up
Connect Klarna to Tray.ai
Each step uses Klarna's own API details, from its documentation.
Save Klarna's username and password
Ask Klarna for API access. Once it's approved, save the credentials Klarna gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.klarna.com as the base URL. Or paste a cURL example from Klarna's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “Read a session”
It's one of 15 documented actions, under Payment sessions. The response comes back as data the next step can map into your other apps.
Hand it to an AI agent
Wrap “Create a session” and “Update a session” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.
Workflows to build with Klarna
Connect Klarna with Shopify, Zendesk and NetSuite
Each one uses actions and events from Klarna's own API documentation.
Capture Klarna orders when Shopify orders ship
When
An order is fulfilled in Shopify
Then
- Create a capture for the order
- Add shipping info with the tracking number
With Shopify
Refund Klarna orders from approved Zendesk requests
When
A refund request is approved in Zendesk
Then
- Create a refund
- Read a refund to confirm it
- Add a note to the ticket in Zendesk
With Zendesk
Record Klarna payouts in NetSuite
When
On a schedule
Then
- List payouts
- List transactions for each payout
- Create a deposit in NetSuite
With NetSuite
Apps you can build on Klarna data
Internal tools your team can build with an AI assistant, each one using Klarna calls from its API documentation.
Order capture desk
Looks up an order and lets the warehouse team capture it and add shipping info.
Refund and cancel desk
Finds an order and lets support refund it or cancel it before shipping.
Payout reconciliation report
Lists payouts and their transactions so finance can match them to orders.
Give your AI agents Klarna tools
Build an MCP server on Klarna in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- Create a session
- Read an order
- List captures
- Create a refund
- List payouts
- Read a session
- Update a session
- Update order lines
What the Klarna API covers
5 resources and 15 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Klarna gives API access on request, so approved credentials come first. Connecting it takes a few clicks: here's how.
Payment sessions
- Create a session
- Read a session
- Update a session
Orders
- Read an order
- Update order lines
- Release an authorization
- Cancel an order
Captures
- List captures
- Create a capture
- Add shipping info
Refunds
- Create a refund
- Read a refund
Settlements
- List payouts
- List transactions
- Download a payouts summary
Checked against Klarna's own documentation on 2026-10-26
How Tray.ai makes this work
Klarna plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in Klarna, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose Klarna actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on Klarna data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore finance apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every finance connector →
Frequently asked questions
What can a Tray.ai workflow do in Klarna?
The Klarna API documents 15 actions across 5 resources (Payment sessions, Orders, Captures, Refunds, Settlements). For example: Create a session; Read an order; List captures. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Klarna?
The Klarna API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Do I need special access to the Klarna API?
Yes. Klarna gives API access on request, so you need approved credentials before a Tray.ai workflow can call it.
See Klarna working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.