BexioApiClient. Others
(bexio_api_client v2.0.0)
Copy Markdown
Bexio API for the other endpoints.
Summary
Functions
Create a country.
Create a fictional user, the id of the fictional user will be ignored!
Create a note.
Create a task.
Create a unit.
Delete a country.
Create a fictional user
Delete a note.
Delete a task.
Delete a unit.
Edit a country.
Edit a note.
Edut a task.
Edit a unit.
Fetch a single company profile
Fetch a list of company profiles.
Fetch a list of countries.
Fetch a single country
Fetch a list of document templates.
Fetch a fictional user.
Fetch a list of fictional users.
Fetch a list of languages.
Fetch the authenticated user.
Fetch a note.
Fetch a list of notes.
Fetch a list of payment types.
Fetch a task.
Fetch a list of task priorities.
Fetch a list of task status.
Fetch a list of tasks.
Fetch a unit.
Fetch a list of units.
Fetch a single user.
Fetch a list of users.
Get access information of logged in user
Search countries via query. The following search fields are supported
Search languages via query. The following search fields are supported
Search a note
Search a payment type
Search a task
Search a unit
Create a fictional user
Types
Functions
@spec create_country( req :: Req.Request.t(), country :: BexioApiClient.Others.Country.t() ) :: {:ok, BexioApiClient.Others.Country.t()} | api_error_type()
Create a country.
@spec create_fictional_user( req :: Req.Request.t(), finctional_user :: BexioApiClient.Others.FictionalUser.t() ) :: {:ok, BexioApiClient.Others.FictionalUser.t()} | api_error_type()
Create a fictional user, the id of the fictional user will be ignored!
@spec create_note(req :: Req.Request.t(), note :: BexioApiClient.Others.Note.t()) :: {:ok, Task.t()} | api_error_type()
Create a note.
@spec create_task(req :: Req.Request.t(), task :: Task.t()) :: {:ok, Task.t()} | api_error_type()
Create a task.
@spec create_unit(req :: Req.Request.t(), name :: String.t()) :: {:ok, %{id: integer(), name: String.t()}} | api_error_type()
Create a unit.
@spec delete_country(req :: Req.Request.t(), id :: integer()) :: {:ok, boolean()} | api_error_type()
Delete a country.
@spec delete_fictional_user(req :: Req.Request.t(), id :: integer()) :: {:ok, true | false} | api_error_type()
Create a fictional user
@spec delete_note(req :: Req.Request.t(), id :: integer()) :: {:ok, boolean()} | api_error_type()
Delete a note.
@spec delete_task(req :: Req.Request.t(), id :: integer()) :: {:ok, Task.t()} | api_error_type()
Delete a task.
@spec delete_unit(req :: Req.Request.t(), id :: integer()) :: {:ok, Task.t()} | api_error_type()
Delete a unit.
@spec edit_country( req :: Req.Request.t(), country :: BexioApiClient.Others.Country.t() ) :: {:ok, BexioApiClient.Others.Country.t()} | api_error_type()
Edit a country.
@spec edit_note(req :: Req.Request.t(), note :: BexioApiClient.Others.Note.t()) :: {:ok, BexioApiClient.Others.Note.t()} | api_error_type()
Edit a note.
@spec edit_task(req :: Req.Request.t(), task :: Task.t()) :: {:ok, Task.t()} | api_error_type()
Edut a task.
@spec edit_unit(req :: Req.Request.t(), id :: integer(), name :: String.t()) :: {:ok, %{id: integer(), name: String.t()}} | api_error_type()
Edit a unit.
@spec fetch_company_profile(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, BexioApiClient.Others.CompanyProfile.t()} | api_error_type()
Fetch a single company profile
@spec fetch_company_profiles(req :: Req.Request.t()) :: {:ok, [BexioApiClient.Others.CompanyProfile.t()]} | api_error_type()
Fetch a list of company profiles.
@spec fetch_countries(req :: Req.Request.t()) :: {:ok, [BexioApiClient.Others.Country.t()]} | api_error_type()
Fetch a list of countries.
@spec fetch_country(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, BexioApiClient.Others.Country.t()} | api_error_type()
Fetch a single country
@spec fetch_document_templates(req :: Req.Request.t()) :: {:ok, [BexioApiClient.Others.DocumentTemplate.t()]} | api_error_type()
Fetch a list of document templates.
@spec fetch_fictional_user(req :: Req.Request.t(), id :: integer()) :: {:ok, BexioApiClient.Others.FictionalUser.t()} | api_error_type()
Fetch a fictional user.
@spec fetch_fictional_users(req :: Req.Request.t()) :: {:ok, [BexioApiClient.Others.FictionalUser.t()]} | api_error_type()
Fetch a list of fictional users.
@spec fetch_languages(req :: Req.Request.t()) :: {:ok, [BexioApiClient.Others.Language.t()]} | api_error_type()
Fetch a list of languages.
@spec fetch_me(req :: Req.Request.t()) :: {:ok, BexioApiClient.Others.User.t()} | api_error_type()
Fetch the authenticated user.
@spec fetch_note(req :: Req.Request.t(), id :: integer()) :: {:ok, BexioApiClient.Others.Note.t()} | api_error_type()
Fetch a note.
@spec fetch_notes( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.Others.Note.t()]} | api_error_type()
Fetch a list of notes.
@spec fetch_payment_types( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, map()} | api_error_type()
Fetch a list of payment types.
@spec fetch_task(req :: Req.Request.t(), id :: integer()) :: {:ok, Task.t()} | api_error_type()
Fetch a task.
@spec fetch_task_priorities( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, map()} | api_error_type()
Fetch a list of task priorities.
@spec fetch_task_status( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, map()} | api_error_type()
Fetch a list of task status.
@spec fetch_tasks( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [Task.t()]} | api_error_type()
Fetch a list of tasks.
@spec fetch_unit(req :: Req.Request.t(), id :: integer()) :: {:ok, %{id: integer(), name: String.t()}} | api_error_type()
Fetch a unit.
@spec fetch_units( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, map()} | api_error_type()
Fetch a list of units.
@spec fetch_user(req :: Req.Request.t(), user_id :: non_neg_integer()) :: {:ok, BexioApiClient.Others.User.t()} | api_error_type()
Fetch a single user.
@spec fetch_users(req :: Req.Request.t()) :: {:ok, [BexioApiClient.Others.User.t()]} | api_error_type()
Fetch a list of users.
@spec get_access_information(req :: Req.Request.t()) :: {:ok, BexioApiClient.Others.Permission.t()} | api_error_type()
Get access information of logged in user
@spec search_countries( req :: Req.Request.t(), criteria :: [BexioApiClient.SearchCriteria.t()], opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.Others.Country.t()]} | api_error_type()
Search countries via query. The following search fields are supported:
- name
- name_short
@spec search_languages( req :: Req.Request.t(), criteria :: [BexioApiClient.SearchCriteria.t()], opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.Others.Language.t()]} | api_error_type()
Search languages via query. The following search fields are supported:
- name
- iso_639_1
@spec search_notes( req :: Req.Request.t(), criteria :: [BexioApiClient.SearchCriteria.t()], opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.Others.Note.t()]} | api_error_type()
Search a note
Following fields are supported:
event_startcontact_iduser_idsubjectmodule_identry_id
@spec search_payment_types( req :: Req.Request.t(), criteria :: [BexioApiClient.SearchCriteria.t()], opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, map()} | api_error_type()
Search a payment type
Following fields are supported:
name
@spec search_tasks( req :: Req.Request.t(), criteria :: [BexioApiClient.SearchCriteria.t()], opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [Task.t()]} | api_error_type()
Search a task
Following fields are supported:
subjectupdated_atuser_idcontact_idtodo_status_idmodule_identry_id
@spec search_units( req :: Req.Request.t(), criteria :: [BexioApiClient.SearchCriteria.t()], opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, map()} | api_error_type()
Search a unit
Following fields are supported:
name
@spec update_fictional_user( req :: Req.Request.t(), fictional_user :: BexioApiClient.Others.FictionalUser.t() ) :: {:ok, BexioApiClient.Others.FictionalUser.t()} | api_error_type()
Create a fictional user