Authentication
All requests made to the XS2A API have to be authenticated by a Token that has to be provided in the Authorization
header prefixed with Token
.
HTTP Header example
Authorization: Token <validToken>
Getting an Access Token
An access token can be generated in the Klarna Kosma Portal.
Playground: https://portal.openbanking.playground.klarna.com/access-tokens
Production: https://portal.openbanking.klarna.com/access-tokens
NOTE: The token is only visible once after creation. Store the generated token.
NOTE: A token is valid for 180 days. Make sure to replace any token before it expires with a new token.