tipalti v0.1.0 Tipalti.API.Payer View Source

Payer functions.

Details are taken from: https://api.tipalti.com/v5/PayerFunctions.asmx

Link to this section Summary

Types

All Payer API responses are of this form

Functions

Get balances in your accounts

Link to this section Types

Link to this type payer_response() View Source
payer_response() :: {:ok, map()} | {:error, any()}

All Payer API responses are of this form.

Link to this section Functions

Link to this function get_balances() View Source
get_balances() :: payer_response()

Get balances in your accounts.

Returns account provider, account identifier, currency and amount in balance. Note: when submitting a payment, the balance may take some time before it is updated.

Examples

iex> get_balances()
  {:ok,
    %{
      account_infos: [
        %{
          account_identifier: "1234",
          balance: "1000",
          currency: "USD",
          provider: "Tipalti"
        }
      ]
    }}