FreeAgent
App · 31 actions
Work with your FreeAgent accounts: contacts, projects, tasks and time, draft invoices, bank transactions and expenses.
Actions
| Action | What it does |
|---|---|
| Create contact | Add a contact. |
| Create draft invoice | Make a draft invoice for a contact with one line. |
| Create expense | Record an expense for a user, in a category, on a day. |
| Create project | Start a project for a contact, with an optional budget and billing rate. |
| Create task | Add a task to a project, so time can be logged against it. |
| Create timeslip | Log hours worked on a task of a project, for yourself or another user. |
| Delete contact | Delete a contact. |
| Delete draft invoice | Delete an invoice that is still a draft. |
| Delete expense | Delete an expense. |
| Delete project | Delete a project. |
| Delete task | Delete a task. |
| Delete timeslip | Delete a timeslip. |
| Get company | Get the FreeAgent company that's connected: its name, currency, type, address and sales tax status. |
| Get contact | Get one contact with their e-mail, phone numbers, address and what they owe. |
| Get current user | Get the FreeAgent user that's connected: name, e-mail, role and permission level. |
| Get invoice | Get one invoice with its lines, totals and what is still owed. |
| Get project | Get one project with its contact, budget and billing rate. |
| List bank accounts | List the company's bank accounts with their balances. |
| List bank transactions | List the transactions of one bank account, by whether they are explained or by day range. |
| List categories | List the categories an expense can be filed under, with their groups. |
| List contacts | List contacts, such as clients and suppliers, by kind or last update. |
| List expenses | List expenses by person, project or day range. |
| List invoices | List invoices by state, contact, project or last update, each with its lines. |
| List projects | List projects, optionally only those of one contact or in one state. |
| List tasks | List tasks, optionally only those of one project. |
| List timeslips | List logged time, by project, task, person, day range or whether it is billed. |
| List users | List the people with access to the company. |
| Update contact | Change a contact's details. |
| Update project | Change a project's name, status, budget, billing rate or dates. |
| Update task | Change a task's name, status or billing rate. |
| Update timeslip | Change 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 name
first_nametext - The contact's first name.
- Last name
last_nametext - The contact's last name.
- Organisation
organisation_nametext - The company the contact works for or is. A contact needs this, or both a first and a last name.
- E-mail
emailtext - The contact's e-mail address.
- Billing e-mail
billing_emailtext - Where invoices are sent, if not the e-mail above.
- Phone
phone_numbertext - The contact's phone number.
- Mobile
mobiletext - The contact's mobile number.
- Address line 1
address1text - The first line of the address.
- Address line 2
address2text - The second line of the address.
- Town
towntext - The town or city.
- Region
regiontext - The county, state or region.
- Postcode
postcodetext - The postcode or ZIP code.
- Country
countrytext - 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
- Contact
contacttextRequired - Who to bill.
- Invoice date
dated_ondateRequired - The date on the invoice.
- Line description
descriptiontextRequired - What the invoice line is for.
- Unit price
pricenumberRequired - The price of one unit, before sales tax.
- Quantity
quantitynumber - How many units. Defaults to 1.
- Unit
item_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.
- Currency
currencytext - A three-letter currency code, such as GBP. Defaults to the company's currency.
- Invoice number
referencetext - Leave empty to let FreeAgent number it.
- Purchase order
po_referencetext - The customer's purchase order reference.
- Notes
commentstext - 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
- Category
categorytextRequired - What kind of expense it is.
- Date
dated_ondateRequired - The day it was spent.
- Amount
amountnumberRequired - How much was spent, including tax, as a positive number such as 12.50.At least 0.
- Description
descriptiontext - What it was for.
- Spent by
usertext - Defaults to the signed-in user.
- Project
projecttext - 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
- Contact
contacttextRequired - The contact the project is for.
- Name
nametextRequired - The project's name.
- Status
statustext - Whether the project is active. Defaults to Active.One of:
Active,Completed,Cancelled,Hidden. - Currency
currencytext - A three-letter currency code, such as GBP. Defaults to the company's currency.
- Budget in
budget_unitstext - What the budget counts. Defaults to Hours.One of:
Hours,Days,Monetary(Money). - Budget
budgetnumber - How much of the budget units the project has.At least 0.
- Billing rate
normal_billing_ratenumber - What you usually charge per hour or day on this project.At least 0.
- Billing rate per
billing_periodtext - Whether the billing rate is per hour or per day.One of:
hour(Per hour),day(Per day). - Starts on
starts_ondate - The project's start date.
- Ends on
ends_ondate - The project's end date.
- Purchase order
contract_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
- Project
projecttextRequired - The project the task belongs to.
- Name
nametextRequired - The task's name.
- Status
statustext - Whether the task is active. Defaults to Active.One of:
Active,Completed,Hidden. - Billable
is_billabletrue/false - Whether time on the task can be billed.
- Billing rate
billing_ratenumber - What you charge per hour or day for this task.At least 0.
- Billing rate per
billing_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
- Project
projecttextRequired - The project the time was spent on.
- Task
tasktextRequired - The task the time was spent on. Pick the project first.
- Date
dated_ondateRequired - The day the work was done.
- Hours
hoursnumberRequired - How many hours were worked, such as 1.5.At least 0.
- Who did the work
usertext - Defaults to the signed-in user.
- Comment
commenttext - 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 ID
contact_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 ID
invoice_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 ID
expense_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 ID
project_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 ID
task_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 ID
timeslip_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 ID
contact_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 ID
invoice_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 ID
project_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 size
page_sizenumber - How many to return, 1 to 100. Defaults to 25.From 1 to 100.
- Page number
page_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 account
bank_accounttextRequired - The account to list transactions of.
- Show
viewtext - 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 date
from_datedate - Only those dated on or after this day.
- To date
to_datedate - Only those dated on or before this day.
- Updated since
updated_sincedate and time - Only those changed on or after this date and time.
- Page size
page_sizenumber - How many to return, 1 to 100. Defaults to 25.From 1 to 100.
- Page number
page_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
- Show
viewtext - 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 since
updated_sincedate and time - Only those changed on or after this date and time.
- Sort by
sort_bytext - What to order the results by.One of:
name,created_at(Date created),updated_at(Last updated). - Order
sort_ordertext - Ascending or descending. Defaults to ascending when 'Sort by' is set.One of:
asc(Ascending),desc(Descending). - Page size
page_sizenumber - How many to return, 1 to 100. Defaults to 25.From 1 to 100.
- Page number
page_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
- Show
viewtext - Which expenses to list. Defaults to all.One of:
all(All expenses),recurring(Recurring expenses). - User
usertext - Only those belonging to this user.
- Project
projecttext - Only those in this project.
- From date
from_datedate - Only those dated on or after this day.
- To date
to_datedate - Only those dated on or before this day.
- Updated since
updated_sincedate and time - Only those changed on or after this date and time.
- Page size
page_sizenumber - How many to return, 1 to 100. Defaults to 25.From 1 to 100.
- Page number
page_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
- Show
viewtext - 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). - Contact
contacttext - Only those for this contact.
- Project
projecttext - Only those in this project.
- Updated since
updated_sincedate and time - Only those changed on or after this date and time.
- Sort by
sort_bytext - What to order the results by.One of:
dated_on(Invoice date),created_at(Date created),updated_at(Last updated). - Order
sort_ordertext - Ascending or descending. Defaults to ascending when 'Sort by' is set.One of:
asc(Ascending),desc(Descending). - Page size
page_sizenumber - How many to return, 1 to 100. Defaults to 25.From 1 to 100.
- Page number
page_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
- Show
viewtext - Which projects to list. Defaults to active ones.One of:
active(Active projects),completed(Completed projects),cancelled(Canceled projects),hidden(Hidden projects). - Contact
contacttext - Only projects for this contact.
- Updated since
updated_sincedate and time - Only those changed on or after this date and time.
- Sort by
sort_bytext - What to order the results by.One of:
name,created_at(Date created),updated_at(Last updated). - Order
sort_ordertext - Ascending or descending. Defaults to ascending when 'Sort by' is set.One of:
asc(Ascending),desc(Descending). - Page size
page_sizenumber - How many to return, 1 to 100. Defaults to 25.From 1 to 100.
- Page number
page_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
- Project
projecttext - Only tasks in this project.
- Show
viewtext - Which tasks to list. Defaults to all.One of:
all(All tasks),active(Active tasks),completed(Completed tasks),hidden(Hidden tasks). - Updated since
updated_sincedate and time - Only those changed on or after this date and time.
- Page size
page_sizenumber - How many to return, 1 to 100. Defaults to 25.From 1 to 100.
- Page number
page_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
- Project
projecttext - Only those in this project.
- Task ID
tasktext - Only time on this task, from 'List tasks' or an earlier step.
- User
usertext - Only those belonging to this user.
- Show
viewtext - Which timeslips to list. Defaults to all.One of:
all(All timeslips),unbilled(Not yet billed),running(Timers still running). - From date
from_datedate - Only those dated on or after this day.
- To date
to_datedate - Only those dated on or before this day.
- Updated since
updated_sincedate and time - Only those changed on or after this date and time.
- Page size
page_sizenumber - How many to return, 1 to 100. Defaults to 25.From 1 to 100.
- Page number
page_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 size
page_sizenumber - How many to return, 1 to 100. Defaults to 25.From 1 to 100.
- Page number
page_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 ID
contact_idtextRequired - The contact's id, from 'List contacts' or an earlier step.
- First name
first_nametext - The contact's first name.
- Last name
last_nametext - The contact's last name.
- Organisation
organisation_nametext - The company the contact works for or is. A contact needs this, or both a first and a last name.
- E-mail
emailtext - The contact's e-mail address.
- Billing e-mail
billing_emailtext - Where invoices are sent, if not the e-mail above.
- Phone
phone_numbertext - The contact's phone number.
- Mobile
mobiletext - The contact's mobile number.
- Address line 1
address1text - The first line of the address.
- Address line 2
address2text - The second line of the address.
- Town
towntext - The town or city.
- Region
regiontext - The county, state or region.
- Postcode
postcodetext - The postcode or ZIP code.
- Country
countrytext - 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 ID
project_idtextRequired - The project's id, from 'List projects' or an earlier step.
- Name
nametext - A new name.
- Status
statustext - Whether the project is active. Defaults to Active.One of:
Active,Completed,Cancelled,Hidden. - Currency
currencytext - A three-letter currency code, such as GBP. Defaults to the company's currency.
- Budget in
budget_unitstext - What the budget counts. Defaults to Hours.One of:
Hours,Days,Monetary(Money). - Budget
budgetnumber - How much of the budget units the project has.At least 0.
- Billing rate
normal_billing_ratenumber - What you usually charge per hour or day on this project.At least 0.
- Billing rate per
billing_periodtext - Whether the billing rate is per hour or per day.One of:
hour(Per hour),day(Per day). - Starts on
starts_ondate - The project's start date.
- Ends on
ends_ondate - The project's end date.
- Purchase order
contract_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 ID
task_idtextRequired - The task's id, from 'List tasks' or an earlier step.
- Name
nametext - A new name.
- Status
statustext - Whether the task is active. Defaults to Active.One of:
Active,Completed,Hidden. - Billable
is_billabletrue/false - Whether time on the task can be billed.
- Billing rate
billing_ratenumber - What you charge per hour or day for this task.At least 0.
- Billing rate per
billing_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 ID
timeslip_idtextRequired - The timeslip's id, from 'List timeslips' or an earlier step.
- Date
dated_ondate - A new date.
- Hours
hoursnumber - A new number of hours.At least 0.
- Comment
commenttext - 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"
}
}