60% Off for 3 Months

Introduction to the Clients API

A client in the new FreshBooks is a resource representing an entity you send invoices to

The primary identifier of a client is an automatically assigned positive integer id (not the email address)

Access Requirements

Access

Requires Authorization

Scopes

user:clients:read
user:clients:write

Includes

Include

Description

outstanding_balance

include client's outstanding balance

credit_balance

include client's current balance of credit

draft_balance

include balance of draft invoices for client

overdue_balance

include overdue balance for the Client

grand_total_balance

include grand total for client

last_activity

include last activity

late_reminders

include information about late reminders

late_fee

include information about late fees

Searches / Filters

/accounting/account/<ACCOUNT_ID>/users/clients?search[%Name%]=<SEARCH_TERM> will search %Field% with the %Filter Type%

Name

Field

Filter Type

Description

address_like

address

Like

matches address fields containing the parameter

email

email

Equals

matches exact email

has_credit

special

Equals

no input, filters to clients with credit to apply

has_draft

special

Equals

no input, filters to clients with draft invoices

has_outstanding

special

Equals

no input, filters to clients with outstanding invoices

has_overdue

special

Equals

no input, filters to clients with overdue invoices

fname_like

fname

Like

matches first names containing the parameter

lname_like

lname

Like

matches last names containing the parameter

note_like

note

Like

matches notes containing the parameter

organization _like

organization

Like

matches organizations containing the parameter

phone_like

special

Like

matches mobile phone, home phone, business, phone, or fax containing the parameter

updated_min

updated

Between

updated date greater than or equal to parameter, YYYY-MM-DD format

updated_max

updated

Between

updated date less than parameter, YYYY-MM-DD format

user_like

special

Like

matches fname, lname, or organization containing the parameter

userid

userid

Equals

matches exact userid

userids

userid

In

matches list of userids, one specified per query arginput several userids to be matched

username

username

Equals

matches username exactly

vis_state

vis_state

Equals

matches vis_state exactly

email_like

email

Like

matches client's email addresses containing the parameter

Sort Fields

Sort Field

Description

client_id

Sort by the id of the clients

organization_name

Sort by the name of the client organizations alphabetically

email

Sort by the email of the clients

bus_phone

Sort by the business phone number of the clients

updated

Sort by the time the clients were last updated at

fullname

Sort by the last name followed by the first name of the clients (eg. Jim Ayers, Alex Cass, Ben Cass)

primarycontact

Sort by the first name followed by the last name of the clients (eg. Alex Ayers, Alex Cass, Justin Lee)

outstanding

Sort by the outstanding invoice amounts of the clients

overdue

Sort by the overdue invoice amounts of the clients

credit

Sort by the total credit amounts of the clients

Field Descriptions

Field

Type

Description

accounting _systemid

string

unique identifier of business client exists on

allow_late_fees

bool

deprecated

allow_late _notifications

bool

deprecated

bus_phone

string

business phone number

company_industry

string

description of industry client is in

company_size

string

size of client's company

currency_code

string

3-letter shortcode for preferred currency

direct_link_token

string

deprecated

email

string

email

fax

string

fax number

fname

string

first name

home_phone

string

home phone number

id

int

unique to this business id for client

language

string

shortcode indicating user language e.g. "en"

last_activity

string

last client activity action

last_login

datetime

last login time

level

int

deprecated: indication of access level on system

lname

string

last name

mob_phone

string

mobile phone number

note

string

notes kept by admin about client

notified

bool

deprecated

num_logins

int

number of logins

organization

string

name for client's business

p_city

string

billing city

p_code

string

billing postal code

p_country

string

billing country

p_province

string

billing province

p_street

string

billing street address

p_street2

string

billing street address second part

pref_email

bool

prefers email over ground mail

pref_gmail

bool

prefers ground mail over email

s_city

string

shipping address city

s_code

string

shipping postal code

s_country

string

shipping country

s_province

string

short form for province

s_street

string

shipping street address

s_street2

string

shipping address second street info

signup_date

datetime

time of user signup

statement_token

string

deprecated

subdomain

string

unused in the new FreshBooks

updated

datetime

time of last modification to resource

userid

int

duplicate of id

username

string

deprecated: username used by the client to log into FreshBooks Classic

vat_name

string

Value Added Tax name

vat_number

string

Value Added Tax number

vis_state

int

"visibility state", active, deleted, or archived