Create Xero Bank Accounts and connect feeds to them
Changed onCreates a new Xero Bank Account for each item and connects a feed to it.
accountId must not be supplied. An item that includes one — including an all-zeros GUID, or a value that is not a GUID at all — is rejected, because supplying an account identifier means the Application intends to connect an account that already exists, which is what /FeedConnections/ExistingAccount is for.
accountNumber and accountName are required here, since they describe the account being created. If the Organisation already has an account with the requested name, the item is rejected with account-name-already-exists naming that account, and no account is created. The same applies to a second item in the same request that uses a name an earlier item has just taken.
Request
- Base URLhttps://api.xero.com/bankfeeds.xro/2.0
- URLhttps://api.xero.com/bankfeeds.xro/2.0/FeedConnections/NewAccount
- AuthOAuth 2Authorization code: https://login.xero.com/identity/connect/authorizeToken URL: https://identity.xero.com/connect/token scopes: bankfeedsv2
Headers
Xero identifier for Tenant
Request body
Response
All items are 2xx: each one reached its desired state, and there is nothing left for you to do. A created item has status SUCCESS and statusCode 201.
A response that mixes successful items with rejected or partially failed ones is a 207, not a 200.
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking