Express Checkout (Klarna)
Authorize Klarna Checkout
Confirms the Klarna authorization token after customer approval in the Klarna widget
POST
Authorize Klarna Checkout
Overview
After the customer authorizes payment in the Klarna widget (client-side), this endpoint confirms the authorization with Firmly. It stores theauthorization_token in the session and returns the cart with the confirmed Klarna payment method.
Authentication
Device authentication token from Browser Session
Path Parameters
The merchant domain (e.g., “merchant.example.com”)
Request Body
Klarna authorization details
Response
Returns the cart with the confirmed Klarna payment method.Unique identifier for the cart
Array of items in the cart
Confirmed Klarna payment method
Delivery address details
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 |
ErrorBadRequest | Missing authorization_token in request body |
ErrorGatewayNotFound | Klarna is not enabled for this merchant |
ErrorPrecondition | Precondition failed (e.g., cart state invalid) |
ErrorSubmitExpressCheckout | Authorization failed at the merchant |
Related Endpoints
- Start Klarna Checkout - Create Klarna session first
- Complete Klarna Order - Finalize the order
Authorize Klarna Checkout