Implement the recommended access solution featuring two entry points: deep linking from your portal and an AP button on Klarna's login page. This complete package provides secure, passwordless access with the best user experience.
The recommended approach for granting access to Klarna Partner Portal combines two entry points that work together as a complete solution:
| Entry Point | Description | Use Case |
|---|---|---|
| From Acquiring Portal | A button or link in your Partner-facing admin portal that uses the Deep Link API to provision access and redirect Partners directly to Klarna Portal. | Partners already logged into your portal who want to access Klarna features. |
| From Klarna Portal login | A button on Klarna Portal's login page that redirects Partners to your authentication system, then provisions access via Deep Link API. | Partners starting their journey from Klarna Portal or bookmarking Klarna Portal directly. |
Both entry points use the same Deep Link API and JWT signing mechanism. You only need to implement the JWT generation once to enable both entry points.
Before implementing this solution, ensure you have completed the common prerequisites.
Additionally, you will need:
Important: This method requires JWT signing with a client certificate. If you haven't completed the JWT setup yet, follow the JWT signing setup in the Overview page first.
Follow these steps to implement both entry points:
After completing the JWT signing setup, create your JWT with the following structure:
Sample header
{
"alg": "ES256",
"typ": "JWT",
"x5c": ["<your_cert_base64>"]
}
Sample payload
{
"amr": ["pwd"],
"iss": "krn:partner:global:account:live:LYABCDEI",
"jti": "a4728c02-9885-41bf-b539-251ffa7f7eaa",
"sub": "portal.user@merchant.com",
"iat": 1716768000,
"exp": 1716892720,
"account_id": "krn:partner:global:account:test:MB6KIE1P",
"on_behalf_of": "krn:partner:global:account:test:MB6KIE1P",
"roles": ["merchant:admin"]
}
Note: The amr (authentication methods reference) field is required for deep linking. Use ["pwd"] to indicate password authentication is implemented on your side.
See the full JWT parameter documentation here
This entry point allows Partners to access Klarna Portal directly from your Partner-facing admin portal.

Deep links are created using a POST request to createDeepLink
Request payload:
{
"jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.<....>SMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
On success, the endpoint responds with 200 OK, returning a JSON payload that includes a url property to use as the deep link.
Important characteristics:
Only request deep links when the Partner explicitly wants to enter Klarna Portal. Deep links may only be generated for accounts onboarded via your services.
Deep link access can be revoked at any time between its creation and session expiration (8 hours after generation).
Make a DELETE request using deleteDeepLink
{partner_account_id}: The Partner Account ID for which the deep link was created{deep_link_id}: The unique identifier received when creating the deep linkWhen a deep link is revoked, the user will lose access to the Partner Account after, at most, 5 minutes.
This entry point displays a "Continue with [Acquiring Partner]" button on Klarna Portal's home screen. When Partners click this button, they are redirected to your authentication system.
deeplink_session_tokendeeplink_session_tokenCreate a publicly accessible URL where Partners can authenticate and receive Klarna Portal access. This URL should:
deeplink_session_token query parameter added by KlarnaSample URL format:
https://partner.example.com/login?source=klarna&deeplink_session_token=eyJhbGciOiJIUzUxMiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIzNTQ2N2RlZi1iYzRj
Provide this URL to your designated Klarna technical point of contact. Klarna will configure it in the "Continue with [Acquiring Partner]" button.
Upon successful authentication:
deeplink_session_token from the query parametersdeeplink_session_token from KlarnaFollowing these steps will enable the "Continue with [Acquiring Partner]" button on Klarna Portal's login screen and ensure a secure and streamlined login experience for Partners.
If you cannot implement signed JWT deep linking due to technical constraints, unsigned deep linking is available as a fallback.
Not Recommended: This approach requires users to set up a password when accessing Klarna Portal, adding an additional step that degrades user experience. Only use this if signed deep linking cannot be implemented.
With unsigned deep linking:
For unsigned deep linking parameters, see createDeepLink