Skip to main content
POST
Start Klarna Checkout

Overview

Initiates a Klarna checkout by creating a payment session with Klarna. Returns the cart enriched with a payment_method object containing the client_token, session_id, and available payment_method_categories needed to render the Klarna Payments widget on the client. Merchants that use a redirect flow return a url to send the buyer to instead (see the url field below).
Klarna is enabled per merchant. Check the cart’s payment_method_options array for { "type": "Klarna", "wallet": "klarna", "config": { "express_enabled": true, "clientId": "..." } } before offering Klarna.

Authentication

string
required
Device authentication token from Browser Session

Path Parameters

string
required
The merchant domain (e.g., “merchant.example.com”)

Request Body

object
Optional gateway-specific attributes. Can be an empty object or omitted entirely for standard Klarna checkout.

Response

Returns the cart enriched with the Klarna payment method details.
string
Unique identifier for the cart
array
Array of items in the cart
object
Klarna payment method details
object
Delivery address details
object
Selected shipping method with pricing
object
Grand total including all costs
object
Subtotal before shipping and tax
object
Tax amount
array
Merchant-imposed fees (e.g. recycle, regulatory), if any
object
Total of all fees

Code Example

Response Example

Error Responses