Plaid.Identity (elixir_plaid v0.2.1) View Source

Plaid Identity API calls and schema.

Link to this section Summary

Functions

Get information about all available accounts.

Link to this section Types

Specs

t() :: %Plaid.Identity{
  addresses: [Plaid.Identity.Address.t()],
  emails: [Plaid.Identity.Email.t()],
  names: [String.t()],
  phone_numbers: [Plaid.Identity.PhoneNumber.t()]
}

Link to this section Functions

Link to this function

get(access_token, options \\ %{}, config)

View Source

Specs

get(String.t(), options, Plaid.config()) ::
  {:ok, Plaid.Identity.GetResponse.t()} | {:error, Plaid.Error.t()}
when options: %{optional(:account_ids) => [String.t()]}

Get information about all available accounts.

Does a POST /identity/get call to retrieve account information, along with the owners info for each account associated with an access_token's item.

Params:

  • access_token - Token to fetch identity for.

Options:

  • :account_ids - Specific account ids to fetch identity for.

Examples

Identity.get("access-sandbox-123xxx", client_id: "123", secret: "abc")
{:ok, %Identity.GetResponse{}}