Create bank feed account in Xero
Accounting API · write, waits for approval · 100% field coverage
Your agent can create bank feed account in Xero through Apideck's Accounting API, the same call it makes for every Accounting app. It changes data in the customer's Xero account, so it stops with the exact request until a person approves it. Apideck adds the customer's Xero credentials, so no token ever reaches the agent.
The call
POST https://unify.apideck.com/accounting/bank-feed-accounts
Headers: x-apideck-service-id: xero, plus your app id and the customer's consumer id. Apideck MCP tool: accounting-bank-feed-accounts-add. Agent operation id: unified.accounting.bankFeedAccountsAdd.
Body fields
| Field | Type | Description |
|---|---|---|
| bank_account_type | string | Type of the bank account. |
| source_account_id | string | The source account's unique identifier. |
| source_routing_number | string | Bank routing number (US) |
| source_account_number | string | The bank account number |
| target_account_id | string | The target account's unique identifier in the accounting connector. |
| target_account_name | string | Name associated with the target account. |
| target_account_number | string | Account number of the destination bank account. |
| balance | number | The current balance of the source bank account. |
| available_balance | number | The available balance of the source bank account (considering pending transactions and overdraft). |
| currency | string | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ |
| feed_status | string | Current status of the bank feed. |
| status | string | Whether the data consumer may see this account. `revoked` hides it from the consumer without deleting it; `active` resto |
| country | string | Country code according to ISO 3166-1 alpha-2. |
| account_holders | array | The people or businesses that hold the source bank account. Optional; `plaid-exchange` requires at least one. |
| emails | array | Email addresses of the account holders. Optional; `plaid-exchange` requires at least one. |
| addresses | array | Addresses of the account holders. Optional; `plaid-exchange` requires at least one. |
| phone_numbers | array | Phone numbers of the account holders. Optional; `plaid-exchange` requires at least one. |
| custom_fields | array |
More for bank feed accounts in Xero
list_bank_feed_accountsget_bank_feed_accountdelete_bank_feed_account
Create bank feed account in other Accounting apps
The same call works for each of these; only the service id changes.