BexioApiClient.Accounting (bexio_api_client v0.7.0)

Bexio API for the accounting part of the API.

Link to this section Summary

Functions

Fetch a list of account groups.

Fetch a list of accounts.

Fetch a list of calendar years.

Fetch a list of currencies.

Fetch a list of currency exchange rates.

Search accounts via query. The following search fields are supported

Link to this section Types

Link to this type

api_error_type()

@type api_error_type() :: BexioApiClient.Helpers.api_error_type()

Link to this section Functions

Link to this function

fetch_account_groups(req, opts \\ [])

Fetch a list of account groups.

Link to this function

fetch_accounts(req, opts \\ [])

Fetch a list of accounts.

Link to this function

fetch_calendar_years(req, opts \\ [])

Fetch a list of calendar years.

Link to this function

fetch_currencies(req, opts \\ [])

Fetch a list of currencies.

Link to this function

fetch_exchange_rates(req, id, opts \\ [])

Fetch a list of currency exchange rates.

Link to this function

fetch_taxes(req, date \\ nil, types \\ nil, opts \\ [])

@spec fetch_taxes(
  req :: Req.Request.t(),
  date :: Date.t() | nil,
  types :: :sales_tax | :pre_tax | nil,
  opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()]
) :: {:ok, [BexioApiClient.Accounting.Tax.t()]} | api_error_type()

Fetch a list of taxes.

Arguments:

  • date - all taxes which are active at the date given
  • types - filter the types of tax (:sales_tax or :pre_tax)
Link to this function

search_accounts(req, criteria, opts \\ [])

Search accounts via query. The following search fields are supported:

  • account_no
  • fibo_account_group_id (TODO: test this)
  • name
  • account_type