Company

List bank accounts not yet assigned to the company

Returns the bank accounts that have not been marked as company accounts, each with a flag saying whether it could be one and, when it could not, the reason. Meant for the self-managed question.

GET
https://api.portal.magicdoor.com/company-app/companies/self-managed/unassigned-bank-accounts

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Response

200 · The bank accounts, as a plain array with no pagination envelope.

idstring

The bank account. A Snowflake id sent as a decimal string.

namestring

Account name.

descriptionstring

What the account is for. Absent when none was set.

activeboolean

Whether the account is still in use.

accountNumberstring

Last four digits of the account number. Absent when no number is on file.

routingNumberstring

Last four digits of the routing number. Absent when no number is on file.

typeenum<string>

What kind of account it is. Absent when not recorded.

checkingsavings
scheduledSweepDaysinteger[]

Days of the month the account is swept on.

chartOfAccountIdsstring[]

The chart of accounts this bank account posts to.

companyAccountboolean

Whether the account already belongs to the company.

creatorobject

Who created the record.

cannotBeCompanyAccountboolean

True when this account cannot be made a company account.

cannotBeCompanyAccountReasonstring

Why it cannot. Present whenever cannotBeCompanyAccount is true.

401 · The access token is missing, expired, or not valid for this company.

Account and routing numbers are masked down to their last four digits. The full numbers are never returned.