The API-only solution for creating withdrawals can be used to create any type of withdrawal (including closed loop withdrawals).
In order to create a withdrawal, you require a bank_account_id. The bank_account_id is obtained by either:
– creating a deposit session, or
– creating a bank account
When creating a withdrawal, a transaction_id is received in the response. The transaction_id can be used to get the transaction state directly or get transaction by id to get general information about the transaction.
When creating a withdrawal, supplying a url for transaction state callbacks is required.
API Reference: /api/transaction.create_withdrawal
The following API calls are referenced here: