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 grants a user access to a single Partner Account per request.
Claim
Description
iss
Required. Partner Account ID of the requesting partner.
jti
Required. A unique token ID (a UUID is recommended).
sub
Required. Email of the user to give access to.
iat
Required. Time the token was issued, in seconds since the Unix epoch (UTC).
exp
Required. Expiration time (UTC). Must be no more than 60 seconds after iat.
account_id
Required. The Partner Account the user gets access to.
on_behalf_of
Optional. The Partner Account the user represents in Klarna Partner Portal. If omitted, defaults to account_id. When you act as an Acquiring Partner on behalf of a Partner Account you manage, use your own Partner Account ID.
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 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 the Partner Account specified in account_id
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.
The multi-account version: 2 payload isn't available yet. You can't use it in the test environment or in production today — it's planned for a future release. When released, a single createUserAccess request will grant a user access to one or more Partner Accounts (1–100) through an accesses array, with an optional access policy per entry.
This upcoming flow uses JWT payload version: 2 with a single top-level on_behalf_of and an accesses array, instead of the flat account_id and top-level roles claims used by the live flow above.
Required. The Partner Account the user represents in Klarna Partner Portal.
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. All entries must consistently include or omit this field.
accesses[].expires_at
Optional. Expiration date for the entry, in YYYY-MM-DD format. Must be a future date.
accesses[].inactivity_grace_period
Optional. ISO 8601 duration for how long the access remains valid after user inactivity. Must be between 1 day and 6 months.
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.