Skip to main content
In a basic payment flow, the payable amount from your payment request is authorized and then captured. But sometimes you want to change the amount or extend the length of the authorization. Using the authorization type pre-authorization for your payment request, you can increase or decrease the authorized amount at a later stage, and then capture the payment manually. Changes to a pre-authorized payment are called “authorization adjustments”.

Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

How it works

The process to adjust an authorized amount is as follows:
  1. To indicate that you will probably make changes later, you use the authorization type pre-authorization in your payment request.
    The payment is pre-authorized for the amount specified in the payment request.
  2. When the amount due increases (or decreases), you send a request to adjust the pre-authorized amount.
    Each time that the amount due changes or the validity period of the authorization is about to expire, you send another authorization adjustment request.
  3. After your last authorization adjustment, you manually capture the payment.
Note the following:
  • 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.
  • You can use pre-authorization with Dynamic Currency Conversion (DCC). This gives shoppers from abroad a choice to pay in the local currency or their own currency.

Use cases

There are several use cases for adjusting a pre-authorized amount:
  • Hospitality. For example, in a hotel:
    1. Just before the guest checks in, or when the guest checks in using an app or in person, the hotel pre-authorizes payment of the guest’s room. At the same time, the hotel stores the shopper’s payment information , to be able to apply late charges when necessary.
    2. During their stay, the guest incurs expenses at the hotel facilities. The hotel adds these expenses to the pre-authorized amount by adjusting the authorization.
    3. When the guest checks out, the hotel captures the final amount, or cancels the payment if the guest prefers to settle their bill with a different payment method.
    4. If necessary, the hotel charges the guest after they have left, using the shopper’s stored payment details for a new payment.
  • Tipping in regions and industries where it is customary that the guest adds a tip on the receipt after they have presented their card.
  • Cross-channel customer journeys. For example: the shopper pre-orders a product in a web shop, and after a long delivery time goes to the store to make the payment and collect the product.

Authorization type

For some card schemes, you can set payment requests to be handled as either a pre-authorization or a final authorization.
  • Pre-authorization: this authorization type verifies that the shopper’s account is valid and has sufficient funds to cover a transaction, but does not debit the account. It is intended for use cases as described above, when you do not yet know the amount to be captured. It allows you to increase or decrease the initially authorized amount at a later point in time.
  • Final authorization: the final amount is agreed up front and the transaction will be captured in full. This is the default authorization type, and it doesn’t allow you to adjust the authorized amount later.
By default, Adyen handles all card payment requests as final authorizations. To set an authorization type, you can either:
  • Define the default authorization type at the merchant account level for all card transactions. See Configure your account.
  • Specify authorisationType PreAuth or authorisationType FinalAuth in each payment request. See Pre-authorize a payment.

Asynchronous or synchronous adjustment

There are two ways to implement pre-authorization:
  • Asynchronous authorization adjustment: you refer to a payment using the PSP reference that you received in the response to your pre-authorization request. In each authorization adjustment request, and in the final capture request, you specify this first PSP reference. Asynchronous adjustment is easier to implement, but it is not immediately clear if the adjustment succeeded. You must set up webhooks to receive updates and to know if the final amount was authorized before you capture the payment.
  • Synchronous authorization adjustment: you pass an adjustAuthorisationData blob from one request to the next, to enable us to keep track of the latest amount. You receive the first blob in the response to your pre-authorization request. In your first authorization adjustment request, you specify the blob you received for the pre-authorization, and you receive a new blob in the response. In your next adjustment, you specify the blob that you received in the response for the previous adjustment, and so on. Synchronous adjustment requires more effort to implement, because you need to keep track of the latest blob. The advantage is that you receive the adjustment result synchronously. In this way you immediately know if the final amount was authorized before you capture the payment. If at any point you fail to pass the blob, the flow falls back to asynchronous adjustment, and it is no longer possible to return to synchronous adjustment for that payment.

Configure your account (Optional)

There are various aspects of your account that you may want to configure for pre-authorization and authorization adjustment:
  • Synchronous authorization adjustment: to enable synchronous authorization adjustment, in your Customer Area go to In-person payments > Developer > Additional Data and select return adjust authorisation data. You will then receive the initial adjustAuthorisationData blob with your pre-authorization request and subsequently receive the authorization adjustment results synchronously.
  • Default authorization type: if you only do pre-authorization payment requests, you can ask our Support Team to set your default authorization type to PreAuth so that you do not have to specify it in your payment requests. If you want to do both pre-authorization payment requests and regular payment requests, we recommend you specify the authorization type in all payment requests.
  • Manual capture: 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 requests.

Enable smart pre-authorization (Optional)

Certain card schemes do not support incremental adjustments. Because this is validated during the authorization adjustment step, you cannot know in advance, at the pre-authorization step, if you should accept the customer’s card. The smart pre-authorization feature lets your payment terminal check if the card presented by the customer is of a brand that supports authorization adjustment. In addition to checking the card brand, you can optionally let the feature check if the funding source, such as credit or debit, supports authorization adjustment. If the card supports authorization adjustment, the terminal continues with the pre-authorization request. If the card does not support authorization adjustment, the terminal presents the shopper with a list of supported card brands to choose from. They can then use a different card and continue with the payment. To enable smart pre-authorization:
  1. Log in to your Customer Area
  2. Go to In-person payments > Terminal settings > Payment features.
  3. Under Smart Pre-auth > Filter supported Brands, select the pencil icon **and then select Enable.
  4. (Optional) If you want to exclude debit and/or prepaid cards from the smart pre-authorization flow:
    1. Under Filter Funding Sources, select the pencil icon **.
    2. Select Enable, and choose the types of cards that you want to exclude.
  5. Select Save.

1. Pre-authorize a payment

To start the pre-authorization payment flow, make a Terminal API payment request with an authorization type of PreAuth:
  1. Make a payment request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Payment.
    The following example shows how to initiate pre-authorization for a payment of EUR 150.00. Pre-authorization request
    The customer presents their card to the payment terminal. The terminal collects the payment details and sends the request for the original amount to the Adyen payments platform for processing.
  2. Check the response. If the pre-authorization is successful:
    • The terminal shows the transaction is approved.
    • The payment result contains:
      • POIData.POITransactionID.TransactionID: Transaction identifier for the payment, in the format tender_reference.PSP_reference.
      • PaymentResult: payment method data including:
        • AmountsResp: the AuthorizedAmount and Currency of the pre-authorized payment.
      • Response.Result: Success
      • Response.AdditionalResponse: additional transaction data. Depending on the format you used in the request, you receive either a string of form-encoded key-value pairs or a Base64 string that you need to decode to get a JSON object. This includes:
        • posadditionalamounts.originalAmountValue: the original amount in minor units.
        • authorisedAmountValue: the authorized amount in minor units, which at this stage is equal to the original amount.
        • pspReference: the PSP reference of your pre-authorization request.
        • adjustAuthorisationData: a blob with authorization data. You only receive this if the synchronous flow is enabled for your account.
    The following example shows the response to a EUR 150.00 authorization request. Pre-authorization response - synchronous flow
  3. Store the pspReference and the adjustAuthorisationData from the AdditionalResponse for later use when adjusting the authorization or capturing the payment.

2. Adjust the pre-authorized amount

To increase or decrease the pre-authorized amount or to extend the authorization, make an authorization adjustment request. This step involves making a request to the Adyen backend directly. This is not a Terminal API request to the terminal itself or the Cloud endpoint for the terminal. When building or testing the flow, make sure there is at least a 5 second delay between the pre-authorization and the authorization adjustment.
  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.