# `ExFattureincloud.API`
[🔗](https://github.com/elchemista/ex_fattureincloud/blob/v0.1.0/lib/ex_fattureincloud/api.ex#L1)

Operation dispatcher using the pinned official OpenAPI contract.

Resource modules call this dispatcher. It checks path parameters, required query
parameters, enum values and numeric bounds before sending a request. Body maps
retain the official envelope (usually `%{data: %{...}}`) and are sent as supplied;
business rules and nested body validation belong to the API.

    ExFattureincloud.call(client, :list_issued_documents,
      path: [company_id: 123], query: [type: "invoice", per_page: 50])

`ExFattureincloud.Operations.all/0` exposes the complete operation catalog.

# `options`

```elixir
@type options() :: [
  path: parameters(),
  query: parameters(),
  body: map() | nil,
  multipart: list()
]
```

Operation arguments passed to the dispatcher.

# `parameters`

```elixir
@type parameters() :: keyword() | %{optional(atom() | String.t()) =&gt; term()}
```

Path or query parameters with atom or string keys.

# `path_parameter`

```elixir
@type path_parameter() :: pos_integer() | String.t()
```

A path argument, supplied as a positive integer ID or a string segment.

# `call`

```elixir
@spec call(ExFattureincloud.Client.t(), ExFattureincloud.Operations.id(), options()) ::
  ExFattureincloud.Response.result()
```

Validates an operation's parameters and sends its request.

Use `:path` for the parameters required by the route and `:query` for URL
query parameters. Use `:body` for a JSON envelope or `:multipart` for upload
fields as specified by the operation.

---

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