create_withdrawal_recipient
Save a bank account as a withdrawal destination for the user's cash balance. Supports US bank accounts (ACH: routing + account number) and international bank accounts (SWIFT wire: IBAN + BIC). Ask the user for their bank details conversationally, then call this once. After saving, use withdraw to request a payout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | International only: IBAN (e.g. DE89370400440532013000). | |
| type | Yes | ach for US bank accounts; international_wire (SWIFT) for everywhere else. | |
| nickname | No | A label for this account (e.g. 'My checking'). | |
| bank_name | No | The recipient bank's name (recommended). | |
| swift_code | No | International only: 8 or 11 character SWIFT/BIC. | |
| account_type | No | ACH only: account type. | |
| country_code | Yes | Two-letter country code of the account holder (e.g. 'US', 'DE'). | |
| account_number | No | ACH only: US account number (4-17 digits). | |
| routing_number | No | ACH only: 9-digit US routing number. | |
| beneficiary_name | Yes | The account holder's full legal name, exactly as the bank knows it. | |
| country_specific | No | Extra banking fields some countries require: {"ifsc": "..."} for India, {"clabe": "..."} for Mexico, {"bsb": "..."} for Australia. Required for those countries; the validation error names the missing key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Human-readable result or next step. |