Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Klarna Payments API

The Payments API from Klarna — 5 operation(s) for payments.

Klarna Payments API is one of 21 APIs that Klarna publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Payments. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 6 operations across 5 paths, and defines 22 schemas. It is described by OpenAPI 3.0.0, at version 1.1.

Requests are made against a single base URL, https://api.klarna.com.

6 operations 5 paths 22 schemas 1 DELETE1 GET4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
1.1
Base URL
https://api.klarna.com
License
Klarna Bank AB
Resource Areas
1

Paths & Operations 6

Across 5 paths, the API surfaces 6 operations — 1 DELETE, 1 GET, 4 POST. Each is listed below with its method, path, parameters, and response codes.

Payments 6
POST
/payments/v1/sessions
Create a session
createCreditSession body → 200400403
POST
/payments/v1/sessions/{session_id}
Update a session
updateCreditSession 1 param body → 204400403404
GET
/payments/v1/sessions/{session_id}
Get details about a session
readCreditSession 1 param → 200403404
DELETE
/payments/v1/authorizations/{authorizationToken}
Cancel an authorization
cancelAuthorization 1 param → 204403404
POST
/payments/v1/authorizations/{authorizationToken}/order
Create an order
createOrder 1 param body → 200400403404409
POST
/payments/v1/authorizations/{authorizationToken}/customer-token
Generate a customer token
purchaseToken 1 param body → 200400403404409

Schemas 22

The contract defines 22 schemas that model the data the API accepts and returns. The most detailed are session_create (24 properties), session_read (24 properties), session (24 properties), create_order_request (18 properties). Each schema is shown below with its type and property counts.

customer
object
9 properties
attachment
object
2 properties 2 required
customer_token_creation_response
object
5 properties 1 required
ErrorV2
object
3 properties
product_identifiers
object
6 properties
create_order_request
object
18 properties 4 required
merchant_urls
object
4 properties
subscription
object
3 properties 3 required
customer_read
object
7 properties
customer_token_creation_request
object
7 properties 5 required
options
object
5 properties
payment_method_category
object
3 properties
order
object
4 properties 1 required
asset_urls
object
2 properties
merchant_session
object
3 properties 2 required
order_line
object
15 properties 4 required
session
object
24 properties
authorized_payment_method
object
3 properties 1 required
customer_read_create_token
object
2 properties
session_read
object
24 properties
address
object
13 properties
session_create
object
24 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

klarna-payments-api-openapi.yml Raw ↑

Other APIs Klarna publishes across the network.

Klarna Checkout API
Klarna Order Management API
Klarna Customer Token API
Klarna Settlements API
Klarna Push Notifications
Klarna Captures API
Klarna Checkout API
Klarna Customer Token API
Klarna Hpp API
Klarna Merchant Urls.address Update API
Klarna Merchant Urls.country Change API
Klarna Merchant Urls.shipping Option Update API