Express Checkout (Klarna)
Start Klarna Checkout
Creates a Klarna payment session and returns client credentials for the Klarna widget
POST
Start Klarna Checkout
Overview
Initiates a Klarna checkout by creating a payment session with Klarna. Returns the cart enriched with apayment_method object containing the client_token, session_id, and available payment_method_categories needed to render the Klarna Payments widget on the client.
Authentication
Device authentication token from Browser Session
Path Parameters
The merchant domain (e.g., “merchant.example.com”)
Request Body
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.Unique identifier for the cart
Array of items in the cart
Klarna payment method details
Delivery address details
Selected shipping method with pricing
Grand total including all costs
Subtotal before shipping and tax
Tax amount
Code Example
Response Example
Error Responses
| Code | Description |
|---|---|
ErrorCartNotFound | No active cart for this domain |
ErrorGatewayNotFound | Klarna is not enabled for this merchant |
ErrorOperationNotSupported | Merchant adapter does not support Klarna |
ErrorStartExpressCheckout | Failed to create Klarna payment session |
ErrorStoreUnavailable | Merchant temporarily unavailable |
Related Endpoints
- Authorize Klarna Checkout - Confirm Klarna authorization
- Complete Klarna Order - Finalize the order
Previous
Authorize Klarna CheckoutConfirms the Klarna authorization token after customer approval in the Klarna widget
Next
Start Klarna Checkout