Commerce & Payments

Klarna

Klarna provides merchant APIs for payments, checkout, order management, settlements, customer tokens, and hosted payment pages.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Abort Checkout Order

    Irreversibly abort an incomplete legacy Klarna Checkout order.

  • Accept Dispute Loss

    Irreversibly request acceptance of the financial loss for a Klarna dispute. HTTP 202 means Klarna accepted the request for processing; use GET_DISPUTE to verify that the dispute closed and the chargeback was activated.

  • Cancel Authorization

    Irreversibly cancel a Klarna payment authorization before an order is created from it.

  • Cancel Order

    Irreversibly cancel an uncaptured Klarna order that is not closed. Cancellation cannot be undone.

  • Capture Order

    Irreversibly capture all or part of an authorized Klarna order and return the created capture ID.

  • Create Card Promise

    Create a Klarna card promise for an order. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement. Creating a new promise irreversibly invalidates the previous promise for the same order.

  • Create Card Settlement

    Create a Klarna settlement for a completed order and issue its encrypted virtual cards. This Merchant Card Service operation requires Virtual Card Number (VCN) entitlement and commits a new settlement, an irreversible effect.

  • Create Order From Authorization

    Create a Klarna order from a customer authorization token. When order.auto_capture is true, Klarna also captures payment automatically.

  • Create Order From Customer Token

    Create a Klarna order using a reusable customer token. Setting auto_capture to true captures the payment automatically.

  • Disable HPP Session

    Irreversibly disable a Klarna Hosted Payment Page session that has not completed.

  • Distribute HPP Session

    Distribute a Klarna Hosted Payment Page link by email, SMS, or a documented token access ID. Warning: choosing email or SMS immediately sends a message to the specified external recipient; confirm the destination before calling.

  • Enroll Dispute Merchant

    Irreversibly activate Disputes v3 handling for one direct Klarna merchant account. This account onboarding cannot be undone through the API. Partners cannot use this operation to enroll individual merchants; HTTP 204 also means the merchant was already enrolled.

  • Enroll Dispute Partner

    Irreversibly activate Disputes v3 handling for one Klarna partner account. This account onboarding cannot be undone through the API. partner_id identifies the partner account and client_id supplies the merchant OAuth2 client ID in the request body. Merchants cannot use this operation to enroll a partner; HTTP 204 also means the partner was already enrolled.

  • Extend Capture Due Date

    First call KLARNA_LIST_CAPTURE_DUE_DATE_OPTIONS for this order and capture, then extend the payment due date using one returned option. Fetch the options before this action because some extensions can cost money.

  • Refund Order

    Irreversibly create a full or partial Klarna refund and return the created refund ID.

  • Release Remaining Authorization

    Irreversibly release the uncaptured authorization remaining on a Klarna order. Use only when no further capture is needed; this does not refund captured funds. This may also normalize the order total: in live testing, a partial capture followed by release reduced order_amount to captured_amount.

  • Request Customer Token Cancellation

    Request asynchronous cancellation of a reusable Klarna customer token by changing its status to CANCELLED. Once Klarna processes the request, the token can no longer be used for new orders; HTTP 202 confirms acceptance, not that the state change has completed.

  • Request VCC Order Cancellation

    Irreversibly request cancellation of a Klarna order associated with a Virtual Credit Card settlement. This operation requires Virtual Card Number (VCN) entitlement. It mutates the order: an existing cancellation returns CANCELLED, while a new request is queued asynchronously and returns PENDING.

  • Resend Capture Customer Communication

    Irreversibly resend Klarna customer communication for a capture. Calling this action has an operational side effect: Klarna sends a communication to the customer.