Developers
Recipes

Accounts

List the chart of accounts for a business before you post anything to an account id.

GET /v1/business/{business_slug}/account/ returns the chart of accounts. The operation is Accounts - List.

Use the filters that page documents:

QueryUse
numberExact account number.
number_gte and number_lteA numeric range. Send them together.
typeAccount type values that page lists. Do not invent a type code.
searchNumber and name, as that page describes.
is_shownAccounts selected to be shown in the UI, when set true.
is_usedAccounts that have at least one entry, when set true.

Keep id from results when a later call asks for account_id, for example a product that posts to an account. Do not invent the id from the account number.

Creating an account is Account - Create. Hide and show are their own POSTs. They are not fields on the update body.

Journal headers are a different resource: Headers - List. A header is not an account. See Bookkeeping.