Skip to main content
When you make a cashout, your user’s pending funds are instantly made available in your user’s balance account. In your cashout request, you can also specify to pay out the funds to the user’s transfer instrument.

Requirements

Before you initiate a cashout, take into account the following requirements.

How it works

To make a cashout request:
  1. (Recommended) Check whether the transfer instrument supports instant payouts: Calculate a transfer route for the transfer instrument.
  2. (Recommended) Get the pending available balance on the user’s balance account: Ensure that your user has enough funds for the cashout.
  3. Initiate the cashout: Specify the details of the cashout in an API request.
  4. Get updates on the status of the cashout: Listen to webhooks to check the status of the cashout.
The following sections explain how to perform these steps. Before you initiate a cashout for a user, we recommend that you check whether the counterparty bank supports instant payouts. This reduces the risk of failed cashouts. To check whether the transfer instrument supports instant payouts:
  1. Make a POST /transferRoutes/calculate request, specifying the following parameters: The following code shows an example of this request. Example request—Calculate the available transfer routes for a transfer instrument
  2. In the response, verify that you receive an object with the transferRoutes.priority set to instant.
Before you initiate a cashout for a user, we recommend that you get the pending available balance on the user’s balance account. By doing this, you can:
  • Show to your users the balance that is available for cashouts. This helps your users know the maximum amount that they can ask for.
  • Check that the amount that your user is asking for is less than or equal to the pending available balance.
To get the pending available balance on your user’s balance account:
  1. Make a GET /balanceAccounts/{id} request.
  2. In the response, note the value of the balances.pendingAvailable parameter.
If the pending available balance is negative, inform your user that the balance available for cashouts is 0.

Initiate a cashout

To initiate a cashout:
  1. Make a POST /cashouts request and specify the following parameters in the request body: The following example shows a cashout request for EUR 1000, with a fee of EUR 10. Initiate a cashout request
  2. If the request succeeds, note the following response parameters, which help you identify cashout-related transfers: The following example shows a successful response for a created cashout. Response for a created cashout
After you make the cashout request, Adyen processes it asynchronously. To track any updates related to your cashout request, use the webhooks that Adyen sends to your server.

Get updates on the status of the cashout

A cashout involves multiple funds transfers, which you can track by listening to webhooks. Webhooks inform you about any status change in the transfers, and whether the transfers succeed or fail. Adyen sends three types of webhooks for each transfer: To listen to these webhooks:
  1. Ensure that your server can receive and accept webhooks.
  2. Subscribe to Transfer webhooks and Transaction webhooks in your Customer Area.
Alternatively, you can view the transfer details in your Customer Area.

Troubleshooting

A cashout request can fail because of communication issues with the bank, or because of invalid request parameters. If the cashout request is successful, but the payout to your user’s transfer instrument fails, the cashout request is reversed. This means that:
  • The cashout amount is returned to the user’s balance account and settled as pending available balance.
  • The fee charged to your user is returned to the user’s balance account and settled as pending available balance.
  • Your platform is not charged any fees for the failed cashout.
To retry a failed cashout, you must initiate a new POST /cashouts request.

Error responses

If the request fails, you receive an error response with information about the error. Error responses for invalid cashout requests can include the following fields:
  • title: Specifies the type of error.
  • detail: Specifies the cause of the error.
  • invalidFields: Specifies whether one or more fields contain invalid information.
The following subsections describe some of the errors and messages that you can get when you make cashout requests. **

Could not find transfer instrument

  • title: “The request is missing required fields or contains invalid data”.
  • detail: “Could not find transfer instrument with reference: SE0000000000000000000001”.
This information indicates that the transferInstrumentId that you specified:
  • Does not exist.
  • Does not belong to the same legal entity as the instructingBalanceAccount.
Solution: Provide a valid transfer instrument ID and retry the request. **

No instant route found for transfer instrument

  • title: “The request is missing required fields or contains invalid data”.
  • detail: “No instant route found for transfer instrument id: SE0000000000000000000001”.
This information indicates that there are no available transfer routes for making an instant payout to the transferInstrumentId that you specified. This can happen because, for example:
  • The counterparty bank is located in a region where Adyen does not support instant payouts.
  • The counterparty bank does not accept the currency of the payout.
  • Adyen could not reach the counterparty at the moment of the request.
Solution: Try the request again later or use a different transfer instrument ID. **

Invalid amount / Invalid fee amount

  • title: “Configuration is missing or incorrect”.
  • invalidFields.name: amount or fee.amount.
  • invalidFields.message: “Invalid amount” or “Invalid fee amount”.
This information indicates that Adyen does not support cashout requests in the currency that you specified. You can only make cashout requests for EUR, USD, GBP, and AUD. For more information, see the supported countries/regions and currencies. Solution: Use one of the supported currencies: EUR, USD, GBP, or AUD. **

Fee amount has a different currency than instruction amount

  • title: “Configuration is missing or incorrect”.
  • invalidFields.name: fee.amount.currency.
  • invalidFields.message: “Fee amount has a different currency than instruction amount”.
This information indicates that the request parameters amount.currency and fee.amount.currency have different values. Solution: Make sure that amount.currency and fee.amount.currency have the same value. Then, retry the request. **

Minimum required amount not reached

  • title: “Configuration is missing or incorrect”.
  • invalidFields.name: amount.
  • invalidFields.message: “Minimum required amount not reached”.
This information indicates that the cashout amount is less than EUR/USD/GBP/AUD 1, which is the minimum required amount. Solution: Increase the cashout amount to at least EUR/USD/GBP/AUD 1. **

Amount exceeds pending balance

  • title: “The request is missing required fields or contains invalid data”.
  • detail: “Amount exceeds pending balance : EUR 123.45”.
This information indicates one of the following:
  • The cashout amount is higher than the pending available balance.
  • The sum of the cashout amount and the fee is higher than the pending available balance.
Solution: Reduce the cashout amount or the fee amount to ensure that the total does not exceed the pending available balance.

See also