FreeAgent

App · 31 actions

Work with your FreeAgent accounts: contacts, projects, tasks and time, draft invoices, bank transactions and expenses.

Actions

ActionWhat it does
Create contactAdd a contact.
Create draft invoiceMake a draft invoice for a contact with one line.
Create expenseRecord an expense for a user, in a category, on a day.
Create projectStart a project for a contact, with an optional budget and billing rate.
Create taskAdd a task to a project, so time can be logged against it.
Create timeslipLog hours worked on a task of a project, for yourself or another user.
Delete contactDelete a contact.
Delete draft invoiceDelete an invoice that is still a draft.
Delete expenseDelete an expense.
Delete projectDelete a project.
Delete taskDelete a task.
Delete timeslipDelete a timeslip.
Get companyGet the FreeAgent company that's connected: its name, currency, type, address and sales tax status.
Get contactGet one contact with their e-mail, phone numbers, address and what they owe.
Get current userGet the FreeAgent user that's connected: name, e-mail, role and permission level.
Get invoiceGet one invoice with its lines, totals and what is still owed.
Get projectGet one project with its contact, budget and billing rate.
List bank accountsList the company's bank accounts with their balances.
List bank transactionsList the transactions of one bank account, by whether they are explained or by day range.
List categoriesList the categories an expense can be filed under, with their groups.
List contactsList contacts, such as clients and suppliers, by kind or last update.
List expensesList expenses by person, project or day range.
List invoicesList invoices by state, contact, project or last update, each with its lines.
List projectsList projects, optionally only those of one contact or in one state.
List tasksList tasks, optionally only those of one project.
List timeslipsList logged time, by project, task, person, day range or whether it is billed.
List usersList the people with access to the company.
Update contactChange a contact's details.
Update projectChange a project's name, status, budget, billing rate or dates.
Update taskChange a task's name, status or billing rate.
Update timeslipChange a timeslip's day, hours or comment.

Create contact

Add a contact. Give an organization, or a first and last name; e-mail, phone and address are optional.

Inputs

First namefirst_nametext
The contact's first name.
Last namelast_nametext
The contact's last name.
Organisationorganisation_nametext
The company the contact works for or is. A contact needs this, or both a first and a last name.
E-mailemailtext
The contact's e-mail address.
Billing e-mailbilling_emailtext
Where invoices are sent, if not the e-mail above.
Phonephone_numbertext
The contact's phone number.
Mobilemobiletext
The contact's mobile number.
Address line 1address1text
The first line of the address.
Address line 2address2text
The second line of the address.
Towntowntext
The town or city.
Regionregiontext
The county, state or region.
Postcodepostcodetext
The postcode or ZIP code.
Countrycountrytext
The country's name, such as United Kingdom.
Payment terms (days)default_payment_terms_in_daysnumber
How many days they have to pay an invoice, 0 to 365.From 0 to 365.

Outputs

