Skip to content

Klarna Payments API V1 API

by klarna.com

No authHTTPSFinance
Open documentation ↗

Overview

The payments API is used to create a session to offer Klarna's payment methods as part of your checkout. As soon as the purchase is completed the order should be read and handled using the [`Order Management API`](https://docs.klarna.com/api/ordermanagement). Read more on [Klarna payments](https://docs.klarna.com/klarna-payments/).

Klarna Payments API V1 is a finance API from klarna.com. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 6 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Finance
Base URL
https://api.klarna.com
Version
1.0.0
Endpoints
6
Spec updated
2023-03-25

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.klarna.com/payments/v1/sessions/SESSION_ID" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://api.klarna.com/payments/v1/sessions/SESSION_ID", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.klarna.com/payments/v1/sessions/SESSION_ID",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
DELETE/payments/v1/authorizations/{authorizationToken}Cancel an existing authorization
POST/payments/v1/authorizations/{authorizationToken}/customer-tokenGenerate a consumer token
POST/payments/v1/authorizations/{authorizationToken}/orderCreate a new order
POST/payments/v1/sessionsCreate a new payment session
GET/payments/v1/sessions/{session_id}Read an existing payment session
POST/payments/v1/sessions/{session_id}Update an existing payment session

Questions

Does the Klarna Payments API V1 API need an API key?

No. The Klarna Payments API V1 API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the Klarna Payments API V1 API support HTTPS?

Yes, the Klarna Payments API V1 API is served over HTTPS.

How many endpoints does the Klarna Payments API V1 API have?

Its OpenAPI description lists 6 endpoints in version 1.0.0. All of them are shown on this page.

What are alternatives to the Klarna Payments API V1 API?

Other Finance APIs include Stripe, SEC EDGAR Data, Plaid, Fed Treasury, Razorpay IFSC.

Compare alternatives →

Listed from APIs.guru (CC0).