Explore alternative methods for granting Partners access to Klarna Partner Portal when the recommended Deep Link + AP Button approach cannot be implemented due to technical or business constraints.
API-based access for creating and managing semi-permanent user accounts in Klarna Partner Portal. Users receive invitation emails and set up their own passwords.
For Acquiring Partners without an admin portal or when Partners need to request access through a manual process.
Identity Provider (IdP) via SAML
Delegates authentication to your system using SAML v2.0 protocol. You become the Identity Provider, and Klarna acts as the Service Provider.
For Acquiring Partners with advanced technical capabilities to implement SAML IdP, providing seamless single sign-on experience.
These methods are alternatives to the recommended approach. They may require additional technical implementation or result in less seamless user experience. Discuss with your Klarna representative before choosing an alternative method.
The JWT uses payload version: 2. Grant access through the accesses array (up to 100 entries) and set a single top-level on_behalf_of for the whole request.
Claim
Description
version
Required. Payload version. Set to 2.
on_behalf_of
Required. The Partner Account the user represents in Klarna Partner Portal. For a Partner accessing its own account, use that same Partner Account ID. When you act as an Acquiring Partner on behalf of the Partner Accounts you manage, use your own Partner Account ID.
accesses
Required. List of access entries (1–100) to grant in a single request.
accesses[].partner_account_id
Required. The Partner Account the user gets access to.
accesses[].roles
Required. The roles to assign for that Partner Account.
accesses[].access_policy_id
Optional. An access policy that narrows which Payment Accounts the user can see within that Partner Account. It must belong to the entry's partner_account_id.
Granting access to multiple Partner Accounts: Add one entry to accesses per Partner Account to grant a user access to several Partner Accounts in a single request. Use access_policy_id on an entry to restrict visibility to a subset of that Partner Account's Payment Accounts; an access policy can only narrow access, never widen it.
On success, the endpoint responds with 204 No Content and dispatches an invitation email to the specified address. If that address is already registered, no new email will be sent.
You can define the level of access granted to the user by setting the roles array within each entry of the accesses array in the JWT payload.
What happens next:
1.
Klarna creates a Portal user for the supplied email (sub in JWT)
2.
Klarna gives the user access to each Partner Account listed in accesses
3.
Klarna sends an invitation email containing an activation link
User access can be deleted at any time. Make a DELETE request to deleteUserAccess endpoint, with optional query parameters:
Parameter
Description
account_id
The Partner Account ID of the access to delete
on_behalf_of
When specified, only the specific access with this on_behalf_of value will be deleted
principal
The ID or email of the user to delete the access from
Warning: If no parameters are supplied, all user access created by you will be deleted.
If both account_id and principal parameters are provided, they are combined to precisely target and delete the user's access to the specified Partner account.
Deleting a user's access always removes all of the user's access along with all associated access policies. Deletion cannot be scoped to individual access policies.
When user access is revoked, the user's access to the Partner account will be removed within 5 minutes.
An Identity Provider (IdP) is a system that authenticates users and authorizes their access to applications and services. In this setup, you act as the IdP and Klarna acts as the Service Provider (SP).
Initiate authentication from Klarna Partner Portal
2.
Verify authentication redirects to your IdP
3.
Complete authentication at your IdP
4.
Verify successful redirect back to Klarna Partner Portal
5.
Confirm appropriate access based on roles
The SAML IdP solution requires coordination with Klarna for configuration. If you are interested in proceeding with this option for Klarna Partner Portal access, please reach out to your Klarna representative to discuss further.