Integrations · Payments and billing
Klarna
Lets the concierge read a Klarna order to see its payment status and what has been captured or refunded, and issue a refund on it.
Specified, built on request. This is what the Klarna connection does, written from Klarna’s own developer documentation. We build and test it with the first customer who asks. Ask for it.
What we ask of you
You generate a Klarna API key in your Klarna Partner Portal and give us the downloaded credentials (the username and the API key), and tell us which region your Klarna account is in. We never ask for your portal login.
- Sign in to the Klarna Partner Portal (formerly the Merchant Portal).
- Open 'Settings' and go to the 'Klarna API keys' section.
- Click 'Generate new Klarna API key'.
- Download the key immediately. It can only be accessed once.
- Send Usher the username (a UUID) and the API key from the downloaded file, and tell us whether your Klarna account is for Europe, North America or Oceania.
We never ask for a password or an owner’s login.
The permissions it needs
| Permission | What it is for | Access |
|---|---|---|
Klarna API key (no per-permission scopes) | Klarna API credentials are tied to the merchant ID and are not divided into read and write permissions, so the same key that reads an order can also refund, capture or cancel it. Usher would only call the read-order and refund operations. | Can change |
What it can do
- Read an order (payment status, amounts captured and refunded)Needs the Klarna order ID, usually stored on the order in the shop platform. The response includes the order status, order amount, captured amount, refunded amount, captures and refunds.Reads
- Issue a refundThe description is shown to the customer (maximum 255 characters).Changes something
- Check a refundReads
Anything that changes something is off until you switch it on, and stays inside the limits you set.
What it cannot do
- Look up a customer's Klarna orders by email address: the Order Management API reads one order by its order ID.
- Restrict the key to read-only or refund-only: Klarna API keys are not scoped.
- Use this route if Klarna is provided through another payment provider (for example Stripe or Adyen). Klarna's guides say merchants whose Klarna payments are handled by an acquiring partner should not generate Klarna API credentials; refunds then go through that provider.
- Use one key for both test and live: credentials are specific to either Production or Test.
Limits and requirements
- Regional base URLs. Live: https://api.klarna.com/ (Europe), https://api-na.klarna.com/ (North America), https://api-oc.klarna.com/ (Oceania). Test (playground): https://api.playground.klarna.com/, https://api-na.playground.klarna.com/, https://api-oc.playground.klarna.com/. The key must be used against the region of the merchant's account.
- Authentication is 'Authorization: Basic' with the API key, or username (UUID) and API key for clients that need a username and password. API key format: klarna_<live|test>_api_<random>.
- Credentials that have been inactive for two months are disabled, and deleted after ten months of inactivity.
- Connections must use TLS 1.2 with SNI.
- A refund amount is in minor units, maximum 200000000 per request; a refund request may carry at most 1000 order lines.
Your customers’ data
Customer name, email address, phone number, billing and shipping address; order lines, amounts, and capture and refund history.
Klarna is a trademark of its owner. Usher is not affiliated with or endorsed by Klarna. Details are taken from its public developer documentation and may change; we confirm them when we build the connection.