Learn how to update an existing Payment Request while it is in the SUBMITTED state. This operation allows Partners to adjust amount, currency, supplementary purchase data, or shipping configuration before the customer enters the Klarna Purchase Journey.
Update an existing Payment Request while it is still in the SUBMITTED state. This keeps the Payment Request in sync with the Partner's checkout (for example, when the customer changes their cart, applies a discount code, or selects a different shipping option) before they enter the Klarna Purchase Journey.
Payment Requests can only be updated while in SUBMITTED state. Once the customer enters the Klarna Purchase Journey (IN_PROGRESS) or the Payment Request reaches a final state (COMPLETED, EXPIRED, CANCELED, or DECLINED), it cannot be updated.
Call updatePaymentRequest with the payment_request_id and provide the fields to update. Only the fields included in the request body are modified. Omitted fields retain their previous values.
The API returns the updated Payment Request reflecting the changes that were made. The state remains SUBMITTED and the updated_at timestamp is refreshed.
Subscribe to the payment.request.updated webhook event by following the webhook registration guide. Klarna sends this event when a Payment Request is successfully updated, including the updated_fields in the payload so the change can be reconciled on the Partner's side.
Update Payment Requests before customer interaction begins to handle common checkout scenarios such as cart changes, promotions, or shipping selection.
Update the amount when cart contents change or promotions are applied. Provide both the new amount and currency to keep the Payment Request consistent.
Update the shipping option in supplementary_purchase_data.shipping when the customer selects a different shipping option mid-checkout. Adjust the total amount accordingly to include the new shipping cost.