# `ExFattureincloud.Cashbook`
[🔗](https://github.com/elchemista/ex_fattureincloud/blob/v0.1.0/lib/ex_fattureincloud/resources/cashbook.ex#L2)

Operations in the Fatture in Cloud Cashbook resource.

# `create_cashbook_entry`

```elixir
@spec create_cashbook_entry(
  ExFattureincloud.Client.t(),
  ExFattureincloud.API.path_parameter(),
  map() | nil,
  ExFattureincloud.API.parameters()
) :: ExFattureincloud.Response.result()
```

Creates a new cashbook entry.

Sends `POST /c/{company_id}/cashbook` (`createCashbookEntry`).

Pass the JSON body with the provider's envelope. Use `nil` to omit it.

# `delete_cashbook_entry`

```elixir
@spec delete_cashbook_entry(
  ExFattureincloud.Client.t(),
  ExFattureincloud.API.path_parameter(),
  ExFattureincloud.API.path_parameter(),
  ExFattureincloud.API.parameters()
) :: ExFattureincloud.Response.result()
```

Deletes the specified cashbook entry.

Sends `DELETE /c/{company_id}/cashbook/{document_id}` (`deleteCashbookEntry`).

# `get_cashbook_entry`

```elixir
@spec get_cashbook_entry(
  ExFattureincloud.Client.t(),
  ExFattureincloud.API.path_parameter(),
  ExFattureincloud.API.path_parameter(),
  ExFattureincloud.API.parameters()
) :: ExFattureincloud.Response.result()
```

Gets the specified cashbook entry.

Sends `GET /c/{company_id}/cashbook/{document_id}` (`getCashbookEntry`).

## Query options

* `:fields` (string)
* `:fieldset` (string, one of `"basic"`, `"detailed"`, `"fic_view"`)

# `list_cashbook_entries`

```elixir
@spec list_cashbook_entries(
  ExFattureincloud.Client.t(),
  ExFattureincloud.API.path_parameter(),
  ExFattureincloud.API.parameters()
) :: ExFattureincloud.Response.result()
```

Lists the cashbook entries.

Sends `GET /c/{company_id}/cashbook` (`listCashbookEntries`).

## Query options

* `:date_from` (string, required)
* `:date_to` (string, required)
* `:year` (integer)
* `:type` (string, one of `"all"`, `"in"`, `"out"`)
* `:payment_account_id` (integer)

# `modify_cashbook_entry`

```elixir
@spec modify_cashbook_entry(
  ExFattureincloud.Client.t(),
  ExFattureincloud.API.path_parameter(),
  ExFattureincloud.API.path_parameter(),
  map() | nil,
  ExFattureincloud.API.parameters()
) :: ExFattureincloud.Response.result()
```

Modifies the specified cashbook entry.

Sends `PUT /c/{company_id}/cashbook/{document_id}` (`modifyCashbookEntry`).

Pass the JSON body with the provider's envelope. Use `nil` to omit it.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
