# `Codat.BillPay.Companies`
[🔗](https://github.com/iamkanishka/codat.git/blob/v1.0.0/lib/codat/bill_pay/bill_pay.ex#L91)

Manage companies specifically for the Bill Pay solution.

Extends core company management with Bill Pay-specific operations,
such as fetching mapping options for payment accounts.

# `get_mapping_options`

```elixir
@spec get_mapping_options(Codat.Client.t() | String.t(), String.t() | keyword()) ::
  {:ok, map()} | {:error, Codat.Error.t()}
```

Returns the mapping options for a company — available bank accounts
and payment methods that can be used to pay bills.

## Example

    {:ok, options} = Codat.BillPay.Companies.get_mapping_options(client, company_id)
    options["expenseProvider"]  # => %{"bankAccounts" => [...]}

---

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