Klarna

Klarna Payments API V1

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…

Finance & banking#openapi#financial

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

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.

Read more on Klarna payments.

Endpoints 6

orders

  • DELETECancel an existing authorization/payments/v1/authorizations/:authorizationTokenUse this API call to cancel/release an authorization. If the authorization_token received during a Klarna Payments won’t be used to place an order immediately…
  • POSTGenerate a consumer token/payments/v1/authorizations/:authorizationToken/customer-tokenUse this API call to create a Klarna Customer Token.<br/>After having obtained an authorization_token for a successful authorization, this can be used to…
  • POSTCreate a new order/payments/v1/authorizations/:authorizationToken/orderUse this API call to create a new order. Placing an order towards Klarna means that the Klarna Payments session will be closed and that an order will be…

sessions

  • POSTCreate a new payment session/payments/v1/sessionsUse this API call to create a Klarna Payments session.<br/>When a session is created you will receive the available payment_method_categories for the session,…
  • GETRead an existing payment session/payments/v1/sessions/:session_idUse this API call to read a Klarna Payments session. You can read the Klarna Payments session at any time after it has been created, to get information about…
  • POSTUpdate an existing payment session/payments/v1/sessions/:session_idUse this API call to update a Klarna Payments session with new details, in case something in the order has changed and the checkout has been reloaded.…

API details

Base URL
https://api.klarna.com
Authentication
None declared in the description
Operations
6 operations on 5 pathsPOST 4GET 1DELETE 1
Main resources
orders 3sessions 3
Response formats
application/json
Description format
OpenAPI 3.0.0, API version 1.0.0
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Klarna Payments API V1 in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Klarna Payments API V1 collection, without the publisher's secrets.
  3. Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
  4. Send a requestPick an endpoint, for example “Cancel an existing authorization” (DELETE /payments/v1/authorizations/:authorizationToken), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Klarna Payments API V1?

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… It is listed under Finance & banking and has 6 endpoints.

Who publishes the Klarna Payments API V1?

It is listed from Klarna's public API description (an OpenAPI document), not published by Klarna on Swastik Codes. Anyone who controls klarna.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Klarna Payments API V1?

Requests go to https://api.klarna.com. Endpoint paths are added to this base URL.

How do I authenticate with the Klarna Payments API V1?

Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.

How many endpoints does the Klarna Payments API V1 have?

6 operations on 5 paths (4 POST, 1 GET, 1 DELETE). The largest groups are orders, sessions.

Is forking the Klarna Payments API V1 free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.