Articles in this section

Set up a connection to Klarna

Klarna is a leading global payment and shopping service platform that offers flexible payment options and seamless checkout experiences for online shoppers.

Set up a connection

After you start the connection, configure it in the Create connection panel and complete all of the required * authentication settings: 

Setting Instructions
Name your connection * Enter a clear and distinguishable name.
Throughout integrator.io imports and exports, you will have the option to choose this new connection. A unique identifier will prove helpful later when selecting it from a list of the connections in your account.
API type * Choose your Klarna account API type:
  • Purchase services: Get payments, hosted payments, and check out details
  • Post-purchase services: Get order management and merchant card service details
  • Post-purchase shipping assistant services: Get shipping service callback details
  • Post-purchase dispute services: Get customer dispute details
Environment * Select your Klarna account environment type:
  • Playground: if your account URL is https://api.playground.klarna.com
  • Production: if your account URL is https://api.klarna.com
Region * Enter your Klarna account region.
Auth type: Basic (applicable for all API types)
Username * Enter your Klarna username.

Fetch data How to retrieve the username

Password * Enter your Klarna password.

Multiple layers of protection, including AES 256 encryption, are in place to keep your password safe. When editing this connection, you must re-enter this value each time; it is stored only when the connection is saved and never displayed as text.

Fetch data How to retrieve the password

Auth type: OAuth 2.0 (applicable only for Post-purchase dispute services API type)
OAuth 2.0 client *  Select the OAuth 2.0 client that stores the client ID and client secret provided by Klarna.

To add an OAuth 2.0 client and configure your credentials, click the plus (+) button. Click the edit ( ) button to modify a selected OAuth 2.0 client. For more information, see Create an OAuth 2.0 iClient resource.

Auth type: Token (applicable only for Post-purchase shipping assistant services API type)
Token *

Enter your Klarna API token.
Multiple layers of protection, including AES 256 encryption, are in place to keep your token safe. When editing this connection, you must re-enter this value each time; it is stored only when the connection is saved and never displayed as text.

The following sections show the API types and their specific settings:

API type Setting Instructions
Purchase services Session ID *

Enter your session ID that has been created when a payment is initiated. For example, the session ID format will be like this: https://api.klarna.com/hpp
/v1/sessions/<session_id>

Post-purchase shipping assistant services Shipment ID * Enter your Klarna order shipment ID.
Post-purchase dispute services (OAuth 2.0 auth type)   Subdomain * Select your Klarna account region.
Post-purchase dispute services (OAuth 2.0 auth type)   Scopes *

Scopes are OAuth 2.0 permissions that Klarna defines to limit access to your account.

Tip: This connector documentation describes only the settings shown for the Basic, Token, and OAuth 2.0 auth view respectively. For the corresponding HTTP settings, see basic, token, and OAuth 2.0 universal connector respective documentation.

How to retrieve the username and password

To retrieve username and password:

  1. Sign in to your Klarna account. 
  2. Navigate to Payment settings > Klarna API credentials.
  3. Click + Generate new Klarna API credentials.
  4. Click Create credentials.
  5. Copy the Username.
  6. Copy the Password.

Additional references

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.