contactobject
The contact as it was made
Example output
{
  "contact": {
    "account_balance": "example",
    "active_projects_count": 1,
    "address1": "example",
    "address2": "example",
    "billing_email": "example",
    "country": "example",
    "created_at": "example",
    "default_payment_terms_in_days": 1,
    "email": "example",
    "first_name": "example",
    "id": "12345",
    "last_name": "example",
    "mobile": "example",
    "organisation_name": "example",
    "phone_number": "example",
    "postcode": "example",
    "region": "example",
    "status": "example",
    "town": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Create draft invoice

Make a draft invoice for a contact with one line. It is never sent: open it in FreeAgent to review and send it.

Inputs

ContactcontacttextRequired
Who to bill.
Invoice datedated_ondateRequired
The date on the invoice.
Line descriptiondescriptiontextRequired
What the invoice line is for.
Unit pricepricenumberRequired
The price of one unit, before sales tax.
Quantityquantitynumber
How many units. Defaults to 1.
Unititem_typetext
What the quantity counts. Defaults to Services.One of: Hours, Days, Weeks, Months, Years, Products, Services, Training, Expenses, Comment, Discount, Credit.
Sales tax rate (%)sales_tax_ratenumber
The sales tax rate for the line, such as 20. Leave empty to let FreeAgent decide.At least 0.
Payment terms (days)payment_terms_in_daysnumber
How many days to pay. Defaults to 14.From 0 to 365.
Currencycurrencytext
A three-letter currency code, such as GBP. Defaults to the company's currency.
Invoice numberreferencetext
Leave empty to let FreeAgent number it.
Purchase orderpo_referencetext
The customer's purchase order reference.
Notescommentstext
Text shown on the invoice.

Outputs

invoiceobject
The draft invoice as it was made
Example output
{
  "invoice": {
    "comments": "example",
    "contact": "example",
    "contact_name": "example",
    "created_at": "example",
    "currency": "example",
    "dated_on": "example",
    "due_on": "example",
    "due_value": "example",
    "id": "12345",
    "invoice_items": [],
    "net_value": "example",
    "paid_value": "example",
    "payment_terms_in_days": 1,
    "po_reference": "example",
    "reference": "example",
    "status": "example",
    "total_value": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Create expense

Record an expense for a user, in a category, on a day. Enter the amount as a positive number.

Inputs

CategorycategorytextRequired
What kind of expense it is.
Datedated_ondateRequired
The day it was spent.
AmountamountnumberRequired
How much was spent, including tax, as a positive number such as 12.50.At least 0.
Descriptiondescriptiontext
What it was for.
Spent byusertext
Defaults to the signed-in user.
Projectprojecttext
Charge it to this project.

Outputs

expenseobject
The expense as it was made
Example output
{
  "expense": {
    "category": "example",
    "created_at": "example",
    "currency": "example",
    "dated_on": "example",
    "description": "example",
    "gross_value": "example",
    "id": "12345",
    "project": "example",
    "updated_at": "example",
    "url": "example",
    "user": "example"
  }
}

Create project

Start a project for a contact, with an optional budget and billing rate.

Inputs

ContactcontacttextRequired
The contact the project is for.
NamenametextRequired
The project's name.
Statusstatustext
Whether the project is active. Defaults to Active.One of: Active, Completed, Cancelled, Hidden.
Currencycurrencytext
A three-letter currency code, such as GBP. Defaults to the company's currency.
Budget inbudget_unitstext
What the budget counts. Defaults to Hours.One of: Hours, Days, Monetary (Money).
Budgetbudgetnumber
How much of the budget units the project has.At least 0.
Billing ratenormal_billing_ratenumber
What you usually charge per hour or day on this project.At least 0.
Billing rate perbilling_periodtext
Whether the billing rate is per hour or per day.One of: hour (Per hour), day (Per day).
Starts onstarts_ondate
The project's start date.
Ends onends_ondate
The project's end date.
Purchase ordercontract_po_referencetext
The customer's purchase order reference.

Outputs

projectobject
The project as it was made
Example output
{
  "project": {
    "billing_period": "example",
    "budget": 1,
    "budget_units": "example",
    "contact": "example",
    "contact_name": "example",
    "created_at": "example",
    "currency": "example",
    "ends_on": "example",
    "id": "12345",
    "name": "example",
    "normal_billing_rate": "example",
    "starts_on": "example",
    "status": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Create task

Add a task to a project, so time can be logged against it.

Inputs

ProjectprojecttextRequired
The project the task belongs to.
NamenametextRequired
The task's name.
Statusstatustext
Whether the task is active. Defaults to Active.One of: Active, Completed, Hidden.
Billableis_billabletrue/false
Whether time on the task can be billed.
Billing ratebilling_ratenumber
What you charge per hour or day for this task.At least 0.
Billing rate perbilling_periodtext
Whether the billing rate is per hour or per day.One of: hour (Per hour), day (Per day).

Outputs

taskobject
The task as it was made
Example output
{
  "task": {
    "billing_period": "example",
    "billing_rate": "example",
    "created_at": "example",
    "currency": "example",
    "id": "12345",
    "is_billable": true,
    "name": "example",
    "project": "example",
    "status": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Create timeslip

Log hours worked on a task of a project, for yourself or another user.

Inputs

ProjectprojecttextRequired
The project the time was spent on.
TasktasktextRequired
The task the time was spent on. Pick the project first.
Datedated_ondateRequired
The day the work was done.
HourshoursnumberRequired
How many hours were worked, such as 1.5.At least 0.
Who did the workusertext
Defaults to the signed-in user.
Commentcommenttext
A note on the work.

Outputs

timeslipobject
The timeslip as it was made
Example output
{
  "timeslip": {
    "billed_on_invoice": "example",
    "comment": "example",
    "created_at": "example",
    "dated_on": "example",
    "hours": "example",
    "id": "12345",
    "project": "example",
    "task": "example",
    "updated_at": "example",
    "url": "example",
    "user": "example"
  }
}

Delete contact

Delete a contact. FreeAgent refuses if the contact has invoices, bills or projects. This cannot be undone.

Inputs

Contact IDcontact_idtextRequired
The contact's id, from 'List contacts' or an earlier step.

Outputs

deletedtrue/false
Always true once deleted
idtext
The id of the record deleted
Example output
{
  "deleted": true,
  "id": "12345"
}

Delete draft invoice

Delete an invoice that is still a draft. FreeAgent refuses once it has been sent. This cannot be undone.

Inputs

Invoice IDinvoice_idtextRequired
The invoice's id, from 'List invoices' or an earlier step.

Outputs

deletedtrue/false
Always true once deleted
idtext
The id of the record deleted
Example output
{
  "deleted": true,
  "id": "12345"
}

Delete expense

Delete an expense. This cannot be undone.

Inputs

Expense IDexpense_idtextRequired
The expense's id, from 'List expenses' or an earlier step.

Outputs

deletedtrue/false
Always true once deleted
idtext
The id of the record deleted
Example output
{
  "deleted": true,
  "id": "12345"
}

Delete project

Delete a project. FreeAgent refuses if it has invoiced time or expenses. This cannot be undone.

Inputs

Project IDproject_idtextRequired
The project's id, from 'List projects' or an earlier step.

Outputs

deletedtrue/false
Always true once deleted
idtext
The id of the record deleted
Example output
{
  "deleted": true,
  "id": "12345"
}

Delete task

Delete a task. FreeAgent refuses if time is logged on it. This cannot be undone.

Inputs

Task IDtask_idtextRequired
The task's id, from 'List tasks' or an earlier step.

Outputs

deletedtrue/false
Always true once deleted
idtext
The id of the record deleted
Example output
{
  "deleted": true,
  "id": "12345"
}

Delete timeslip

Delete a timeslip. FreeAgent refuses if it is already billed. This cannot be undone.

Inputs

Timeslip IDtimeslip_idtextRequired
The timeslip's id, from 'List timeslips' or an earlier step.

Outputs

deletedtrue/false
Always true once deleted
idtext
The id of the record deleted
Example output
{
  "deleted": true,
  "id": "12345"
}

Get company

Get the FreeAgent company that's connected: its name, currency, type, address and sales tax status.

Inputs

None.

Outputs

companyobject
The company
Example output
{
  "company": {
    "address1": "example",
    "company_start_date": "example",
    "country": "example",
    "currency": "example",
    "id": "12345",
    "name": "example",
    "postcode": "example",
    "sales_tax_registration_status": "example",
    "subdomain": "example",
    "time_zone": "example",
    "town": "example",
    "type": "example",
    "url": "example"
  }
}

Get contact

Get one contact with their e-mail, phone numbers, address and what they owe.

Inputs

Contact IDcontact_idtextRequired
The contact's id, from 'List contacts' or an earlier step.

Outputs

contactobject
The contact
Example output
{
  "contact": {
    "account_balance": "example",
    "active_projects_count": 1,
    "address1": "example",
    "address2": "example",
    "billing_email": "example",
    "country": "example",
    "created_at": "example",
    "default_payment_terms_in_days": 1,
    "email": "example",
    "first_name": "example",
    "id": "12345",
    "last_name": "example",
    "mobile": "example",
    "organisation_name": "example",
    "phone_number": "example",
    "postcode": "example",
    "region": "example",
    "status": "example",
    "town": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Get current user

Get the FreeAgent user that's connected: name, e-mail, role and permission level.

Inputs

None.

Outputs

userobject
The user
Example output
{
  "user": {
    "created_at": "example",
    "email": "example",
    "first_name": "example",
    "hidden": true,
    "id": "12345",
    "last_name": "example",
    "permission_level": 1,
    "role": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Get invoice

Get one invoice with its lines, totals and what is still owed.

Inputs

Invoice IDinvoice_idtextRequired
The invoice's id, from 'List invoices' or an earlier step.

Outputs

invoiceobject
The invoice
Example output
{
  "invoice": {
    "comments": "example",
    "contact": "example",
    "contact_name": "example",
    "created_at": "example",
    "currency": "example",
    "dated_on": "example",
    "due_on": "example",
    "due_value": "example",
    "id": "12345",
    "invoice_items": [],
    "net_value": "example",
    "paid_value": "example",
    "payment_terms_in_days": 1,
    "po_reference": "example",
    "reference": "example",
    "status": "example",
    "total_value": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Get project

Get one project with its contact, budget and billing rate.

Inputs

Project IDproject_idtextRequired
The project's id, from 'List projects' or an earlier step.

Outputs

projectobject
The project
Example output
{
  "project": {
    "billing_period": "example",
    "budget": 1,
    "budget_units": "example",
    "contact": "example",
    "contact_name": "example",
    "created_at": "example",
    "currency": "example",
    "ends_on": "example",
    "id": "12345",
    "name": "example",
    "normal_billing_rate": "example",
    "starts_on": "example",
    "status": "example",
    "updated_at": "example",
    "url": "example"
  }
}

List bank accounts

List the company's bank accounts with their balances. An account's id is what 'List bank transactions' takes.

Inputs

Page sizepage_sizenumber
How many to return, 1 to 100. Defaults to 25.From 1 to 100.
Page numberpage_numbernumber
Which page to return, starting at 1. Use it with 'Has more' to read on.At least 1.

Outputs

bank_accountslist
The bank accounts
countnumber
How many came back on this page
has_moretrue/false
Whether a next page exists; raise the page number to get it
page_numbernumber
The page number returned
page_sizenumber
The page size used
totalnumber
How many match in all, as FreeAgent counts them
Example output
{
  "bank_accounts": [
    {
      "bank_name": "example",
      "currency": "example",
      "current_balance": "example",
      "id": "12345",
      "is_personal": true,
      "is_primary": true,
      "latest_activity_date": "example",
      "name": "example",
      "status": "example",
      "type": "example",
      "unexplained_transaction_count": 1,
      "url": "example"
    }
  ],
  "count": 1,
  "has_more": false,
  "page_number": 1,
  "page_size": 25,
  "total": 1
}

List bank transactions

List the transactions of one bank account, by whether they are explained or by day range. Gets one page; to see more, run it again with the next page it gives.

Inputs

Bank accountbank_accounttextRequired
The account to list transactions of.
Showviewtext
Which transactions to list. Defaults to all.One of: all (All transactions), unexplained, explained, manual (Added by hand), imported, marked_for_review (Marked for review).
From datefrom_datedate
Only those dated on or after this day.
To dateto_datedate
Only those dated on or before this day.
Updated sinceupdated_sincedate and time
Only those changed on or after this date and time.
Page sizepage_sizenumber
How many to return, 1 to 100. Defaults to 25.From 1 to 100.
Page numberpage_numbernumber
Which page to return, starting at 1. Use it with 'Has more' to read on.At least 1.

Outputs

bank_transactionslist
The bank transactions
countnumber
How many came back on this page
has_moretrue/false
Whether a next page exists; raise the page number to get it
page_numbernumber
The page number returned
page_sizenumber
The page size used
totalnumber
How many match in all, as FreeAgent counts them
Example output
{
  "bank_transactions": [
    {
      "amount": "example",
      "bank_account": "example",
      "created_at": "example",
      "dated_on": "example",
      "description": "example",
      "id": "12345",
      "is_manual": true,
      "unexplained_amount": "example",
      "updated_at": "example",
      "url": "example"
    }
  ],
  "count": 1,
  "has_more": false,
  "page_number": 1,
  "page_size": 25,
  "total": 1
}

List categories

List the categories an expense can be filed under, with their groups. A category's id is what 'Create expense' takes.

Inputs

None.

Outputs

categorieslist
The categories
countnumber
How many categories
Example output
{
  "categories": [
    {
      "allowable_for_tax": true,
      "description": "example",
      "group_description": "example",
      "id": "12345",
      "nominal_code": "example",
      "url": "example"
    }
  ],
  "count": 1
}

List contacts

List contacts, such as clients and suppliers, by kind or last update. Gets one page; to see more, run it again with the next page it gives.

Inputs

Showviewtext
Which contacts to list. Defaults to all.One of: all (All contacts), active (Active contacts), clients, suppliers, active_projects (With active projects), completed_projects (With completed projects), open_clients (Clients with open invoices), open_suppliers (Suppliers with open bills), hidden (Hidden contacts).
Updated sinceupdated_sincedate and time
Only those changed on or after this date and time.
Sort bysort_bytext
What to order the results by.One of: name, created_at (Date created), updated_at (Last updated).
Ordersort_ordertext
Ascending or descending. Defaults to ascending when 'Sort by' is set.One of: asc (Ascending), desc (Descending).
Page sizepage_sizenumber
How many to return, 1 to 100. Defaults to 25.From 1 to 100.
Page numberpage_numbernumber
Which page to return, starting at 1. Use it with 'Has more' to read on.At least 1.

Outputs

contactslist
The contacts
countnumber
How many came back on this page
has_moretrue/false
Whether a next page exists; raise the page number to get it
page_numbernumber
The page number returned
page_sizenumber
The page size used
totalnumber
How many match in all, as FreeAgent counts them
Example output
{
  "contacts": [
    {
      "account_balance": "example",
      "active_projects_count": 1,
      "address1": "example",
      "address2": "example",
      "billing_email": "example",
      "country": "example",
      "created_at": "example",
      "default_payment_terms_in_days": 1,
      "email": "example",
      "first_name": "example",
      "id": "12345",
      "last_name": "example",
      "mobile": "example",
      "organisation_name": "example",
      "phone_number": "example",
      "postcode": "example",
      "region": "example",
      "status": "example",
      "town": "example",
      "updated_at": "example",
      "url": "example"
    }
  ],
  "count": 1,
  "has_more": false,
  "page_number": 1,
  "page_size": 25,
  "total": 1
}

List expenses

List expenses by person, project or day range. Gets one page; to see more, run it again with the next page it gives.

Inputs

Showviewtext
Which expenses to list. Defaults to all.One of: all (All expenses), recurring (Recurring expenses).
Userusertext
Only those belonging to this user.
Projectprojecttext
Only those in this project.
From datefrom_datedate
Only those dated on or after this day.
To dateto_datedate
Only those dated on or before this day.
Updated sinceupdated_sincedate and time
Only those changed on or after this date and time.
Page sizepage_sizenumber
How many to return, 1 to 100. Defaults to 25.From 1 to 100.
Page numberpage_numbernumber
Which page to return, starting at 1. Use it with 'Has more' to read on.At least 1.

Outputs

countnumber
How many came back on this page
expenseslist
The expenses
has_moretrue/false
Whether a next page exists; raise the page number to get it
page_numbernumber
The page number returned
page_sizenumber
The page size used
totalnumber
How many match in all, as FreeAgent counts them
Example output
{
  "count": 1,
  "expenses": [
    {
      "category": "example",
      "created_at": "example",
      "currency": "example",
      "dated_on": "example",
      "description": "example",
      "gross_value": "example",
      "id": "12345",
      "project": "example",
      "updated_at": "example",
      "url": "example",
      "user": "example"
    }
  ],
  "has_more": false,
  "page_number": 1,
  "page_size": 25,
  "total": 1
}

List invoices

List invoices by state, contact, project or last update, each with its lines. Gets one page; to see more, run it again with the next page it gives.

Inputs

Showviewtext
Which invoices to list. Defaults to recent, open or overdue ones.One of: recent_open_or_overdue (Recent, open or overdue), open, overdue, open_or_overdue (Open or overdue), draft, paid, scheduled_to_email (Scheduled to be e-mailed), thank_you_emails (Waiting for a thank-you e-mail), reminder_emails (Waiting for a reminder e-mail).
Contactcontacttext
Only those for this contact.
Projectprojecttext
Only those in this project.
Updated sinceupdated_sincedate and time
Only those changed on or after this date and time.
Sort bysort_bytext
What to order the results by.One of: dated_on (Invoice date), created_at (Date created), updated_at (Last updated).
Ordersort_ordertext
Ascending or descending. Defaults to ascending when 'Sort by' is set.One of: asc (Ascending), desc (Descending).
Page sizepage_sizenumber
How many to return, 1 to 100. Defaults to 25.From 1 to 100.
Page numberpage_numbernumber
Which page to return, starting at 1. Use it with 'Has more' to read on.At least 1.

Outputs

countnumber
How many came back on this page
has_moretrue/false
Whether a next page exists; raise the page number to get it
invoiceslist
The invoices
page_numbernumber
The page number returned
page_sizenumber
The page size used
totalnumber
How many match in all, as FreeAgent counts them
Example output
{
  "count": 1,
  "has_more": false,
  "invoices": [
    {
      "comments": "example",
      "contact": "example",
      "contact_name": "example",
      "created_at": "example",
      "currency": "example",
      "dated_on": "example",
      "due_on": "example",
      "due_value": "example",
      "id": "12345",
      "invoice_items": [],
      "net_value": "example",
      "paid_value": "example",
      "payment_terms_in_days": 1,
      "po_reference": "example",
      "reference": "example",
      "status": "example",
      "total_value": "example",
      "updated_at": "example",
      "url": "example"
    }
  ],
  "page_number": 1,
  "page_size": 25,
  "total": 1
}

List projects

List projects, optionally only those of one contact or in one state. Gets one page; to see more, run it again with the next page it gives.

Inputs

Showviewtext
Which projects to list. Defaults to active ones.One of: active (Active projects), completed (Completed projects), cancelled (Canceled projects), hidden (Hidden projects).
Contactcontacttext
Only projects for this contact.
Updated sinceupdated_sincedate and time
Only those changed on or after this date and time.
Sort bysort_bytext
What to order the results by.One of: name, created_at (Date created), updated_at (Last updated).
Ordersort_ordertext
Ascending or descending. Defaults to ascending when 'Sort by' is set.One of: asc (Ascending), desc (Descending).
Page sizepage_sizenumber
How many to return, 1 to 100. Defaults to 25.From 1 to 100.
Page numberpage_numbernumber
Which page to return, starting at 1. Use it with 'Has more' to read on.At least 1.

Outputs

countnumber
How many came back on this page
has_moretrue/false
Whether a next page exists; raise the page number to get it
page_numbernumber
The page number returned
page_sizenumber
The page size used
projectslist
The projects
totalnumber
How many match in all, as FreeAgent counts them
Example output
{
  "count": 1,
  "has_more": false,
  "page_number": 1,
  "page_size": 25,
  "projects": [
    {
      "billing_period": "example",
      "budget": 1,
      "budget_units": "example",
      "contact": "example",
      "contact_name": "example",
      "created_at": "example",
      "currency": "example",
      "ends_on": "example",
      "id": "12345",
      "name": "example",
      "normal_billing_rate": "example",
      "starts_on": "example",
      "status": "example",
      "updated_at": "example",
      "url": "example"
    }
  ],
  "total": 1
}

List tasks

List tasks, optionally only those of one project. A task's id is what 'Create timeslip' takes. Gets one page; to see more, run it again with the next page it gives.

Inputs

Projectprojecttext
Only tasks in this project.
Showviewtext
Which tasks to list. Defaults to all.One of: all (All tasks), active (Active tasks), completed (Completed tasks), hidden (Hidden tasks).
Updated sinceupdated_sincedate and time
Only those changed on or after this date and time.
Page sizepage_sizenumber
How many to return, 1 to 100. Defaults to 25.From 1 to 100.
Page numberpage_numbernumber
Which page to return, starting at 1. Use it with 'Has more' to read on.At least 1.

Outputs

countnumber
How many came back on this page
has_moretrue/false
Whether a next page exists; raise the page number to get it
page_numbernumber
The page number returned
page_sizenumber
The page size used
taskslist
The tasks
totalnumber
How many match in all, as FreeAgent counts them
Example output
{
  "count": 1,
  "has_more": false,
  "page_number": 1,
  "page_size": 25,
  "tasks": [
    {
      "billing_period": "example",
      "billing_rate": "example",
      "created_at": "example",
      "currency": "example",
      "id": "12345",
      "is_billable": true,
      "name": "example",
      "project": "example",
      "status": "example",
      "updated_at": "example",
      "url": "example"
    }
  ],
  "total": 1
}

List timeslips

List logged time, by project, task, person, day range or whether it is billed. Gets one page; to see more, run it again with the next page it gives.

Inputs

Projectprojecttext
Only those in this project.
Task IDtasktext
Only time on this task, from 'List tasks' or an earlier step.
Userusertext
Only those belonging to this user.
Showviewtext
Which timeslips to list. Defaults to all.One of: all (All timeslips), unbilled (Not yet billed), running (Timers still running).
From datefrom_datedate
Only those dated on or after this day.
To dateto_datedate
Only those dated on or before this day.
Updated sinceupdated_sincedate and time
Only those changed on or after this date and time.
Page sizepage_sizenumber
How many to return, 1 to 100. Defaults to 25.From 1 to 100.
Page numberpage_numbernumber
Which page to return, starting at 1. Use it with 'Has more' to read on.At least 1.

Outputs

countnumber
How many came back on this page
has_moretrue/false
Whether a next page exists; raise the page number to get it
page_numbernumber
The page number returned
page_sizenumber
The page size used
timeslipslist
The timeslips
totalnumber
How many match in all, as FreeAgent counts them
Example output
{
  "count": 1,
  "has_more": false,
  "page_number": 1,
  "page_size": 25,
  "timeslips": [
    {
      "billed_on_invoice": "example",
      "comment": "example",
      "created_at": "example",
      "dated_on": "example",
      "hours": "example",
      "id": "12345",
      "project": "example",
      "task": "example",
      "updated_at": "example",
      "url": "example",
      "user": "example"
    }
  ],
  "total": 1
}

List users

List the people with access to the company. A user's id is what 'Create timeslip' and 'Create expense' take. Gets one page; to see more, run it again with the next page it gives.

Inputs

Page sizepage_sizenumber
How many to return, 1 to 100. Defaults to 25.From 1 to 100.
Page numberpage_numbernumber
Which page to return, starting at 1. Use it with 'Has more' to read on.At least 1.

Outputs

countnumber
How many came back on this page
has_moretrue/false
Whether a next page exists; raise the page number to get it
page_numbernumber
The page number returned
page_sizenumber
The page size used
totalnumber
How many match in all, as FreeAgent counts them
userslist
The users
Example output
{
  "count": 1,
  "has_more": false,
  "page_number": 1,
  "page_size": 25,
  "total": 1,
  "users": [
    {
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "hidden": true,
      "id": "12345",
      "last_name": "example",
      "permission_level": 1,
      "role": "example",
      "updated_at": "example",
      "url": "example"
    }
  ]
}

Update contact

Change a contact's details. Only the fields you fill in change.

Inputs

Contact IDcontact_idtextRequired
The contact's id, from 'List contacts' or an earlier step.
First namefirst_nametext
The contact's first name.
Last namelast_nametext
The contact's last name.
Organisationorganisation_nametext
The company the contact works for or is. A contact needs this, or both a first and a last name.
E-mailemailtext
The contact's e-mail address.
Billing e-mailbilling_emailtext
Where invoices are sent, if not the e-mail above.
Phonephone_numbertext
The contact's phone number.
Mobilemobiletext
The contact's mobile number.
Address line 1address1text
The first line of the address.
Address line 2address2text
The second line of the address.
Towntowntext
The town or city.
Regionregiontext
The county, state or region.
Postcodepostcodetext
The postcode or ZIP code.
Countrycountrytext
The country's name, such as United Kingdom.
Payment terms (days)default_payment_terms_in_daysnumber
How many days they have to pay an invoice, 0 to 365.From 0 to 365.

Outputs

contactobject
The contact as it is now
Example output
{
  "contact": {
    "account_balance": "example",
    "active_projects_count": 1,
    "address1": "example",
    "address2": "example",
    "billing_email": "example",
    "country": "example",
    "created_at": "example",
    "default_payment_terms_in_days": 1,
    "email": "example",
    "first_name": "example",
    "id": "12345",
    "last_name": "example",
    "mobile": "example",
    "organisation_name": "example",
    "phone_number": "example",
    "postcode": "example",
    "region": "example",
    "status": "example",
    "town": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Update project

Change a project's name, status, budget, billing rate or dates. Only the fields you fill in change.

Inputs

Project IDproject_idtextRequired
The project's id, from 'List projects' or an earlier step.
Namenametext
A new name.
Statusstatustext
Whether the project is active. Defaults to Active.One of: Active, Completed, Cancelled, Hidden.
Currencycurrencytext
A three-letter currency code, such as GBP. Defaults to the company's currency.
Budget inbudget_unitstext
What the budget counts. Defaults to Hours.One of: Hours, Days, Monetary (Money).
Budgetbudgetnumber
How much of the budget units the project has.At least 0.
Billing ratenormal_billing_ratenumber
What you usually charge per hour or day on this project.At least 0.
Billing rate perbilling_periodtext
Whether the billing rate is per hour or per day.One of: hour (Per hour), day (Per day).
Starts onstarts_ondate
The project's start date.
Ends onends_ondate
The project's end date.
Purchase ordercontract_po_referencetext
The customer's purchase order reference.

Outputs

projectobject
The project as it is now
Example output
{
  "project": {
    "billing_period": "example",
    "budget": 1,
    "budget_units": "example",
    "contact": "example",
    "contact_name": "example",
    "created_at": "example",
    "currency": "example",
    "ends_on": "example",
    "id": "12345",
    "name": "example",
    "normal_billing_rate": "example",
    "starts_on": "example",
    "status": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Update task

Change a task's name, status or billing rate. Only the fields you fill in change.

Inputs

Task IDtask_idtextRequired
The task's id, from 'List tasks' or an earlier step.
Namenametext
A new name.
Statusstatustext
Whether the task is active. Defaults to Active.One of: Active, Completed, Hidden.
Billableis_billabletrue/false
Whether time on the task can be billed.
Billing ratebilling_ratenumber
What you charge per hour or day for this task.At least 0.
Billing rate perbilling_periodtext
Whether the billing rate is per hour or per day.One of: hour (Per hour), day (Per day).

Outputs

taskobject
The task as it is now
Example output
{
  "task": {
    "billing_period": "example",
    "billing_rate": "example",
    "created_at": "example",
    "currency": "example",
    "id": "12345",
    "is_billable": true,
    "name": "example",
    "project": "example",
    "status": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Update timeslip

Change a timeslip's day, hours or comment. Only the fields you fill in change.

Inputs

Timeslip IDtimeslip_idtextRequired
The timeslip's id, from 'List timeslips' or an earlier step.
Datedated_ondate
A new date.
Hourshoursnumber
A new number of hours.At least 0.
Commentcommenttext
A new note.

Outputs

timeslipobject
The timeslip as it is now
Example output
{
  "timeslip": {
    "billed_on_invoice": "example",
    "comment": "example",
    "created_at": "example",
    "dated_on": "example",
    "hours": "example",
    "id": "12345",
    "project": "example",
    "task": "example",
    "updated_at": "example",
    "url": "example",
    "user": "example"
  }
}

On this page