FeedConnections

Create Xero Bank Accounts and connect feeds to them

Changed on

Creates 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.

post/FeedConnections/NewAccount

Request

  • Base URL
    https://api.xero.com/bankfeeds.xro/2.0
  • URL
    https://api.xero.com/bankfeeds.xro/2.0/FeedConnections/NewAccount
  • Auth
    OAuth 2
    Authorization code: https://login.xero.com/identity/connect/authorize
    Token URL: https://identity.xero.com/connect/token scopes: bankfeedsv2

Headers

Xero-Tenant-Idstring required

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