How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Offer Buy Now Pay Later And Manage Orders And Refunds With Klarna

December 2nd, 2026 · Kin Lane
Offer Buy Now Pay Later And Manage Orders And Refunds With Klarna

If you run an online store, you have seen the “pay in four” and “pay later” buttons at other people’s checkouts and wondered whether offering the same would help your customers buy. Klarna is one of the best known providers of that option, and everything from starting the payment to capturing it after you ship to issuing a refund happens through Klarna’s APIs, which means your store software, or an AI assistant helping you run it, can do the work directly. I keep a profile of what Klarna offers on APIs.io, and this is the version for the business reader.

What Klarna does

Klarna is a Swedish licensed bank and payments network offering buy now, pay later, financing, cards, banking and a shopping app. For merchants, Klarna publishes APIs covering payment sessions and authorization, post-purchase order management (capture, refund, cancel, extend the due date), customer tokens for repeat purchases, settlement payouts and reporting, and a Merchant Card Service. You can find it at klarna.com.

A word on the vocabulary, because payments has a lot of it. An authorization is the customer’s approval and Klarna’s go-ahead for a purchase. A capture is when you actually collect the money, usually when you ship. A settlement is Klarna paying you out.

What you can get done

Payment Initiation Management

This is the checkout itself: offering Klarna for a cart, getting the customer’s approval, and turning that approval into an order.

  • POST /payments/v1/sessions starts a payment session for a cart and tells you which Klarna payment options you can offer.
  • POST /payments/v1/sessions/{session_id} updates the session, for example when the shopper adds an item, and GET /payments/v1/sessions/{session_id} reads it back.
  • POST /payments/v1/authorizations/{authorizationToken}/order turns a successful authorization into an order.
  • POST /payments/v1/authorizations/{authorizationToken}/customer-token saves the customer’s payment method for future purchases, such as subscriptions.
  • DELETE /payments/v1/authorizations/{authorizationToken} releases an authorization you will not use.

Payment Processing Management

This is everything after the order: collecting the money when you ship, adding tracking, giving customers more time, and refunding returns.

  • POST /ordermanagement/v1/orders/{order_id}/captures captures payment on an order, including part of an order when you ship in pieces.
  • GET /ordermanagement/v1/orders/{order_id}/captures lists the captures already taken against an order.
  • POST /ordermanagement/v1/orders/{order_id}/captures/{capture_id}/shipping-info attaches carrier and tracking information to a capture.
  • GET /ordermanagement/v1/orders/{order_id}/captures/{capture_id}/extend-due-date-options shows the options and fees for giving a customer more time to pay, and PATCH /ordermanagement/v1/orders/{order_id}/captures/{capture_id}/extend-due-date applies one.
  • POST /ordermanagement/v1/orders/{order_id}/refunds refunds all or part of an order.

Card Transaction Processing Management

Klarna’s Merchant Card Service issues virtual cards, card numbers that exist only to pay for a specific order. That is useful for businesses that take a Klarna payment and then need to pay a supplier or another platform with a card.

  • POST /merchantcard/v3/promises requests virtual cards for an order, and GET /merchantcard/v3/promises/{promise_id} looks that request up.
  • POST /merchantcard/v3/settlements issues the actual card details once the order is complete.
  • GET /merchantcard/v3/settlements/order/{order_id} finds the cards belonging to an order.
  • POST /merchantcard/v3/orders/{order_id}/cancel-request requests cancellation of a virtual card order.

Ask for it in plain language

We publish conversational phrasing overlays for Klarna. An overlay maps plain-language questions to the API operations that answer them, so an AI assistant knows which call to make. These are the kinds of questions it connects to the operations above:

  • How do I capture payment on an order once I’ve shipped it?
  • Can I refund just part of an order and specify which lines are returned?
  • Can I add a tracking number to a capture I already made?
  • Can I give a customer more days to pay for a captured purchase?
  • How can I store a customer’s payment method for future charges after they authorize?

You can see one in the Captures API phrasing overlay.

Getting started

Klarna is listed as paid with self-serve signup. Merchants pay service charges on Klarna transactions; see the pricing section of the Klarna profile for what we have on record.

Klarna’s own documentation covers Klarna Payments, managing orders with the API, and everything else. On APIs.io, start from the Klarna profile, then the Payments API, the Order Management API and the Settlements API.

Map how your store ships orders today, all at once or in pieces, because that decides how you will capture payments.