Learn how to update an existing payment request while it's in the SUBMITTED state. This operation allows you to modify payment details, supplementary purchase data, or customer interaction configuration before the customer enters the Klarna Purchase Journey.
320 min read
Introduction
Update an existing Payment Request while it's still in the SUBMITTED state. This operation allows you to modify payment details, supplementary purchase data, or customer interaction configuration before the customer enters the Klarna Purchase Journey.
Prerequisites
Before updating a Payment Request, ensure the following:
A valid Partner Account with API credentials
Backend capability to receive and process Klarna webhooks
An existing Payment Request in SUBMITTED state
The payment_request_id of the Payment Request to update
Request
Call updatePaymentRequest with the payment_request_id and provide the fields you want to update.
The API returns the updated Payment Request with the same structure as returned by authorizePayment when a step up is triggered, reflecting the changes made.
Subscribe to the payment.request.updated webhook event using the guidelines provided here. Klarna sends this event when a Payment Request is successfully updated.
Update Payment Requests before customer interaction begins to handle common checkout scenarios such as cart changes, promotions, or configuration updates.
Update payment amount
Update the amount when cart contents change or promotions are applied.
JSON
1
2
3
4
5
{
"amount": 15000,
"currency": "USD"
}
Update line items
Modify line items to reflect changes in the shopping cart.
Extend or shorten the Payment Request lifetime by updating customer_interaction_config.interaction_expiry. Use this to align the expiration with a changed Partner checkout session timeout — for example, when a flash-sale window is extended or a hard deadline is brought forward. See Custom Payment Request expiry for accepted formats and constraints.