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
- OpenAPI
- Specification ↗
- Spec updated
- 2023-03-25
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://api.klarna.com/payments/v1/sessions/SESSION_ID" \
-H "Accept: application/json"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);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
| Method | Path | What it does |
|---|---|---|
| DELETE | /payments/v1/authorizations/{authorizationToken} | Cancel an existing authorization |
| POST | /payments/v1/authorizations/{authorizationToken}/customer-token | Generate a consumer token |
| POST | /payments/v1/authorizations/{authorizationToken}/order | Create a new order |
| POST | /payments/v1/sessions | Create 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.
Similar finance APIs
Compare alternatives →Stripe
FinancePayment processing, subscriptions, and financial management
SEC EDGAR Data
FinanceAPI to access annual reports of public US companies
Plaid
FinanceConnect with user's bank accounts and access transaction data
Fed Treasury
FinanceU.S. Department of the Treasury Data
Razorpay IFSC
FinanceIndian Financial Systems Code (Bank Branch Codes)
Klarna
FinanceKlarna payment and shopping service
Listed from APIs.guru (CC0).