Requirements
- Make sure that your server can receive and accept webhooks, and that the Transfer webhook has been added in your Customer Area.
- Ask our Support Team to enable transfers for the balance account where the funds are returned from.
-
If the balance accounts involved in the internal funds transfer do not belong to the same account holder, check the capabilities of the account holders:
- The account holder of the balance account where the funds are returned from must have the sendToBalanceAccount capability.
- The account holder of the balance account where the funds are returned to must have the receiveFromBalanceAccount capability.
-
Make sure that your API credential:
- Has access to the Transfers API.
- Has the TransferService Webservice Initiate role.
Initiate a return
To return an internal push transfer:-
Make a POST /transfers/{transferId}/returns request, where
{transferId}is the ID of the original incoming transfer that is returned in the webhooks. Specify the following request parameters:The following example shows how to return EUR 100 previously received through an internal transfer with the ID123XYZABC456DEF7. Return an internal transfercurl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
In the response, note the following:
id: the ID of the return request.status: Authorised. If Declined, this can indicate that you used the wrong transfer ID in the URL.transferId: the ID of the original incoming transfer, which you specified in the URL of the return request.
