Skip to main content
When you authorize an online payment on behalf of your user, you can split the payment amount between the balance accounts in your marketplace by including the split instructions in your authorization request. This allows you to separately book the sale amount, your marketplace’s commission, transaction fees, and the leftover amount after currency conversion.

Requirements

Take into account the following requirements, limitations, and preparations to start processing payments.

Split a payment between balance accounts

To split the payment amount at the time of authorization:
  1. Add a splits array to your POST /payments or POST /sessions request. For each item in the /payments splits array or the /sessions splits array, specify the following fields: The following example shows how to split the payment amount at the time of payment, when a customer pays USD 80.00:
    • With type BalanceAccount, we book USD 75.00 to your user’s balance account as payment for the goods or services.
    • With type PaymentFee, we book all the transaction fees to your user’s balance account.
    • With type Commission, we book USD 5.00 to your liable balance account as your marketplace’s commission.
    Split funds at time of payment

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

  2. In the response, note that your reference from the request is returned as the merchantReference. You need this information for reconciliation, as explained under Best practices. Response

Troubleshooting

The API request validates only the format of the split instructions, not the balance accounts specified in the request. This means that even if the transaction is successful, it is possible that the funds are not credited to/deducted from the specified balance account. If the balance account does not exist, or it is linked to an account holder with a closed status, the full transaction and its fees are booked to your marketplace’s liable balance account. To correct the balances, you can transfer the funds between the balance accounts in your marketplace.

Track fund movements

To track the status of the funds transfers initiated by a payment:
  1. Listen to the following webhooks:
  2. Acknowledge the webhooks. We send these webhooks for every split item in the payment.
  3. In the payload of the balancePlatform.transfer.updated webhook, note that:
    • The event array includes all previous transfer events.
    • The sequenceNumber defines the number of webhooks sent for the transfer, including the current one.

Examples

Your server receives webhooks for each split of the payment amount. The following examples are based on a standard split payment use case.
You can identify payment-related transfer webhooks for the amount booked to your user by the following values:**

1. Incoming transfer received

When a transfer request is received to credit funds to your user’s balance account, Adyen sends a balancePlatform.transfer.created webhook with status received and direction incoming. The webhook provides information about the transfer, such as the payment and split references and which user and balance account is credited with the funds.Transfer received
**

2. Incoming transfer authorized

When the transfer request is authorized, Adyen sends a balancePlatform.transfer.updated webhook with status authorised.Transfer authorised
**

3. Incoming transfer captured

When the funds are credited to your user’s balance account, Adyen sends a balancePlatform.transfer.updated webhook with status captured and the transactionId.Transfer captured
**

4. Transaction booked

When the funds are credited, Adyen also sends a balancePlatform.transaction.created webhook, which includes information about the related transaction.Transaction created