Skip to main content
When you process split payments for your users, the split amounts are not always known or decided at the time of authorization. For example:
  • When a payment is pre-authorized with the intention of an authorization adjustment later.
  • When the payment is processed using a payment method that does not support automatic capture.
  • Order flows where the payment is captured manually when the order is shipped.
In such cases, you can provide the split instructions in a /payments/{paymentPspReference}/captures request instead. You can also override the split instructions you provided in the payment request if you send different split instructions in your capture request. However, we recommend to always include split instructions in your payment request, even when you intend to update these instructions in your capture request.

Requirements

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

Limitations

To split payments when you manually capture them, take into account the following points:
  • As mentioned in the introduction, we recommend to always include split instructions in your payment request, even when you intend to update these instructions in your capture request. This ensures that funds are booked correctly for payment methods that do not support delayed capture.
  • Splitting payments at capture is only possible for payment methods that support separate captures.
  • When the capture amount differs from the original authorization amount, you must provide split instructions in your capture request. If you do not provide split instructions for such captures, then all funds are booked to your liable balance account.
  • The split types Surcharge and Tip are not supported when you split a payment at capture.

Split a payment at the time of capture

To split a payment at the time of capture:
  1. From the payment response or the AUTHORISATION webhook, get the pspReference of the authorization you want to capture.
  2. To capture and split a payment at the same time, send a POST /payments/{paymentPspReference}/captures request, where paymentPspReference is the pspReference of the authorization you want to capture. In the body, include the splits array. For each item in the array, specify the following fields: Here is an example of how to split the payment amount at the time of capture, when a customer pays for goods worth USD 80.00:
    • USD 76.00 is booked to your user’s balance account as payment for the goods.
    • USD 4.00 is booked to your liable balance account as your platform’s commission.
    • All transaction fees are booked against your user’s balance account, deducted from the sale amount.
    Split funds at time of capture

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

  3. In the capture response, note the following:
    • paymentPspReference: The PSP reference of the authorization.
    • pspReference: The PSP reference associated with this capture request. This is different from the PSP reference of the authorization.
    • status: received Capture response
  4. Listen to the CAPTURE webhook to learn the outcome of the request.

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 platform’s liable balance account. To correct the balances, you can transfer the funds between the balance accounts in your platform.

Track fund movements

To track the status of the funds transfers initiated by a capture request:
  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.

Example

Your server receives webhooks for each split of the capture amount. The following examples are based on a standard split payment use case. In this case, your server receives webhooks for each balance account involved, and each split of the payment amount.
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