Skip to main content
Postman collection Implementation examples
Java Spring
.NET
Node.js
This page explains how to adjust authorizations for card payments, and for Klarna payments. Be aware that:
  • You will rely on webhook events to know whether the capture succeeds. If you use asynchronous authorization adjustment, you will also rely on webhook events for the authorization adjustment result.
  • You need to implement logic on your end to decide when to use the pre-authorization flow, and to calculate the amount when you make an authorization adjustment.
For information about use cases, asynchronous or synchronous adjustment, and restrictions, see Authorization adjustment.

Requirements

Before you begin, consider the following requirements, limitations, and preparations:

(Optional) Configure your account

If you plan to implement synchronous authorization adjustments, contact our Support Team to enable the Synchronous authorization adjustment setting. This setting allows you to receive the initial adjustAuthorisationData blob with your pre-authorization response, and to subsequently receive the authorization adjustment results synchronously when you make /amountUpdates requests. To capture payments in the authorization adjustment flow, manual capture must be enabled. You can set this for your account, but then all payments require manual capture. The alternative is to enable manual capture in the individual pre-authorization request. To make multiple partial captures, ask our Support Team to enable that feature.

1. Pre-authorize a payment

  1. Make a payment request that specifies: Pre-authorization request

    curl

    Java

  2. From the response, save the following for later use when adjusting the authorization or capturing the payment:
    • pspReference: You will need this for authorization adjustment and capture requests.
    • adjustAuthorisationData: If your account is configured for synchronous authorization adjustment, you will receive this blob. Save it for use in your first /amountUpdates request.
    Pre-authorization response

2. Adjust the pre-authorized amount

To increase or decrease the pre-authorized amount or to extend the authorization, make an authorization adjustment request:
  1. Make a POST /payments/{paymentPspReference}/amountUpdates request, including the following: Path parameters: Body parameters: The following example shows how to add a charge of EUR 64.15 to a pre-authorized amount of EUR 150.00. Asynchronous authorization adjustment request

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

  2. In the /amountUpdates response, note the following parameters:
    • pspReference: the PSP reference for this /amountUpdates request.
      This is different from the PSP reference of the pre-authorization request.
    • status: received
    Asynchronous authorization adjustment response
  3. Wait for a webhook message with the eventCode AUTHORISATION_ADJUSTMENT. This informs you whether the new amount has been authorized.