In the MVP of our API, you will not be able to create Wire Deposits with the transfers endpoint.
To create a new withdrawal for a business, make a POST request to /v1/businesses/{business_id}/transfers and include the business ID in the request.
{
"amount": {
"currency": "USD",
"amount": "2323423335.00"
},
"bank_account_id": "{{bank_account_id}}",
"direction": "withdrawal",
"type": "wire",
"idempotency_key": "{{$randomUUID}}",
"user_data": {
"consectetur_e9": 75594943.37748659
}
}
Once initiated, the status of the transfer will be set to pending while Treasure reviews, and then the request should be executed within 2-3 days if no additional documentation is needed.
The API will return an error if you do any of the following:
- Use the Wire type for deposit
It is important to note that the amount defined in your withdrawal might change before you receive your funds. For example, if you try to withdraw an amount that equals or exceeds your current portfolio value, you might receive less than the amount you requested. By the time assets are liquidated, it is possible that the total available cash is less than the amount you wanted to withdraw. In this case, the transfer amount will change to the full amount available in your account, and the transfer.updated webhook will be fired.