Bank Feeds

Add a bank feed

Gives one bank or card account its Bank Feeds card. Pass exactly one of: chartAccountId (any active asset or liability account in the Chart of Accounts; its register is reused or created, and no new chart account is made), an existing bankAccountId, or newAccount fields. mode tells the caller what comes next: bank opens bank sign-in for this account, files opens the CSV upload. A feed can be connected to a bank, used with files only, or both. Adding a feed that already shows is a no-op (alreadyExisted=true); adding a hidden feed shows it again.

post/bank-feeds

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/bank-feeds
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Request body

bankAccountIdstring uuid

Existing bank or card account

chartAccountIdstring uuid

Existing active asset or liability Chart of Accounts account the feed posts to

mode'bank' | 'files' required

Response

{ bankAccountId, mode, createdAccount, alreadyExisted }

Changes

No recorded changes to this operation across all 5 revisions of this API.