Understand the lifecycle of a Payment Transaction with Klarna: its states, transitions, and the webhook events that signal each change. Use this reference when planning capture, refund, void, and reconciliation flows.
The Payment Transaction API allows Partners to track the lifecycle of a Payment Transaction and perform all post-purchase actions, including transaction updates, captures, and refunds.
A Payment Transaction transitions through various states during its full lifecycle. Each state represents a specific phase in the payment process, dictating what actions can be taken and what limitations apply. Below is an overview of the possible Payment Transaction states, together with a state transition diagram.
Represents a Payment Transaction that has an authorized amount remaining to be captured. It is awaiting further actions such as capture, update, or void. Refunds are also possible if the transaction has been partially captured.
EXPIRED
Represents a Payment Transaction that has reached its lifespan without being completed. A transaction expires if it is not fully captured within a set period of time. By default, an expired Payment Transaction transitions to CLOSED if it is not reauthorized within 7 days after the expiry, unless otherwise agreed by Klarna.
COMPLETED
Represents a Payment Transaction that has been finalized through a funds transfer. A Payment Transaction is considered completed when no authorized amount remains, either because it is fully captured or was partially captured and has since expired. Fully captured: The funds corresponding to the full authorization amount have been successfully captured. Partially captured and expired: The Payment Transaction has been partially captured, and the 7-day grace period has passed upon expiration. Any remaining authorization is released, and the payment authorization is considered to be completed.
CLOSED
Represents a Payment Transaction that has reached its definitive conclusion, or end of life. In this state, no further actions, including refunds, can be completed. A Payment Transaction transitions to CLOSED in any of the following cases: Expired before completion: the transaction is closed 7 days after expiry. Completed transaction ages out: a completed Payment Transaction transitions to closed 3 years after completion. Non-guaranteed payment defaults: a non-guaranteed Payment Transaction transitions to closed when Klarna has not received the customer's funds within a specific period of time (which varies depending on the selected payment method).
The lifecycle of a Payment Transaction involves a sequence of events from authorization through to conclusion. The table below describes the state-change events emitted by Klarna webhooks. Subscribe to them by following the webhook registration guide.
Event name
When
payment.transaction.state-change.authorized
A Payment Transaction has an authorized amount remaining and is awaiting further actions like capture, update, or void. Refunds are also possible if the transaction has been partially captured.
payment.transaction.state-change.completed
A Payment Transaction has been finalized through funds transfer and no authorized amount remains.
payment.transaction.state-change.expired
A Payment Transaction has reached its lifespan without being completed. By default, an expired Payment Transaction transitions to CLOSED if it is not reauthorized within 7 days after expiry, unless otherwise agreed by Klarna.
payment.transaction.state-change.closed
A Payment Transaction has reached a definitive conclusion. No further actions, including refunds, can occur.
The example below shows the payload structure for payment.transaction.state-change.authorized:
All actions that modify a Payment Transaction are limited and can only be performed 200 times each. The total number of actions performed on a given Payment Transaction may not exceed 500.
Call readPaymentTransaction only when strictly required by Partners' business logic (for example, when working with non-guaranteed payments). Avoid using it to confirm that a Payment Transaction was created or that another action succeeded. Each action's response is authoritative: when it returns a successful response, the action completed successfully.