Harvest
App · Project Management · 55 actions
Log and time work, keep projects, clients and tasks in step, raise and send invoices, record expenses and report hours in Harvest.
Actions
| Action | What it does |
|---|---|
| Add task to project | Put a task on a project, so time can be logged to it there. |
| Create client | Add a client to hold projects and receive invoices. |
| Create contact | Add a person at one of your clients, such as the one who receives their invoices. |
| Create estimate | Create a draft estimate (a quote) for a client, with one line from the fields below and any more from Line items. |
| Create expense | Record an expense on a project: an amount, or units for a category charged per unit (such as mileage). |
| Create invoice | Create a draft invoice for a client, with one line from the fields below and any more from Line items. |
| Create person | Add a person to your Harvest account. |
| Create project | Add a project for a client, with you on its team so you can log time to it. |
| Create task | Add a task, the kind of work time is logged as. |
| Create time entry | Log time already spent on a project's task, as hours or as a start and end time. |
| Delete client | Permanently delete a client. |
| Delete contact | Permanently delete a client contact. |
| Delete estimate | Permanently delete an estimate. |
| Delete expense | Permanently delete an expense. |
| Delete invoice | Permanently delete an invoice. |
| Delete person | Permanently remove a person from your Harvest account. |
| Delete project | Permanently delete a project together with all the time and expenses logged to it (its invoices stay). |
| Delete task | Permanently delete a task. |
| Delete time entry | Permanently delete a time entry. |
| Get client | One client, with its address, currency and whether it is archived. |
| Get company settings | Your Harvest account's settings: its name, plan, how time is logged, the week's first day and which features are on. |
| Get contact | One client contact, with their email and phone numbers. |
| Get estimate | One estimate, with its lines, total and whether it was accepted. |
| Get expense | One expense, with its project, category, amount and status. |
| Get invoice | One invoice, with its lines, total, what is still owed and its state. |
| Get my profile | The person Harvest is connected as: their name, email address, weekly hours and roles. |
| Get person | One person in your Harvest account, with their email address, weekly hours and roles. |
| Get project | One project, with its client, billing, budget and dates. |
| Get task | One task, with its default rate and whether it is billable. |
| Get time entry | One time entry, with its project, task, hours and status. |
| Get time report | Hours tracked between two dates (up to a year), by client, project, task or person, with billable hours and amounts. |
| List clients | Active clients, or archived ones too. |
| List contacts | The people at your clients, optionally only one client's, with their email and phone numbers. |
| List estimates | Estimates, optionally one client's, by state or issued between two dates, with their totals. |
| List expenses | Expenses, optionally one project's or client's, between two dates, billed or not, or by approval status, with the amounts added up. |
| List invoices | Invoices, optionally one client's or project's, by state or issued between two dates, with totals and what is still owed. |
| List people | The people in your Harvest account, with their email address, weekly hours and roles: active ones, or archived ones too. |
| List project budgets | Each active project's budget, how much of it has been used and what is left, from Harvest's own budget report, with the project managers' names and email addresses. |
| List projects | Active projects, optionally one client's or archived ones too. |
| List tasks | Active tasks, or archived ones too. |
| List time entries | Time entries by date, optionally for one project, client or task, between two dates, or by status, with the hours added up. |
| Restart timer | Start a stopped time entry's timer again, adding to its hours. |
| Send invoice | Email an invoice to its recipients, or only to yourself. |
| Start timer | Start tracking time on a project's task now. |
| Stop timer | Stop a running timer: the one given, or your running one. |
| Unlink time entry from other app | Remove a time entry's link to the item in another app it was tracked from (such as a ticket or card). |
| Update client | Change a client's name, address or currency, or archive or restore it. |
| Update contact | Change a client contact's details. |
| Update estimate | Change an estimate's details, or add lines to it. |
| Update expense | Change an expense's project, category, date, amount, units or notes. |
| Update invoice | Change an invoice's details or due date, or add lines to it. |
| Update person | Change a person's details, or archive or restore them. |
| Update project | Change a project's details, or archive or restore it. |
| Update task | Change a task's name, default rate or billing, or archive or restore it. |
| Update time entry | Change a time entry's project, task, date, hours, times or notes. |
Add task to project
Put a task on a project, so time can be logged to it there.
Inputs
- Project
project_idtextRequired - The project.
- Task
task_idtextRequired - The task to add.
- Billable
billabletrue/false - Whether time on it is billable. Default: No.
- Hourly rate
hourly_ratenumber - Its rate, when the project is billed by task.At least 0.
- Budget (hours)
budgetnumber - Its budget, when the project is budgeted per task.At least 0.
Outputs
task_assignmentobject
Example output
{
"task_assignment": {
"billable": true,
"budget": null,
"created_at": "2017-06-26T21:52:18Z",
"hourly_rate": 100.0,
"id": 155505016,
"is_active": true,
"project_id": 14308069,
"project_name": "Online Store - Phase 1",
"task_id": 8083800,
"task_name": "Business Development",
"updated_at": "2017-06-26T21:52:18Z"
}
}Create client
Add a client to hold projects and receive invoices.
Inputs
- Name
nametextRequired - The client's name.
- Address
addresstext - The client's address.
- Currency
currencytext - The three-letter code of the currency to invoice in, e.g. EUR. Leave empty for your company's currency.
Outputs
clientobject
Example output
{
"client": {
"address": "123 Main St.\r\nAnytown, LA 71223",
"created_at": "2017-06-26T21:02:12Z",
"currency": "EUR",
"id": 5735776,
"is_active": true,
"name": "123 Industries",
"updated_at": "2017-06-26T21:34:11Z"
}
}Create contact
Add a person at one of your clients, such as the one who receives their invoices.
Inputs
- Client
client_idtextRequired - The client the person works for.
- First name
first_nametextRequired - Their first name.
- Last name
last_nametext - Their last name.
- Title
titletext - Their job title, e.g. Owner.
- Email
emailtext - Their email address.
- Office phone
phone_officetext - Their office phone number.
- Mobile phone
phone_mobiletext - Their mobile phone number.
- Fax
faxtext - Their fax number.
- Receives invoices
invoice_recipient_statustext - Whether invoices sent to the client go to this person. Default for a new contact: No.One of:
none(No),recipient(Yes, as a recipient),cc(Yes, as a copy (CC)),bcc(Yes, as a hidden copy (BCC)).
Outputs
contactobject
Example output
{
"contact": {
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-26T21:20:07Z",
"email": "janedoe@example.com",
"fax": "(203) 697-8887",
"first_name": "Jane",
"id": 4706479,
"invoice_recipient_status": "recipient",
"last_name": "Doe",
"name": "Jane Doe",
"phone_mobile": "(203) 697-8886",
"phone_office": "(203) 697-8885",
"title": "Owner",
"updated_at": "2017-06-26T21:27:07Z"
}
}Create estimate
Create a draft estimate (a quote) for a client, with one line from the fields below and any more from Line items. Nothing is sent.
Inputs
- Client
client_idtextRequired - The client the estimate is for.
- Item category
item_categorytext - The line's category. Default: Service.
- Description
descriptiontext - What the line is for.
- Quantity
quantitynumber - How many, a whole number. Default: 1.At least 1.
- Unit price
unit_pricenumber - The price of one. Leave empty to add lines only from Line items.At least 0.
- Line items
line_itemslist - More lines, as a list of objects with unit_price and optionally description, quantity (a whole number), item_category and taxed.
- Number
numbertext - Leave empty for Harvest's next number. Must be unique.
- Purchase order
purchase_ordertext - The client's PO number.
- Subject
subjecttext - The subject line.
- Notes
notestext - Notes printed on it.
- Currency
currencytext - A three-letter code, e.g. EUR.
- Issue date
issue_datedate - The date it is issued.
- Tax (%)
taxnumber - Tax rate in percent, e.g. 10, on lines marked taxed.At least 0.
- Discount (%)
discountnumber - Discount in percent, e.g. 5.From 0 to 100.
Outputs
estimateobject
Example output
{
"estimate": {
"accepted_at": null,
"amount": 9630.0,
"client_id": 5735776,
"client_name": "123 Industries",
"created_at": "2017-06-27T16:11:24Z",
"currency": "USD",
"declined_at": null,
"discount": 10.0,
"discount_amount": 1000.0,
"id": 1439818,
"issue_date": "2017-06-01",
"line_items": [
{
"amount": 10000,
"description": "Phase 2 of the Online Store",
"id": 53334195,
"item_category": "Service",
"project_id": null,
"project_name": null,
"quantity": 100,
"taxed": true,
"unit_price": 100
}
],
"notes": "Some notes about the estimate",
"number": "1001",
"purchase_order": "5678",
"sent_at": "2017-06-27T16:11:33Z",
"state": "sent",
"subject": "Online Store - Phase 2",
"tax": 5.0,
"tax_amount": 450.0,
"updated_at": "2017-06-27T16:13:56Z"
}
}Create expense
Record an expense on a project: an amount, or units for a category charged per unit (such as mileage).
Inputs
- Project
project_idtextRequired - The project, from those you're assigned to.
- Category
expense_categorytextRequired - The expense category, picked or typed by name.
- Date
spent_datedate - The day of the expense. Leave empty for today (UTC).
- Amount
total_costnumber - What it cost. For a category not charged per unit.At least 0.
- Units
unitsnumber - How many units, for a category charged per unit.At least 1.
- Notes
notestext - What it was for.
- Billable
billabletrue/false - Whether to bill it to the client. Default: Yes.
Outputs
expenseobject
Example output
{
"expense": {
"approval_status": "unsubmitted",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:09:54Z",
"expense_category_id": 4195926,
"expense_category_name": "Meals",
"id": 15296442,
"is_billed": false,
"is_locked": false,
"notes": "Lunch with client",
"project_id": 14307913,
"project_name": "Marketing Website",
"spent_date": "2017-03-03",
"total_cost": 33.35,
"units": 1,
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
}Create invoice
Create a draft invoice for a client, with one line from the fields below and any more from Line items. Send it with Send invoice.
Inputs
- Client
client_idtextRequired - The client to bill.
- Item category
item_categorytext - The line's category. Default: Service.
- Description
descriptiontext - What the line is for.
- Quantity
quantitynumber - How many, e.g. hours. Default: 1.At least 0.
- Unit price
unit_pricenumber - The price of one. Leave empty to add lines only from Line items.At least 0.
- Project
project_idtext - The project the lines are for.
- Line items
line_itemslist - More lines, as a list of objects with unit_price and optionally description, quantity, item_category, project_id and taxed.
- Invoice number
numbertext - Leave empty for Harvest's next number. Must be unique.
- Purchase order
purchase_ordertext - The client's PO number.
- Subject
subjecttext - The invoice's subject line.
- Notes
notestext - Notes printed on the invoice.
- Currency
currencytext - A three-letter code, e.g. EUR. Leave empty for the client's.
- Issue date
issue_datedate - Leave empty for today.
- Due date
due_datedate - A due date of your own. Use this or Payment term.
- Payment term
payment_termtext - When payment is due. Use this or Due date.One of:
upon receipt,net 15,net 30,net 45,net 60,custom(Custom (set a due date)). - Tax (%)
taxnumber - Tax rate in percent, e.g. 10, on lines marked taxed.At least 0.
- Discount (%)
discountnumber - Discount in percent, e.g. 5.From 0 to 100.
Outputs
invoiceobject
Example output
{
"invoice": {
"amount": 288.9,
"client_id": 5735776,
"client_name": "123 Industries",
"created_at": "2017-06-27T16:27:16Z",
"currency": "EUR",
"discount": null,
"discount_amount": 0.0,
"due_amount": 288.9,
"due_date": "2017-04-01",
"id": 13150403,
"issue_date": "2017-04-01",
"line_items": [
{
"amount": 200.0,
"description": "03/01/2017 - Project Management: [9:00am - 11:00am] Planning meetings",
"id": 53341602,
"item_category": "Service",
"project_id": 14308069,
"project_name": "Online Store - Phase 1",
"quantity": 2.0,
"taxed": true,
"unit_price": 100.0
}
],
"notes": "Some notes about the invoice.",
"number": "1001",
"paid_at": null,
"payment_term": "upon receipt",
"purchase_order": "",
"sent_at": "2017-08-23T22:25:59Z",
"state": "open",
"subject": "Online Store - Phase 1",
"tax": 5.0,
"tax_amount": 13.5,
"updated_at": "2017-08-23T22:25:59Z"
}
}Create person
Add a person to your Harvest account. Harvest emails them an invitation, and a paid plan charges for the seat. Needs an Administrator.
Inputs
- First name
first_nametextRequired - Their first name.
- Last name
last_nametextRequired - Their last name.
- Email
emailtextRequired - Their email address; Harvest sends the invitation there.
- Time zone
time_zonetext - Their time zone as Harvest names it, e.g. Eastern Time (US & Canada).
- Contractor
is_contractortrue/false - Yes if they are a contractor rather than an employee.
- Weekly capacity (hours)
weekly_capacity_hoursnumber - The hours a week they are expected to work, e.g. 35.From 0 to 168.
- Roles
roleslist - Labels for what they do, e.g. Designer; their access in Harvest is not changed.
- On all future projects
has_access_to_all_future_projectstrue/false - Yes puts them on every project created from now on.
- Default hourly rate
default_hourly_ratenumber - What their time is billed at by default.At least 0.
- Cost rate
cost_ratenumber - What an hour of their time costs you.At least 0.
Outputs
userobject
Example output
{
"user": {
"email": "jimallen@example.com",
"first_name": "Jim",
"id": 3230547,
"is_active": true,
"last_name": "Allen",
"name": "Jim Allen",
"roles": [
"Developer"
],
"weekly_capacity_hours": 35.0
}
}Create project
Add a project for a client, with you on its team so you can log time to it. The Free plan allows two active projects.
Inputs
- Client
client_idtextRequired - The client the project is for.
- Name
nametextRequired - The project's name.
- Code
codetext - A short code for the project, e.g. OS1.
- Billable
is_billabletrue/false - Whether time on the project is billable. Default for a new project: Yes.
- Bill by
bill_bytext - Which hourly rate applies. Default for a new project: Not billable.One of:
Project(Project hourly rate),Tasks(Task hourly rate),People(Person hourly rate),none(Not billable). - Hourly rate
hourly_ratenumber - The project's rate, when billed by project hourly rate.At least 0.
- Budget by
budget_bytext - How the budget is counted. Default for a new project: No budget.One of:
project(Total project hours),project_cost(Total project fees),task(Hours per task),task_fees(Fees per task),person(Hours per person),none(No budget). - Budget
budgetnumber - The budget: hours, or money when budgeted by total project fees.At least 0.
- Cost budget
cost_budgetnumber - The budget in money, when budgeted by fees per task.At least 0.
- Notes
notestext - Notes about the project.
- Starts on
starts_ondate - When the project starts.
- Ends on
ends_ondate - When the project ends.
Outputs
assigned_to_youtrue/false- Whether you are on the project's team, so you can log time to it.
projectobject
Example output
{
"assigned_to_you": true,
"project": {
"bill_by": "Project",
"budget": 200.0,
"budget_by": "project",
"client_id": 5735776,
"client_name": "123 Industries",
"code": "OS1",
"cost_budget": null,
"created_at": "2017-06-26T21:52:18Z",
"currency": "EUR",
"ends_on": null,
"fee": null,
"hourly_rate": 100.0,
"id": 14308069,
"is_active": true,
"is_billable": true,
"is_fixed_fee": false,
"name": "Online Store - Phase 1",
"notes": "",
"starts_on": "2017-06-01",
"updated_at": "2017-06-26T21:54:06Z"
}
}Create task
Add a task, the kind of work time is logged as. Put it on a project with Add task to project.
Inputs
- Name
nametextRequired - The task's name.
- Default hourly rate
default_hourly_ratenumber - The rate it gets on a project. Default: 0.At least 0.
- Billable by default
billable_by_defaulttrue/false - Whether it is billable when put on a project. Default: Yes.
- Add to new projects
is_defaulttrue/false - Yes adds it to every project created from now on. Default: No.
Outputs
taskobject
Example output
{
"task": {
"billable_by_default": false,
"created_at": "2017-06-26T22:08:25Z",
"default_hourly_rate": 0.0,
"id": 8083800,
"is_active": true,
"is_default": false,
"name": "Business Development",
"updated_at": "2017-06-26T22:08:25Z"
}
}Create time entry
Log time already spent on a project's task, as hours or as a start and end time. Works whichever way your account tracks time.
Inputs
- Project
project_idtextRequired - The project, from those you're assigned to.
- Task
task_idtextRequired - The task, from those on the project picked above.
- Date
spent_datedate - The day the time was spent on. Leave empty for today (UTC).
- Hours
hoursnumber - How long, in hours (1.5 is 90 minutes). Or give Start time and End time.From 0 to 24.
- Start time
started_timetime - When the work started. Needed with Hours on accounts that track start and end times.
- End time
ended_timetime - When the work ended, on the same day.
- Notes
notestext - What the time was for.
Outputs
time_entryobject
Example output
{
"time_entry": {
"approval_status": "approved",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:50:15Z",
"ended_time": "5:00pm",
"hours": 2.11,
"id": 636709355,
"is_billed": false,
"is_locked": true,
"is_running": false,
"notes": "Adding CSS styling",
"project_id": 14307913,
"project_name": "Marketing Website",
"rounded_hours": 2.25,
"spent_date": "2017-03-02",
"started_time": "3:00pm",
"task_id": 8083365,
"task_name": "Graphic Design",
"timer_started_at": null,
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
}Delete client
Permanently delete a client. Harvest only allows it once the client has no projects, invoices or estimates; archive it with Update client otherwise.
Inputs
- Client
client_idtextRequired - The client to delete.
Outputs
client_idnumber- The ID of the client deleted.
deletedtrue/false- True once the client is gone.
Example output
{
"client_id": 5735776,
"deleted": true
}Delete contact
Permanently delete a client contact.
Inputs
- Contact
contact_idtextRequired - The contact's ID, from an earlier step such as Create contact or List contacts.
Outputs
contact_idnumber- The ID of the contact deleted.
deletedtrue/false- True once the contact is gone.
Example output
{
"contact_id": 4706479,
"deleted": true
}Delete estimate
Permanently delete an estimate.
Inputs
- Estimate
estimate_idtextRequired - The estimate's ID, from an earlier step such as Create estimate or List estimates.
Outputs
deletedtrue/false- True once the estimate is gone.
estimate_idnumber- The ID of the estimate deleted.
Example output
{
"deleted": true,
"estimate_id": 1439818
}Delete expense
Permanently delete an expense.
Inputs
- Expense
expense_idtextRequired - The expense's ID, from an earlier step such as Create expense or List expenses.
Outputs
deletedtrue/false- True once the expense is gone.
expense_idnumber- The ID of the expense deleted.
Example output
{
"deleted": true,
"expense_id": 15296442
}Delete invoice
Permanently delete an invoice.
Inputs
- Invoice
invoice_idtextRequired - The invoice's ID, e.g. from Create invoice or List invoices.
Outputs
deletedtrue/false- True once the invoice is gone.
invoice_idnumber- The ID of the invoice deleted.
Example output
{
"deleted": true,
"invoice_id": 13150403
}Delete person
Permanently remove a person from your Harvest account. Harvest only allows it when they have logged no time or expenses; archive them with Update person otherwise. Needs an Administrator.
Inputs
- Person
person_idtextRequired - The person's ID, from an earlier step such as List people or Create person.
Outputs
deletedtrue/false- True once the person is gone.
person_idnumber- The ID of the person deleted.
Example output
{
"deleted": true,
"person_id": 3230547
}Delete project
Permanently delete a project together with all the time and expenses logged to it (its invoices stay). To keep them, archive it with Update project instead.
Inputs
- Project
project_idtextRequired - The project to delete, with its time and expenses.
Outputs
deletedtrue/false- True once the project is gone.
project_idnumber- The ID of the project deleted.
Example output
{
"deleted": true,
"project_id": 14308069
}Delete task
Permanently delete a task. Harvest only allows it once no time is logged to it; archive it with Update task otherwise.
Inputs
- Task
task_idtextRequired - The task to delete.
Outputs
deletedtrue/false- True once the task is gone.
task_idnumber- The ID of the task deleted.
Example output
{
"deleted": true,
"task_id": 8083800
}Delete time entry
Permanently delete a time entry. Approved or invoiced time can only be deleted by an Administrator.
Inputs
- Time entry
time_entry_idtextRequired - The time entry's ID, from an earlier step such as Create time entry, Start timer or List time entries.
Outputs
deletedtrue/false- True once the time entry is gone.
time_entry_idnumber- The ID of the time entry deleted.
Example output
{
"deleted": true,
"time_entry_id": 636709355
}Get client
One client, with its address, currency and whether it is archived.
Inputs
- Client
client_idtextRequired - The client.
Outputs
clientobject
Example output
{
"client": {
"address": "123 Main St.\r\nAnytown, LA 71223",
"created_at": "2017-06-26T21:02:12Z",
"currency": "EUR",
"id": 5735776,
"is_active": true,
"name": "123 Industries",
"updated_at": "2017-06-26T21:34:11Z"
}
}Get company settings
Your Harvest account's settings: its name, plan, how time is logged, the week's first day and which features are on. Needs an Administrator.
Inputs
None.
Outputs
companyobject
Example output
{
"company": {
"approval_feature": true,
"base_uri": "https://{ACCOUNT_SUBDOMAIN}.harvestapp.com",
"clock": "12h",
"date_format": "%Y-%m-%d",
"estimate_feature": true,
"expense_feature": true,
"full_domain": "{ACCOUNT_SUBDOMAIN}.harvestapp.com",
"invoice_feature": true,
"is_active": true,
"name": "API Examples",
"plan_type": "sponsored",
"team_feature": true,
"time_format": "hours_minutes",
"wants_timestamp_timers": false,
"week_start_day": "Monday",
"weekly_capacity_hours": 35.0
}
}Get contact
One client contact, with their email and phone numbers.
Inputs
- Contact
contact_idtextRequired - The contact's ID, from an earlier step such as Create contact or List contacts.
Outputs
contactobject
Example output
{
"contact": {
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-26T21:20:07Z",
"email": "janedoe@example.com",
"fax": "(203) 697-8887",
"first_name": "Jane",
"id": 4706479,
"invoice_recipient_status": "recipient",
"last_name": "Doe",
"name": "Jane Doe",
"phone_mobile": "(203) 697-8886",
"phone_office": "(203) 697-8885",
"title": "Owner",
"updated_at": "2017-06-26T21:27:07Z"
}
}Get estimate
One estimate, with its lines, total and whether it was accepted.
Inputs
- Estimate
estimate_idtextRequired - The estimate's ID, from an earlier step such as Create estimate or List estimates.
Outputs
estimateobject
Example output
{
"estimate": {
"accepted_at": null,
"amount": 9630.0,
"client_id": 5735776,
"client_name": "123 Industries",
"created_at": "2017-06-27T16:11:24Z",
"currency": "USD",
"declined_at": null,
"discount": 10.0,
"discount_amount": 1000.0,
"id": 1439818,
"issue_date": "2017-06-01",
"line_items": [
{
"amount": 10000,
"description": "Phase 2 of the Online Store",
"id": 53334195,
"item_category": "Service",
"project_id": null,
"project_name": null,
"quantity": 100,
"taxed": true,
"unit_price": 100
}
],
"notes": "Some notes about the estimate",
"number": "1001",
"purchase_order": "5678",
"sent_at": "2017-06-27T16:11:33Z",
"state": "sent",
"subject": "Online Store - Phase 2",
"tax": 5.0,
"tax_amount": 450.0,
"updated_at": "2017-06-27T16:13:56Z"
}
}Get expense
One expense, with its project, category, amount and status.
Inputs
- Expense
expense_idtextRequired - The expense's ID, from an earlier step such as Create expense or List expenses.
Outputs
expenseobject
Example output
{
"expense": {
"approval_status": "unsubmitted",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:09:54Z",
"expense_category_id": 4195926,
"expense_category_name": "Meals",
"id": 15296442,
"is_billed": false,
"is_locked": false,
"notes": "Lunch with client",
"project_id": 14307913,
"project_name": "Marketing Website",
"spent_date": "2017-03-03",
"total_cost": 33.35,
"units": 1,
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
}Get invoice
One invoice, with its lines, total, what is still owed and its state.
Inputs
- Invoice
invoice_idtextRequired - The invoice's ID, e.g. from Create invoice or List invoices.
Outputs
invoiceobject
Example output
{
"invoice": {
"amount": 288.9,
"client_id": 5735776,
"client_name": "123 Industries",
"created_at": "2017-06-27T16:27:16Z",
"currency": "EUR",
"discount": null,
"discount_amount": 0.0,
"due_amount": 288.9,
"due_date": "2017-04-01",
"id": 13150403,
"issue_date": "2017-04-01",
"line_items": [
{
"amount": 200.0,
"description": "03/01/2017 - Project Management: [9:00am - 11:00am] Planning meetings",
"id": 53341602,
"item_category": "Service",
"project_id": 14308069,
"project_name": "Online Store - Phase 1",
"quantity": 2.0,
"taxed": true,
"unit_price": 100.0
}
],
"notes": "Some notes about the invoice.",
"number": "1001",
"paid_at": null,
"payment_term": "upon receipt",
"purchase_order": "",
"sent_at": "2017-08-23T22:25:59Z",
"state": "open",
"subject": "Online Store - Phase 1",
"tax": 5.0,
"tax_amount": 13.5,
"updated_at": "2017-08-23T22:25:59Z"
}
}Get my profile
The person Harvest is connected as: their name, email address, weekly hours and roles.
Inputs
None.
Outputs
userobject
Example output
{
"user": {
"email": "jimallen@example.com",
"first_name": "Jim",
"id": 3230547,
"is_active": true,
"last_name": "Allen",
"name": "Jim Allen",
"roles": [
"Developer"
],
"weekly_capacity_hours": 35.0
}
}Get person
One person in your Harvest account, with their email address, weekly hours and roles. Needs an Administrator, or a Manager for their teammates.
Inputs
- Person
person_idtextRequired - The person's ID, from an earlier step such as List people or Create person.
Outputs
userobject
Example output
{
"user": {
"email": "jimallen@example.com",
"first_name": "Jim",
"id": 3230547,
"is_active": true,
"last_name": "Allen",
"name": "Jim Allen",
"roles": [
"Developer"
],
"weekly_capacity_hours": 35.0
}
}Get project
One project, with its client, billing, budget and dates.
Inputs
- Project
project_idtextRequired - The project.
Outputs
projectobject
Example output
{
"project": {
"bill_by": "Project",
"budget": 200.0,
"budget_by": "project",
"client_id": 5735776,
"client_name": "123 Industries",
"code": "OS1",
"cost_budget": null,
"created_at": "2017-06-26T21:52:18Z",
"currency": "EUR",
"ends_on": null,
"fee": null,
"hourly_rate": 100.0,
"id": 14308069,
"is_active": true,
"is_billable": true,
"is_fixed_fee": false,
"name": "Online Store - Phase 1",
"notes": "",
"starts_on": "2017-06-01",
"updated_at": "2017-06-26T21:54:06Z"
}
}Get task
One task, with its default rate and whether it is billable.
Inputs
- Task
task_idtextRequired - The task.
Outputs
taskobject
Example output
{
"task": {
"billable_by_default": false,
"created_at": "2017-06-26T22:08:25Z",
"default_hourly_rate": 0.0,
"id": 8083800,
"is_active": true,
"is_default": false,
"name": "Business Development",
"updated_at": "2017-06-26T22:08:25Z"
}
}Get time entry
One time entry, with its project, task, hours and status.
Inputs
- Time entry
time_entry_idtextRequired - The time entry's ID, from an earlier step such as Create time entry, Start timer or List time entries.
Outputs
time_entryobject
Example output
{
"time_entry": {
"approval_status": "approved",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:50:15Z",
"ended_time": "5:00pm",
"hours": 2.11,
"id": 636709355,
"is_billed": false,
"is_locked": true,
"is_running": false,
"notes": "Adding CSS styling",
"project_id": 14307913,
"project_name": "Marketing Website",
"rounded_hours": 2.25,
"spent_date": "2017-03-02",
"started_time": "3:00pm",
"task_id": 8083365,
"task_name": "Graphic Design",
"timer_started_at": null,
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
}Get time report
Hours tracked between two dates (up to a year), by client, project, task or person, with billable hours and amounts. Beta: pick a Period such as This week instead of dates; and, grouped by person, get each person's email address, include people who logged nothing, and keep only those under a number of hours, to remind people to finish their timesheets.
Inputs
- From
from_datedate - The first day to include. Needed unless you pick a Period.
- To
to_datedate - The last day to include. Needed unless you pick a Period.
- Group by
group_bytext - How to break the hours down. Default: Project.One of:
clients(Client),projects(Project),tasks(Task),team(Person). - Include fixed-fee projects
include_fixed_feetrue/false - Also work out billable amounts for fixed-fee projects.
- Period
periodtext - Beta. A ready-made span to use instead of From and To, worked out on the day the step runs: this week, last week, this month or last month, each in full. A week starts on the day set in your Harvest account when an Administrator connected Harvest, otherwise on Monday. Leave empty to use From and To; don't fill in both.One of:
this_week(This week),last_week(Last week),this_month(This month),last_month(Last month). - Include people without hours
include_people_without_hourstrue/false - Beta. Only when Group by is Person. Yes also lists every active person who logged nothing in the period, with total_hours 0; Harvest's own report leaves them out. Needs Harvest connected by an Administrator, or by a Manager (who gets the teammates assigned to them); the step fails for anyone else. Leave empty for only people who logged time.
- Only under this many hours
hours_belownumber - Beta. Keep only the rows with fewer total hours than this, e.g. 35; the count and totals then cover only those rows. To find everyone short on hours, group by Person and set Include people without hours to Yes, or people with no hours at all are missed. Leave empty to keep every row.At least 0.
Outputs
billable_hoursnumber- All billable hours, added up.
countnumber- How many rows.
email_notetext- Beta. Empty unless a report by person is missing someone's email address; then it says how many and what to do about it.
from_datetext- The first day covered (YYYY-MM-DD).
group_bytext- clients, projects, tasks or team.
resultslist- One row per client, project, task or person.
to_datetext- The last day covered (YYYY-MM-DD).
total_hoursnumber- All hours tracked, added up.
total_hours_displaytext- Beta. total_hours ready to put in a message, e.g. 112.5.
Example output
{
"billable_hours": 28.0,
"count": 1,
"email_note": "",
"from_date": "2017-01-01",
"group_by": "team",
"results": [
{
"billable_amount": 2800.0,
"billable_hours": 28.0,
"client_id": null,
"client_name": null,
"currency": "USD",
"email": "kim@example.com",
"first_name": "Kim",
"id": 1782959,
"name": "Kim Allen",
"total_hours": 31.5,
"total_hours_display": "31.5"
}
],
"to_date": "2017-12-31",
"total_hours": 31.5,
"total_hours_display": "31.5"
}List clients
Active clients, or archived ones too.
Inputs
- Include archived
include_archivedtrue/false - Also list archived ones.
- Limit
limitnumber - The most records to return, up to 2000. Default: 100.From 1 to 2000.
Outputs
clientslist- The clients.
countnumber- How many were returned.
Example output
{
"clients": [
{
"address": "123 Main St.\r\nAnytown, LA 71223",
"created_at": "2017-06-26T21:02:12Z",
"currency": "EUR",
"id": 5735776,
"is_active": true,
"name": "123 Industries",
"updated_at": "2017-06-26T21:34:11Z"
}
],
"count": 1
}List contacts
The people at your clients, optionally only one client's, with their email and phone numbers.
Inputs
- Client
client_idtext - Only this client's.
- Limit
limitnumber - The most records to return, up to 2000. Default: 100.From 1 to 2000.
Outputs
contactslist- The contacts.
countnumber- How many were returned.
Example output
{
"contacts": [
{
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-26T21:20:07Z",
"email": "janedoe@example.com",
"fax": "(203) 697-8887",
"first_name": "Jane",
"id": 4706479,
"invoice_recipient_status": "recipient",
"last_name": "Doe",
"name": "Jane Doe",
"phone_mobile": "(203) 697-8886",
"phone_office": "(203) 697-8885",
"title": "Owner",
"updated_at": "2017-06-26T21:27:07Z"
}
],
"count": 1
}List estimates
Estimates, optionally one client's, by state or issued between two dates, with their totals.
Inputs
- Client
client_idtext - Only this client's.
- State
statetext - Only estimates in this state.One of:
draft,sent,accepted,declined. - Issued from
from_datedate - The first issue date to include.
- Issued to
to_datedate - The last issue date to include.
- Limit
limitnumber - The most records to return, up to 2000. Default: 100.From 1 to 2000.
Outputs
countnumber- How many were returned.
estimateslist- The estimates, newest first.
total_amountnumber- Their totals added up.
Example output
{
"count": 1,
"estimates": [
{
"accepted_at": null,
"amount": 9630.0,
"client_id": 5735776,
"client_name": "123 Industries",
"created_at": "2017-06-27T16:11:24Z",
"currency": "USD",
"declined_at": null,
"discount": 10.0,
"discount_amount": 1000.0,
"id": 1439818,
"issue_date": "2017-06-01",
"line_items": [
{
"amount": 10000,
"description": "Phase 2 of the Online Store",
"id": 53334195,
"item_category": "Service",
"project_id": null,
"project_name": null,
"quantity": 100,
"taxed": true,
"unit_price": 100
}
],
"notes": "Some notes about the estimate",
"number": "1001",
"purchase_order": "5678",
"sent_at": "2017-06-27T16:11:33Z",
"state": "sent",
"subject": "Online Store - Phase 2",
"tax": 5.0,
"tax_amount": 450.0,
"updated_at": "2017-06-27T16:13:56Z"
}
],
"total_amount": 9630.0
}List expenses
Expenses, optionally one project's or client's, between two dates, billed or not, or by approval status, with the amounts added up.
Inputs
- Project
project_idtext - Only this project's.
- Client
client_idtext - Only this client's.
- From
from_datedate - The first day to include.
- To
to_datedate - The last day to include.
- Billed
is_billedtrue/false - Yes for only invoiced expenses, No for only those not yet invoiced.
- Approval status
approval_statustext - Only expenses with this approval status.One of:
unsubmitted,submitted,approved. - Limit
limitnumber - The most records to return, up to 2000. Default: 100.From 1 to 2000.
Outputs
countnumber- How many were returned.
expenseslist- The expenses, newest first.
total_costnumber- Their amounts added up.
Example output
{
"count": 1,
"expenses": [
{
"approval_status": "unsubmitted",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:09:54Z",
"expense_category_id": 4195926,
"expense_category_name": "Meals",
"id": 15296442,
"is_billed": false,
"is_locked": false,
"notes": "Lunch with client",
"project_id": 14307913,
"project_name": "Marketing Website",
"spent_date": "2017-03-03",
"total_cost": 33.35,
"units": 1,
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
],
"total_cost": 33.35
}List invoices
Invoices, optionally one client's or project's, by state or issued between two dates, with totals and what is still owed.
Inputs
- Client
client_idtext - Only this client's.
- Project
project_idtext - Only this project's.
- State
statetext - Only invoices in this state.One of:
draft,open,paid,closed. - Issued from
from_datedate - The first issue date to include.
- Issued to
to_datedate - The last issue date to include.
- Limit
limitnumber - The most records to return, up to 2000. Default: 100.From 1 to 2000.
Outputs
countnumber- How many were returned.
invoiceslist- The invoices, newest first.
total_amountnumber- Their totals added up.
total_duenumber- What is still owed on them, added up.
Example output
{
"count": 1,
"invoices": [
{
"amount": 288.9,
"client_id": 5735776,
"client_name": "123 Industries",
"created_at": "2017-06-27T16:27:16Z",
"currency": "EUR",
"discount": null,
"discount_amount": 0.0,
"due_amount": 288.9,
"due_date": "2017-04-01",
"id": 13150403,
"issue_date": "2017-04-01",
"line_items": [
{
"amount": 200.0,
"description": "03/01/2017 - Project Management: [9:00am - 11:00am] Planning meetings",
"id": 53341602,
"item_category": "Service",
"project_id": 14308069,
"project_name": "Online Store - Phase 1",
"quantity": 2.0,
"taxed": true,
"unit_price": 100.0
}
],
"notes": "Some notes about the invoice.",
"number": "1001",
"paid_at": null,
"payment_term": "upon receipt",
"purchase_order": "",
"sent_at": "2017-08-23T22:25:59Z",
"state": "open",
"subject": "Online Store - Phase 1",
"tax": 5.0,
"tax_amount": 13.5,
"updated_at": "2017-08-23T22:25:59Z"
}
],
"total_amount": 288.9,
"total_due": 288.9
}List people
The people in your Harvest account, with their email address, weekly hours and roles: active ones, or archived ones too. Harvest only shows them to an Administrator, or to a Manager (who gets the teammates assigned to them); the step fails, saying so, when anyone else connected Harvest.
Inputs
- Include archived
include_archivedtrue/false - Yes also lists archived people. Leave empty for active people only.
- Limit
limitnumber - The most records to return, up to 2000. Default: 100.From 1 to 2000.
Outputs
countnumber- How many were returned.
userslist- The people, as Harvest lists them.
Example output
{
"count": 1,
"users": [
{
"email": "jimallen@example.com",
"first_name": "Jim",
"id": 3230547,
"is_active": true,
"last_name": "Allen",
"name": "Jim Allen",
"roles": [
"Developer"
],
"weekly_capacity_hours": 35.0
}
]
}List project budgets
Each active project's budget, how much of it has been used and what is left, from Harvest's own budget report, with the project managers' names and email addresses. Keep only projects past a percentage, e.g. 80, to warn their managers before a project goes over budget. Projects with no budget are left out. Who manages a project, and their email addresses, need Harvest connected by an Administrator, or by a Manager for their own projects; otherwise the budgets still come back and a note says what is missing.
Inputs
- Only projects that have used at least this % of their budget
percent_used_at_leastnumber - Beta. A number like 80 keeps only projects that have used 80% of their budget or more, including any over budget. Leave empty to list every project with a budget.At least 0.
- Client
client_idtext - Beta. Only this client's projects. Leave empty for every client's.
- Include archived projects
include_archivedtrue/false - Beta. Yes also lists archived projects. Leave empty for active projects only.
Outputs
countnumber- How many projects were returned.
email_notetext- Empty unless some project managers or their email addresses are missing; then it says why and what to do about it.
projectslist- The projects with a budget, the most used first. Projects with no budget are left out.
projects_without_budgetnumber- How many projects were left out because they have no budget.
Example output
{
"count": 1,
"email_note": "",
"projects": [
{
"budget": 200.0,
"budget_by": "project",
"budget_by_label": "Total project hours",
"budget_display": "200 hours",
"budget_remaining": 31.0,
"budget_spent": 169.0,
"client_id": 5735776,
"client_name": "123 Industries",
"currency": "",
"is_active": true,
"is_monthly_budget": false,
"manager_emails": "jimallen@example.com",
"manager_first_names": "Jim",
"manager_names": "Jim Allen",
"managers": [
{
"email": "jimallen@example.com",
"name": "Jim Allen"
}
],
"percent_used": 84.5,
"percent_used_display": "85%",
"project_id": 14308069,
"project_name": "Online Store - Phase 1",
"remaining_display": "31 hours",
"spent_display": "169 hours"
}
],
"projects_without_budget": 0
}List projects
Active projects, optionally one client's or archived ones too.
Inputs
- Client
client_idtext - Only this client's.
- Include archived
include_archivedtrue/false - Also list archived ones.
- Limit
limitnumber - The most records to return, up to 2000. Default: 100.From 1 to 2000.
Outputs
countnumber- How many were returned.
projectslist- The projects.
Example output
{
"count": 1,
"projects": [
{
"bill_by": "Project",
"budget": 200.0,
"budget_by": "project",
"client_id": 5735776,
"client_name": "123 Industries",
"code": "OS1",
"cost_budget": null,
"created_at": "2017-06-26T21:52:18Z",
"currency": "EUR",
"ends_on": null,
"fee": null,
"hourly_rate": 100.0,
"id": 14308069,
"is_active": true,
"is_billable": true,
"is_fixed_fee": false,
"name": "Online Store - Phase 1",
"notes": "",
"starts_on": "2017-06-01",
"updated_at": "2017-06-26T21:54:06Z"
}
]
}List tasks
Active tasks, or archived ones too.
Inputs
- Include archived
include_archivedtrue/false - Also list archived ones.
- Limit
limitnumber - The most records to return, up to 2000. Default: 100.From 1 to 2000.
Outputs
countnumber- How many were returned.
taskslist- The tasks.
Example output
{
"count": 1,
"tasks": [
{
"billable_by_default": false,
"created_at": "2017-06-26T22:08:25Z",
"default_hourly_rate": 0.0,
"id": 8083800,
"is_active": true,
"is_default": false,
"name": "Business Development",
"updated_at": "2017-06-26T22:08:25Z"
}
]
}List time entries
Time entries by date, optionally for one project, client or task, between two dates, or by status, with the hours added up.
Inputs
- Project
project_idtext - Only this project's.
- Client
client_idtext - Only this client's.
- Task
task_idtext - Only this task's.
- From
from_datedate - The first day to include.
- To
to_datedate - The last day to include.
- Running
is_runningtrue/false - Yes for only running timers, No for only stopped ones.
- Billed
is_billedtrue/false - Yes for only invoiced time, No for only time not yet invoiced.
- Approval status
approval_statustext - Only time with this approval status.One of:
unsubmitted,submitted,approved. - Limit
limitnumber - The most records to return, up to 2000. Default: 100.From 1 to 2000.
Outputs
countnumber- How many were returned.
time_entrieslist- The time entries, by date.
total_hoursnumber- The hours of all of them added up.
Example output
{
"count": 1,
"time_entries": [
{
"approval_status": "approved",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:50:15Z",
"ended_time": "5:00pm",
"hours": 2.11,
"id": 636709355,
"is_billed": false,
"is_locked": true,
"is_running": false,
"notes": "Adding CSS styling",
"project_id": 14307913,
"project_name": "Marketing Website",
"rounded_hours": 2.25,
"spent_date": "2017-03-02",
"started_time": "3:00pm",
"task_id": 8083365,
"task_name": "Graphic Design",
"timer_started_at": null,
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
],
"total_hours": 2.11
}Restart timer
Start a stopped time entry's timer again, adding to its hours.
Inputs
- Time entry
time_entry_idtextRequired - The time entry's ID, from an earlier step such as Create time entry, Start timer or List time entries.
Outputs
time_entryobject
Example output
{
"time_entry": {
"approval_status": "unsubmitted",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:50:15Z",
"ended_time": null,
"hours": 0.0,
"id": 636709355,
"is_billed": false,
"is_locked": false,
"is_running": true,
"notes": "Adding CSS styling",
"project_id": 14307913,
"project_name": "Marketing Website",
"rounded_hours": 0.0,
"spent_date": "2017-03-02",
"started_time": "3:00pm",
"task_id": 8083365,
"task_name": "Graphic Design",
"timer_started_at": "2017-06-27T15:50:15Z",
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
}Send invoice
Email an invoice to its recipients, or only to yourself. A draft is marked as sent.
Inputs
- Invoice
invoice_idtextRequired - The invoice's ID, e.g. from Create invoice or List invoices.
- Recipients
recipientslist - Email addresses to send it to, each optionally as Name <email>. Leave empty to send only yourself a copy.
- Subject
subjecttext - The email's subject. Leave empty for Harvest's default.
- Message
bodytext - The email's text. Leave empty for Harvest's default.
- Attach PDF
attach_pdftrue/false - Attach the invoice as a PDF. Default: No.
- Send me a copy
send_me_a_copytrue/false - Also email it to you. Default: No.
Outputs
invoice_idnumber- The ID of the invoice sent.
messageobject
Example output
{
"invoice_id": 13150403,
"message": {
"attach_pdf": true,
"created_at": "2017-08-25T21:23:40Z",
"id": 27835324,
"recipients": [
{
"email": "richardroe@example.com",
"name": "Richard Roe"
}
],
"send_me_a_copy": false,
"sent_by": "Bob Powell",
"sent_by_email": "bobpowell@example.com",
"subject": "Invoice #1001 from API Examples"
}
}Start timer
Start tracking time on a project's task now.
Inputs
- Project
project_idtextRequired - The project, from those you're assigned to.
- Task
task_idtextRequired - The task, from those on the project picked above.
- Notes
notestext - What the time was for.
- Date
spent_datedate - The day the time was spent on. Leave empty for today (UTC).
Outputs
time_entryobject
Example output
{
"time_entry": {
"approval_status": "unsubmitted",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:50:15Z",
"ended_time": null,
"hours": 0.0,
"id": 636709355,
"is_billed": false,
"is_locked": false,
"is_running": true,
"notes": "Adding CSS styling",
"project_id": 14307913,
"project_name": "Marketing Website",
"rounded_hours": 0.0,
"spent_date": "2017-03-02",
"started_time": "3:00pm",
"task_id": 8083365,
"task_name": "Graphic Design",
"timer_started_at": "2017-06-27T15:50:15Z",
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
}Stop timer
Stop a running timer: the one given, or your running one. If none is running, nothing changes.
Inputs
- Time entry
time_entry_idtext - The timer to stop, e.g. from Start timer. Leave empty to stop your running timer.
Outputs
stoppedtrue/false- True if a timer was stopped; false if none was running.
time_entryobject
Example output
{
"stopped": true,
"time_entry": {
"approval_status": "approved",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:50:15Z",
"ended_time": "5:00pm",
"hours": 2.11,
"id": 636709355,
"is_billed": false,
"is_locked": true,
"is_running": false,
"notes": "Adding CSS styling",
"project_id": 14307913,
"project_name": "Marketing Website",
"rounded_hours": 2.25,
"spent_date": "2017-03-02",
"started_time": "3:00pm",
"task_id": 8083365,
"task_name": "Graphic Design",
"timer_started_at": null,
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
}Unlink time entry from other app
Remove a time entry's link to the item in another app it was tracked from (such as a ticket or card). The time itself stays.
Inputs
- Time entry
time_entry_idtextRequired - The time entry's ID, from an earlier step such as Create time entry, Start timer or List time entries.
Outputs
removedtrue/false- True once the link to the other app is gone.
time_entry_idnumber- The ID of the time entry.
Example output
{
"removed": true,
"time_entry_id": 636709355
}Update client
Change a client's name, address or currency, or archive or restore it. Only what you fill in changes.
Inputs
- Client
client_idtextRequired - The client to change.
- New name
nametext - A new name for the client.
- Address
addresstext - A new address.
- Currency
currencytext - A three-letter code of the currency to invoice in, e.g. EUR.
- Active
is_activetrue/false - No archives the client; Yes restores it.
Outputs
clientobject
Example output
{
"client": {
"address": "123 Main St.\r\nAnytown, LA 71223",
"created_at": "2017-06-26T21:02:12Z",
"currency": "EUR",
"id": 5735776,
"is_active": true,
"name": "123 Industries",
"updated_at": "2017-06-26T21:34:11Z"
}
}Update contact
Change a client contact's details. Only what you fill in changes.
Inputs
- Contact
contact_idtextRequired - The contact's ID, from an earlier step such as Create contact or List contacts.
- Client
client_idtext - Move the contact to this client.
- First name
first_nametext - A new first name.
- Last name
last_nametext - Their last name.
- Title
titletext - Their job title, e.g. Owner.
- Email
emailtext - Their email address.
- Office phone
phone_officetext - Their office phone number.
- Mobile phone
phone_mobiletext - Their mobile phone number.
- Fax
faxtext - Their fax number.
- Receives invoices
invoice_recipient_statustext - Whether invoices sent to the client go to this person. Default for a new contact: No.One of:
none(No),recipient(Yes, as a recipient),cc(Yes, as a copy (CC)),bcc(Yes, as a hidden copy (BCC)).
Outputs
contactobject
Example output
{
"contact": {
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-26T21:20:07Z",
"email": "janedoe@example.com",
"fax": "(203) 697-8887",
"first_name": "Jane",
"id": 4706479,
"invoice_recipient_status": "recipient",
"last_name": "Doe",
"name": "Jane Doe",
"phone_mobile": "(203) 697-8886",
"phone_office": "(203) 697-8885",
"title": "Owner",
"updated_at": "2017-06-26T21:27:07Z"
}
}Update estimate
Change an estimate's details, or add lines to it. Only what you fill in changes.
Inputs
- Estimate
estimate_idtextRequired - The estimate's ID, from an earlier step such as Create estimate or List estimates.
- Client
client_idtext - Move the estimate to this client.
- Number
numbertext - Leave empty for Harvest's next number. Must be unique.
- Purchase order
purchase_ordertext - The client's PO number.
- Subject
subjecttext - The subject line.
- Notes
notestext - Notes printed on it.
- Currency
currencytext - A three-letter code, e.g. EUR.
- Issue date
issue_datedate - The date it is issued.
- Tax (%)
taxnumber - Tax rate in percent, e.g. 10, on lines marked taxed.At least 0.
- Discount (%)
discountnumber - Discount in percent, e.g. 5.From 0 to 100.
- Add line items
line_itemslist - Lines to add, as a list of objects with unit_price and optionally description, quantity (a whole number), item_category and taxed.
Outputs
estimateobject
Example output
{
"estimate": {
"accepted_at": null,
"amount": 9630.0,
"client_id": 5735776,
"client_name": "123 Industries",
"created_at": "2017-06-27T16:11:24Z",
"currency": "USD",
"declined_at": null,
"discount": 10.0,
"discount_amount": 1000.0,
"id": 1439818,
"issue_date": "2017-06-01",
"line_items": [
{
"amount": 10000,
"description": "Phase 2 of the Online Store",
"id": 53334195,
"item_category": "Service",
"project_id": null,
"project_name": null,
"quantity": 100,
"taxed": true,
"unit_price": 100
}
],
"notes": "Some notes about the estimate",
"number": "1001",
"purchase_order": "5678",
"sent_at": "2017-06-27T16:11:33Z",
"state": "sent",
"subject": "Online Store - Phase 2",
"tax": 5.0,
"tax_amount": 450.0,
"updated_at": "2017-06-27T16:13:56Z"
}
}Update expense
Change an expense's project, category, date, amount, units or notes. Only what you fill in changes.
Inputs
- Expense
expense_idtextRequired - The expense's ID, from an earlier step such as Create expense or List expenses.
- Project
project_idtext - Move the expense to this project.
- Category
expense_categorytext - A new expense category, picked or typed by name.
- Date
spent_datedate - A new date.
- Amount
total_costnumber - A new amount, for a category not charged per unit.At least 0.
- Units
unitsnumber - A new number of units, for a category charged per unit.At least 1.
- Notes
notestext - New notes, replacing the old.
- Billable
billabletrue/false - Whether to bill it to the client.
Outputs
expenseobject
Example output
{
"expense": {
"approval_status": "unsubmitted",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:09:54Z",
"expense_category_id": 4195926,
"expense_category_name": "Meals",
"id": 15296442,
"is_billed": false,
"is_locked": false,
"notes": "Lunch with client",
"project_id": 14307913,
"project_name": "Marketing Website",
"spent_date": "2017-03-03",
"total_cost": 33.35,
"units": 1,
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
}Update invoice
Change an invoice's details or due date, or add lines to it. Only what you fill in changes. Nothing is sent.
Inputs
- Invoice
invoice_idtextRequired - The invoice's ID, e.g. from Create invoice or List invoices.
- Client
client_idtext - Move the invoice to this client.
- Number
numbertext - Leave empty for Harvest's next number. Must be unique.
- Purchase order
purchase_ordertext - The client's PO number.
- Subject
subjecttext - The subject line.
- Notes
notestext - Notes printed on it.
- Currency
currencytext - A three-letter code, e.g. EUR.
- Issue date
issue_datedate - The date it is issued.
- Tax (%)
taxnumber - Tax rate in percent, e.g. 10, on lines marked taxed.At least 0.
- Discount (%)
discountnumber - Discount in percent, e.g. 5.From 0 to 100.
- Due date
due_datedate - A due date of your own. Use this or Payment term.
- Payment term
payment_termtext - When payment is due. Use this or Due date.One of:
upon receipt,net 15,net 30,net 45,net 60,custom(Custom (set a due date)). - Add line items
line_itemslist - Lines to add, as a list of objects with unit_price and optionally description, quantity, item_category, project_id and taxed.
Outputs
invoiceobject
Example output
{
"invoice": {
"amount": 288.9,
"client_id": 5735776,
"client_name": "123 Industries",
"created_at": "2017-06-27T16:27:16Z",
"currency": "EUR",
"discount": null,
"discount_amount": 0.0,
"due_amount": 288.9,
"due_date": "2017-04-01",
"id": 13150403,
"issue_date": "2017-04-01",
"line_items": [
{
"amount": 200.0,
"description": "03/01/2017 - Project Management: [9:00am - 11:00am] Planning meetings",
"id": 53341602,
"item_category": "Service",
"project_id": 14308069,
"project_name": "Online Store - Phase 1",
"quantity": 2.0,
"taxed": true,
"unit_price": 100.0
}
],
"notes": "Some notes about the invoice.",
"number": "1001",
"paid_at": null,
"payment_term": "upon receipt",
"purchase_order": "",
"sent_at": "2017-08-23T22:25:59Z",
"state": "open",
"subject": "Online Store - Phase 1",
"tax": 5.0,
"tax_amount": 13.5,
"updated_at": "2017-08-23T22:25:59Z"
}
}Update person
Change a person's details, or archive or restore them. Only what you fill in changes. Needs an Administrator (a Manager can change some details of their teammates).
Inputs
- Person
person_idtextRequired - The person's ID, from an earlier step such as List people or Create person.
- First name
first_nametext - A new first name.
- Last name
last_nametext - A new last name.
- Email
emailtext - A new email address.
- Time zone
time_zonetext - Their time zone as Harvest names it, e.g. Eastern Time (US & Canada).
- Contractor
is_contractortrue/false - Yes if they are a contractor rather than an employee.
- Weekly capacity (hours)
weekly_capacity_hoursnumber - The hours a week they are expected to work, e.g. 35.From 0 to 168.
- Roles
roleslist - Labels for what they do, e.g. Designer; their access in Harvest is not changed.
- On all future projects
has_access_to_all_future_projectstrue/false - Yes puts them on every project created from now on.
- Active
is_activetrue/false - No archives the person; Yes restores them.
Outputs
userobject
Example output
{
"user": {
"email": "jimallen@example.com",
"first_name": "Jim",
"id": 3230547,
"is_active": true,
"last_name": "Allen",
"name": "Jim Allen",
"roles": [
"Developer"
],
"weekly_capacity_hours": 35.0
}
}Update project
Change a project's details, or archive or restore it. Only what you fill in changes.
Inputs
- Project
project_idtextRequired - The project to change.
- New name
nametext - A new name for the project.
- Client
client_idtext - Move the project to this client.
- Active
is_activetrue/false - No archives the project, so no new time goes to it. Yes restores it.
- Code
codetext - A short code for the project, e.g. OS1.
- Billable
is_billabletrue/false - Whether time on the project is billable. Default for a new project: Yes.
- Bill by
bill_bytext - Which hourly rate applies. Default for a new project: Not billable.One of:
Project(Project hourly rate),Tasks(Task hourly rate),People(Person hourly rate),none(Not billable). - Hourly rate
hourly_ratenumber - The project's rate, when billed by project hourly rate.At least 0.
- Budget by
budget_bytext - How the budget is counted. Default for a new project: No budget.One of:
project(Total project hours),project_cost(Total project fees),task(Hours per task),task_fees(Fees per task),person(Hours per person),none(No budget). - Budget
budgetnumber - The budget: hours, or money when budgeted by total project fees.At least 0.
- Cost budget
cost_budgetnumber - The budget in money, when budgeted by fees per task.At least 0.
- Notes
notestext - Notes about the project.
- Starts on
starts_ondate - When the project starts.
- Ends on
ends_ondate - When the project ends.
Outputs
projectobject
Example output
{
"project": {
"bill_by": "Project",
"budget": 200.0,
"budget_by": "project",
"client_id": 5735776,
"client_name": "123 Industries",
"code": "OS1",
"cost_budget": null,
"created_at": "2017-06-26T21:52:18Z",
"currency": "EUR",
"ends_on": null,
"fee": null,
"hourly_rate": 100.0,
"id": 14308069,
"is_active": true,
"is_billable": true,
"is_fixed_fee": false,
"name": "Online Store - Phase 1",
"notes": "",
"starts_on": "2017-06-01",
"updated_at": "2017-06-26T21:54:06Z"
}
}Update task
Change a task's name, default rate or billing, or archive or restore it. Only what you fill in changes.
Inputs
- Task
task_idtextRequired - The task to change.
- New name
nametext - A new name for the task.
- Default hourly rate
default_hourly_ratenumber - The rate it gets on a project.At least 0.
- Billable by default
billable_by_defaulttrue/false - Whether it is billable when put on a project.
- Add to new projects
is_defaulttrue/false - Yes adds it to every project created from now on.
- Active
is_activetrue/false - No archives the task; Yes restores it.
Outputs
taskobject
Example output
{
"task": {
"billable_by_default": false,
"created_at": "2017-06-26T22:08:25Z",
"default_hourly_rate": 0.0,
"id": 8083800,
"is_active": true,
"is_default": false,
"name": "Business Development",
"updated_at": "2017-06-26T22:08:25Z"
}
}Update time entry
Change a time entry's project, task, date, hours, times or notes. Only what you fill in changes.
Inputs
- Time entry
time_entry_idtextRequired - The time entry's ID, from an earlier step such as Create time entry, Start timer or List time entries.
- Project
project_idtext - Move the time to this project. Pick a Task on it too.
- Task
task_idtext - Move the time to this task.
- Date
spent_datedate - Move the time to this day.
- Hours
hoursnumber - The new length, in hours.From 0 to 24.
- Start time
started_timetime - A new start time.
- End time
ended_timetime - A new end time.
- Notes
notestext - New notes, replacing the old.
Outputs
time_entryobject
Example output
{
"time_entry": {
"approval_status": "approved",
"billable": true,
"client_id": 5735774,
"client_name": "ABC Corp",
"created_at": "2017-06-27T15:50:15Z",
"ended_time": "5:00pm",
"hours": 2.11,
"id": 636709355,
"is_billed": false,
"is_locked": true,
"is_running": false,
"notes": "Adding CSS styling",
"project_id": 14307913,
"project_name": "Marketing Website",
"rounded_hours": 2.25,
"spent_date": "2017-03-02",
"started_time": "3:00pm",
"task_id": 8083365,
"task_name": "Graphic Design",
"timer_started_at": null,
"updated_at": "2017-06-27T16:47:14Z",
"user_id": 1782959,
"user_name": "Kim Allen"
}
}