frex v0.1.3 Frex.Client.Expenses

Client module for interacting with the Freshbooks API.

Expenses that are not associated with a client are represented by client_id as 0. Staff have access to the API calls listed below, but they can only access expenses that belong to them or are assigned to clients they are assigned to.

IMPORTANT: Expense amounts include taxes. If Expense amount = $100 and tax percent = 5%, then tax amount should be $4.76. This is because the before tax amount is $95.24 and the 5% tax is $4.76, which yields a total of $100, the expense amount.

Summary

Functions

Return the complete expense details associated with the given expense_id

Returns a list of expense summaries. You can filter by client_id, category_id, project_id, date_from, date_to or vendor optionally

Functions

get(credentials, expense_id)

Return the complete expense details associated with the given expense_id.

Parameters

  • expense_id (required) — expense ID
list(credentials, filters \\ %{})

Returns a list of expense summaries. You can filter by client_id, category_id, project_id, date_from, date_to or vendor optionally.

Parameters

  • filters (optional) — a map of filters for the list request

    • client_id
    • date_from
    • date_to
    • folder