Updating a session is done by making a server-side
POST call to update session using the same payload structure as when creating the session in the first place.
Best Practice: For the effects of the update to be shown, you must also update the client separately through doing a new load-call.
This could also be achieved by only doing a client-side load-call, with the updated details.
This call will update the existing Klarna session, and has an empty reply when successful.
Best practice: You can use the correlation_id to troubleshoot the call in the logs app in merchant portal.
Below you will see some common error messages.
|Error Code||Error message||Comment|
|BAD_VALUE||Bad value: order_tax_amount||If you enter any tax for orders, this is validated as described in this article. This validation is not passed in case this error message is thrown.|
|BAD_VALUE||Bad value: order_lines||All order lines are validated as seen in this article. If your added order lines do not follow our guidelines, we will throw an error referring to the specific part of an order line that has failed.|
|BAD_VALUE||Bad value: purchase_currency||In case a purchase_currency is wrongly formatted or doesn’t apply in a certain locale this error message is thrown. If the consumer has updated country through changing billing_country this might also arise.|
|NOT_FOUND||Invalid session id||The session you attempted to update is not valid anymore. Or the ID is incorrectly formatted.|