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:
| Query | Use |
|---|---|
number | Exact account number. |
number_gte and number_lte | A numeric range. Send them together. |
type | Account type values that page lists. Do not invent a type code. |
search | Number and name, as that page describes. |
is_shown | Accounts selected to be shown in the UI, when set true. |
is_used | Accounts 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.