Modify payment requests efficiently using Klarna’s Update Payment Request API, ensuring changes are made only in the SUBMITTED state for accuracy and transparency.
Acquiring Partners can modify a payment request server-side with the Update Payment Request API.
This can only be performed when the payment request is in the SUBMITTED state. This restriction ensures that the customer is aware of any modifications to the payment request.
As the Update Payment Request is a PATCH request, only include fields that should be updated - any fields not included will remain unaltered by the request.
Sample request
{
"payment_request_reference": "updated-payment-request-reference"
}
Sample response
{
"payment_request_id": "krn:payment:eu1:request:aebbd8b4-0a88-670c-8e47-6afa4b872f57",
"state": "SUBMITTED",
"state_context": {
"customer_interaction": {
"method": "HANDOVER",
"payment_request_id": "krn:payment:eu1:request:552603c0-fe8b-4ab1-aacb-41d55fafbdb4",
"payment_request_url": "https://pay.test.klarna.com/eu/requests/6bbf6775-[...]/start"
}
},