Skip to main content

Split configuration profiles

Besides splitting payments at the transaction level, you can also set up profiles to automatically direct fees and book funds to predefined balance accounts. When accepting in-person payments, you can split the payment amount between the balance accounts in your platform. This allows you to book the sale amount, tip, surcharge, transaction fees, and your platform’s commission separately. This page describes how to provide split instructions in individual Terminal API payment requests.

Requirements

In addition to the general requirements for in-person payments with an Adyen for Platforms integration, take into account the following information.

How it works

To provide the split instructions in your payment request, you must:
  1. Gather the split instructions you need to send in the request.
    The split instructions consist of general information such as the number of splits that the transaction will be divided into, and the details of every split such as the type of split and the account to book the split amount to.
  2. Format the split instructions.
    The split instructions must be provided as a single string value. To achieve that, you can create a JSON object and Base64 encode that, or you can concatenate key-value pairs.
  3. Make the payment request, specifying the string with the split instructions.
  4. Track the result.
    The Terminal API does not validate the balance accounts specified in the split instructions. Using transfer and transaction webhooks, you can check if the funds were booked as intended
The examples on this page are based on a split payment request for USD 80.00, split three ways:
  • USD 75.00 is booked to your user’s balance account as payment for the goods or services.
  • USD 5.00 is booked to your liable balance account as your platform’s commission.
  • All transaction fees are booked to your user’s balance account.

1. Gather the split instructions

The split instructions that you need to provide in your payment request consist of:
  • General information about the currency and total amount of the transaction, and the number of splits that the transaction will be divided into.
  • The details of every split, such as the type of split and the account to book the split amount to.
    Every split is called a split item, and is indicated with a number, starting at 1. The details of the first split are preceded by split.item1, the details of the second split are preceded by split.item2, and so on.
  1. Gather the following general split information:
  2. For every split item, gather the following details:
The following example shows the split instructions for a payment that will be divided into three split items. For two of the three split items an amount is known, and the sum of these two split amounts is the same as the total transaction amount. Example data for splitting a payment
Now that you have gathered the split instructions, the next step is to format them so that you can pass them in the SaleToAcquirerData field of the payment request.

2. Format the split instructions

There are two ways to pass data in the SaleToAcquirerData field of your request:
  • Option 1: as a string of form-encoded key-value pairs (using & as a separator).
  • Option 2: as a JSON object converted to a Base64-encoded string.
The format you use in your request is the format that will be returned in the AdditionalResponse. To always receive the AdditionalResponse in a specific format, contact our Support Team. Select the tab for the option you want to use.
  1. Turn the split instructions you gathered into key-value pairs. Split instructions as key-value pairs
  2. Concatenate the key-value pairs into a string by separating them with ampersands (&). You will pass the resulting string in SaleData.SaleToAcquirerData. Concatenated key-value pairs