Fergus

App · 30 actions

Manage Fergus jobs, customers, sites, contacts, enquiries and tasks, and read quotes and customer invoices.

Actions

ActionWhat it does
Archive a jobArchive a job.
Archive a siteArchive a site.
Complete a taskMark a task as completed.
Create a contactAdd a contact to a customer or a site.
Create a customerCreate a customer with a main contact and, optionally, their address.
Create a jobCreate a job.
Create a siteCreate a site with its default contact and address.
Create a taskCreate a task, optionally linked to a job and assigned to people.
Create an enquiryRecord a new enquiry (a lead), such as from a website form.
Delete a customerDelete a customer.
Delete a taskDelete a task.
Get a contactGet one contact.
Get a customerGet one customer with their contacts and addresses.
Get a customer invoiceGet one customer invoice with its totals and payment state.
Get a jobGet one job with its customer, site, main contact and active quote.
Get a quoteGet one quote with its sections, totals and status.
Get a siteGet one site with its contacts and address.
List contactsList customer and site contacts.
List customer invoicesList customer invoices, filtered by customer, job, number or due date.
List customersList customers, optionally matching a search.
List jobsList jobs, filtered by status, type, customer, site or a search.
List quotesList quotes across all jobs, filtered by status or when they were created or changed.
List sitesList sites (the places where work is done), filtered by name, city, postcode or a search.
List tasksList tasks, filtered by status, assignee, job or due date.
List usersList the people in your Fergus company.
Update a contactChange a contact's name, position, email or phone numbers.
Update a customerChange a customer's name, main contact or address.
Update a jobChange a job's title, description, customer, site or customer order number.
Update a siteChange a site's name or address.
Update a taskChange a task's description, due date or assignees.

Archive a job

Archive a job.

Inputs

Jobjob_idnumberRequired
The job.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {}
}

Archive a site

Archive a site.

Inputs

Sitesite_idnumberRequired
The site.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {}
}

Complete a task

Mark a task as completed.

Inputs

Tasktask_idnumberRequired
The task.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "assignedEmployeeIds": [],
      "completedAt": "example",
      "completedById": 1.0,
      "createdAt": "example",
      "createdById": 1.0,
      "description": "example",
      "dueDate": "example",
      "id": 1.0,
      "jobId": 1.0,
      "links": [],
      "status": "pending"
    },
    "result": "example"
  }
}

Create a contact

Add a contact to a customer or a site.

Inputs

Contact typecontact_typetextRequired
Whether the contact belongs to a customer or a site.One of: CUSTOMER, SITE.
Customercustomer_idnumber
The customer the contact belongs to.
Sitesite_idnumber
The site the contact belongs to.
First namefirst_nametextRequired
The contact's first name.
Last namelast_nametext
The contact's last name.
Positionpositiontext
The contact's position, such as `Office manager`.
Emailemailtext
The contact's email address.
Phonephonetext
The contact's phone number.
Mobilemobiletext
The contact's mobile number.
Companycompanytext
The company the contact works for.
Is mainis_maintrue/false
Make this the main contact.
Is billingis_billingtrue/false
Make this the billing contact.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "company": "example",
      "contactItems": [],
      "contactType": "CUSTOMER",
      "createdAt": "example",
      "customerId": 1.0,
      "firstName": "example",
      "id": 1.0,
      "isBilling": false,
      "isMain": false,
      "lastName": "example",
      "links": [],
      "modifiedAt": "example",
      "position": "example",
      "siteId": 1.0
    },
    "result": "example"
  }
}

Create a customer

Create a customer with a main contact and, optionally, their address.

Inputs

Customer full namecustomer_full_nametextRequired
The customer's full name, as a person or a business.
First namefirst_nametextRequired
The contact's first name.
Last namelast_nametext
The contact's last name.
Positionpositiontext
The contact's position, such as `Office manager`.
Emailemailtext
The contact's email address.
Phonephonetext
The contact's phone number.
Mobilemobiletext
The contact's mobile number.
Address line 1physical_address1text
First line of the address.
Address line 2physical_address2text
Second line of the address.
Suburbphysical_suburbtext
Suburb.
Cityphysical_citytext
City.
Regionphysical_regiontext
Region or state.
Postcodephysical_postcodetext
Postcode.
Countryphysical_countrytext
Country.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "billingContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "companyId": 1.0,
      "createdAt": "example",
      "customerFullName": "example",
      "customerSource": "example",
      "id": 1.0,
      "links": [],
      "mainContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "physicalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      },
      "postalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      },
      "pricingTier": {
        "createdAt": "example",
        "id": 1.0,
        "isDefault": false,
        "links": [],
        "markupRate": 1.0,
        "name": "example",
        "tierType": "example"
      }
    },
    "result": "example"
  }
}

Create a job

Create a job. A job that isn't a draft needs a description, customer and site.

Inputs

Job typejob_typetextRequired
The kind of job.One of: Quote, Estimate, Charge Up.
TitletitletextRequired
The job's title.
Is draftis_drafttrue/false
Create the job as a draft, which needs only a title.
Descriptiondescriptiontext
What the job is for.
Customercustomer_idnumber
The customer the job is for.
Sitesite_idnumber
The site where the work is done.
Customer referencecustomer_referencetext
The customer's order number.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "activeQuote": {
        "createdAt": "example",
        "declinedAt": "example",
        "description": "example",
        "dueDate": "example",
        "dueDays": "example",
        "guid": "example",
        "id": 1.0,
        "isAccepted": false,
        "isDraft": false,
        "isLocked": false,
        "isSent": false,
        "isSuperseded": false,
        "lastModified": "example",
        "publishedAt": "example",
        "quoteDate": "example",
        "title": "example",
        "total": 1.0,
        "versionNumber": 1.0,
        "voidedAt": "example"
      },
      "archived": false,
      "assignedGroups": [],
      "createdAt": "example",
      "customer": {
        "customerFullName": "example",
        "id": 1.0
      },
      "customerReference": "example",
      "description": "example",
      "id": 1.0,
      "jobNo": "example",
      "jobNumber": "example",
      "jobType": "example",
      "jobVariants": [],
      "lastModified": "example",
      "links": [],
      "longDescription": "example",
      "mainContact": {
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example"
      },
      "onHold": false,
      "parentJobId": 1.0,
      "siteAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "name": "example"
      },
      "status": "example"
    },
    "result": "example"
  }
}

Create a site

Create a site with its default contact and address.

Inputs

Namenametext
The site's name.
First namefirst_nametextRequired
The contact's first name.
Last namelast_nametext
The contact's last name.
Positionpositiontext
The contact's position, such as `Office manager`.
Emailemailtext
The contact's email address.
Phonephonetext
The contact's phone number.
Mobilemobiletext
The contact's mobile number.
Address line 1site_address1textRequired
First line of the address.
Address line 2site_address2text
Second line of the address.
Suburbsite_suburbtext
Suburb.
Citysite_citytext
City.
Regionsite_regiontext
Region or state.
Postcodesite_postcodetext
Postcode.
Countrysite_countrytext
Country.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "billingContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "companyId": 1.0,
      "createdAt": "example",
      "defaultContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "deletedAt": "example",
      "id": 1.0,
      "isArchived": false,
      "links": [],
      "name": "example",
      "physicalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      },
      "postalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      }
    },
    "result": "example"
  }
}

Create a task

Create a task, optionally linked to a job and assigned to people.

Inputs

DescriptiondescriptiontextRequired
What needs doing.
Due datedue_datedate
The day the task is due.
Jobjob_idnumber
The job to link the task to. It can't be changed later.
Assigned toassigned_employee_idslist
The people to assign the task to.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "assignedEmployeeIds": [],
      "completedAt": "example",
      "completedById": 1.0,
      "createdAt": "example",
      "createdById": 1.0,
      "description": "example",
      "dueDate": "example",
      "id": 1.0,
      "jobId": 1.0,
      "links": [],
      "status": "pending"
    },
    "result": "example"
  }
}

Create an enquiry

Record a new enquiry (a lead), such as from a website form.

Inputs

NamenametextRequired
The name of the person or business enquiring.
DescriptiondescriptiontextRequired
What they're asking for.
SourcesourcetextRequired
Where the enquiry came from, such as `Website`.
Emailemailtext
Their email address.
Phone numberphone_numbertext
Their phone number.
Address line 1address1text
First line of their address.
Address line 2address2text
Second line of their address.
Suburbsuburbtext
Suburb.
Citycitytext
City.
Regionregiontext
Region or state.
Postcodepostcodetext
Postcode.
Countrycountrytext
Country.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "address1": "example",
      "address2": "example",
      "addressCity": "example",
      "addressCountry": "example",
      "addressPostcode": "example",
      "addressRegion": "example",
      "addressSuburb": "example",
      "contactName": "example",
      "createdAt": "example",
      "description": "example",
      "id": 1.0,
      "links": [],
      "name": "example",
      "source": "example",
      "status": "example"
    },
    "result": "example"
  }
}

Delete a customer

Delete a customer.

Inputs

Customercustomer_idnumberRequired
The customer.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {}
}

Delete a task

Delete a task.

Inputs

Tasktask_idnumberRequired
The task.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {}
}

Get a contact

Get one contact.

Inputs

Contactcontact_idnumberRequired
The contact.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "company": "example",
      "contactItems": [],
      "contactType": "CUSTOMER",
      "createdAt": "example",
      "customerId": 1.0,
      "firstName": "example",
      "id": 1.0,
      "isBilling": false,
      "isMain": false,
      "lastName": "example",
      "links": [],
      "modifiedAt": "example",
      "position": "example",
      "siteId": 1.0
    },
    "result": "example"
  }
}

Get a customer

Get one customer with their contacts and addresses.

Inputs

Customercustomer_idnumberRequired
The customer.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "billingContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "companyId": 1.0,
      "createdAt": "example",
      "customerFullName": "example",
      "customerSource": "example",
      "id": 1.0,
      "links": [],
      "mainContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "physicalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      },
      "postalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      },
      "pricingTier": {
        "createdAt": "example",
        "id": 1.0,
        "isDefault": false,
        "links": [],
        "markupRate": 1.0,
        "name": "example",
        "tierType": "example"
      }
    },
    "result": "example"
  }
}

Get a customer invoice

Get one customer invoice with its totals and payment state.

Inputs

Invoiceinvoice_idnumberRequired
The invoice.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "attn": "example",
      "createdAt": "example",
      "customer": {
        "customerFullName": "example",
        "id": 1.0,
        "links": []
      },
      "customerId": 1.0,
      "description": "example",
      "directDebitStatus": "example",
      "dueDate": "example",
      "dueDays": {},
      "fergusPayEnabled": false,
      "id": 1.0,
      "invoiceDate": "example",
      "invoiceNumber": "example",
      "isFinal": false,
      "isSent": false,
      "jobId": 1.0,
      "links": [],
      "paidAt": "example",
      "receiverEmail": "example",
      "receiverFullName": "example",
      "receiverPostalAddress": "example",
      "sections": [],
      "status": "unpaid",
      "subtotal": 1.0,
      "taxRate": 1.0,
      "taxValue": 1.0,
      "title": "example",
      "totalPaid": 1.0,
      "type": "approved"
    },
    "result": "example"
  }
}

Get a job

Get one job with its customer, site, main contact and active quote.

Inputs

Jobjob_idnumberRequired
The job.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "activeQuote": {
        "createdAt": "example",
        "declinedAt": "example",
        "description": "example",
        "dueDate": "example",
        "dueDays": "example",
        "guid": "example",
        "id": 1.0,
        "isAccepted": false,
        "isDraft": false,
        "isLocked": false,
        "isSent": false,
        "isSuperseded": false,
        "lastModified": "example",
        "publishedAt": "example",
        "quoteDate": "example",
        "title": "example",
        "total": 1.0,
        "versionNumber": 1.0,
        "voidedAt": "example"
      },
      "archived": false,
      "assignedGroups": [],
      "createdAt": "example",
      "customer": {
        "customerFullName": "example",
        "id": 1.0
      },
      "customerReference": "example",
      "description": "example",
      "id": 1.0,
      "jobNo": "example",
      "jobNumber": "example",
      "jobType": "example",
      "jobVariants": [],
      "lastModified": "example",
      "links": [],
      "longDescription": "example",
      "mainContact": {
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example"
      },
      "onHold": false,
      "parentJobId": 1.0,
      "siteAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "name": "example"
      },
      "status": "example"
    },
    "result": "example"
  }
}

Get a quote

Get one quote with its sections, totals and status.

Inputs

Quotequote_idnumberRequired
The quote.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "acceptedAt": "example",
      "acceptedBy": "example",
      "attn": "example",
      "createdAt": "example",
      "declinedAt": "example",
      "deposit": {
        "invoiceGuid": "example",
        "invoiceUrl": "example",
        "isPaid": false,
        "optionType": "example",
        "optionValue": 1.0
      },
      "description": "example",
      "dueDate": "example",
      "dueDays": "example",
      "footerText": "example",
      "guid": "example",
      "id": 1.0,
      "isAccepted": false,
      "isDraft": false,
      "isLocked": false,
      "isSent": false,
      "isSuperseded": false,
      "jobId": 1.0,
      "jobNo": 1,
      "lastModified": "example",
      "links": [],
      "publishedAt": "example",
      "quoteConfig": {
        "accentColour": "example",
        "fontColour": "example",
        "fontSizeOverride": "example",
        "indentCustomerAddress": false,
        "mainColour": "example",
        "orientation": "example",
        "showAllLineItems": false,
        "showDocumentTotals": false,
        "showLabourPrices": false,
        "showLabourSummary": false,
        "showLineItemPrices": false,
        "showLineItemQuantities": false,
        "showLineItemTotals": false,
        "showMaterialPrices": false,
        "showMaterialSummary": false,
        "showSectionTotals": false
      },
      "quoteDate": "example",
      "receiverFullName": "example",
      "receiverPostalAddress": "example",
      "sections": [],
      "title": "example",
      "totals": {
        "discount": 1.0,
        "discountedSubTotal": 1.0,
        "gst": 1.0,
        "subTotal": 1.0,
        "total": 1.0
      },
      "versionNumber": 1.0,
      "voidedAt": "example"
    },
    "result": "example"
  }
}

Get a site

Get one site with its contacts and address.

Inputs

Sitesite_idnumberRequired
The site.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "billingContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "companyId": 1.0,
      "createdAt": "example",
      "defaultContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "deletedAt": "example",
      "id": 1.0,
      "isArchived": false,
      "links": [],
      "name": "example",
      "physicalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      },
      "postalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      }
    },
    "result": "example"
  }
}

List contacts

List customer and site contacts.

Inputs

Contact typecontact_typetext
Only customer contacts or only site contacts.One of: CUSTOMER, SITE.
Customercustomer_idnumber
Only contacts of this customer.
Sitesite_idnumber
Only contacts of this site.
Searchsearchtext
Text to find in the contact's name, email or phone number.
Sort fieldsort_fieldtext
Field to sort by.One of: firstName, lastName, createdAt.
Page sizepage_sizenumber
Records per page, up to 100. Fergus returns 10 when left empty.From 1 to 100.
Page cursorpage_cursortext
The page to fetch, from the previous page's next link. Leave empty for the first page.
Sort ordersort_ordertext
Sort ascending (the default) or descending.One of: asc, desc.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "links": {
        "next": "example",
        "previous": "example",
        "self": "example"
      },
      "pageCount": 1.0,
      "perPage": 1.0
    },
    "result": "example"
  }
}

List customer invoices

List customer invoices, filtered by customer, job, number or due date.

Inputs

Customercustomer_idnumber
Only invoices for this customer.
Jobjob_idnumber
Only invoices for this job.
Invoice numberinvoice_numbertext
Text to find in the invoice number.
Due afterdue_afterdate and time
Only invoices due after this time.
Due beforedue_beforedate and time
Only invoices due before this time.
Sort fieldsort_fieldtext
Field to sort by.One of: id, createdAt, dueDate.
Page sizepage_sizenumber
Records per page, up to 100. Fergus returns 10 when left empty.From 1 to 100.
Page cursorpage_cursortext
The page to fetch, from the previous page's next link. Leave empty for the first page.
Sort ordersort_ordertext
Sort ascending (the default) or descending.One of: asc, desc.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "links": {
        "next": "example",
        "previous": "example",
        "self": "example"
      },
      "pageCount": 1.0,
      "perPage": 1.0
    },
    "result": "example"
  }
}

List customers

List customers, optionally matching a search.

Inputs

Searchsearchtext
Text to find in the customer's name or main contact.
Sort fieldsort_fieldtext
Field to sort by.One of: name, createdAt.
Page sizepage_sizenumber
Records per page, up to 100. Fergus returns 10 when left empty.From 1 to 100.
Page cursorpage_cursortext
The page to fetch, from the previous page's next link. Leave empty for the first page.
Sort ordersort_ordertext
Sort ascending (the default) or descending.One of: asc, desc.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "links": {
        "next": "example",
        "previous": "example",
        "self": "example"
      },
      "pageCount": 1.0,
      "perPage": 1.0
    },
    "result": "example"
  }
}

List jobs

List jobs, filtered by status, type, customer, site or a search.

Inputs

Statusstatustext
Only jobs with this status.One of: Active, Completed, Estimate Rejected, Estimate Sent, Inactive, Quote Sent, Quote Rejected, To Price.
Job typejob_typetext
Only jobs of this type.One of: Quote, Estimate, Charge Up.
Customercustomer_idnumber
Only jobs for this customer.
Sitesite_idnumber
Only jobs at this site.
Job numberjob_numbertext
Only the job with this job number.
Customer referencecustomer_referencetext
Only jobs whose customer order number is exactly this.
Searchsearchtext
Text to find in the job's description, number, customer name or site address.
Show on holdshow_on_holdtrue/false
Include jobs on hold.
Show archivedshow_archivedtrue/false
Include archived jobs.
Sort fieldsort_fieldtext
Field to sort by.One of: jobNo, createdAt, lastModified.
Page sizepage_sizenumber
Records per page, up to 100. Fergus returns 10 when left empty.From 1 to 100.
Page cursorpage_cursortext
The page to fetch, from the previous page's next link. Leave empty for the first page.
Sort ordersort_ordertext
Sort ascending (the default) or descending.One of: asc, desc.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "links": {
        "next": "example",
        "previous": "example",
        "self": "example"
      },
      "pageCount": 1.0,
      "perPage": 1.0
    },
    "result": "example"
  }
}

List quotes

List quotes across all jobs, filtered by status or when they were created or changed.

Inputs

Statusstatustext
Only quotes with this status.One of: draft, accepted, voided, superseded, declined, published, emailSent, emailNotSent.
Created aftercreated_afterdate and time
Only quotes created after this time.
Modified aftermodified_afterdate and time
Only quotes changed after this time.
Sort fieldsort_fieldtext
Field to sort by.One of: id, createdAt, lastModified.
Page sizepage_sizenumber
Records per page, up to 100. Fergus returns 10 when left empty.From 1 to 100.
Page cursorpage_cursortext
The page to fetch, from the previous page's next link. Leave empty for the first page.
Sort ordersort_ordertext
Sort ascending (the default) or descending.One of: asc, desc.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "links": {
        "next": "example",
        "previous": "example",
        "self": "example"
      },
      "pageCount": 1.0,
      "perPage": 1.0
    },
    "result": "example"
  }
}

List sites

List sites (the places where work is done), filtered by name, city, postcode or a search.

Inputs

Namenametext
Only sites with this name.
Citycitytext
Only sites in this city.
Postcodepostcodetext
Only sites with this postcode.
Searchsearchtext
Text to find in the site's name, contacts or address.
Sort fieldsort_fieldtext
Field to sort by.One of: name, createdAt.
Page sizepage_sizenumber
Records per page, up to 100. Fergus returns 10 when left empty.From 1 to 100.
Page cursorpage_cursortext
The page to fetch, from the previous page's next link. Leave empty for the first page.
Sort ordersort_ordertext
Sort ascending (the default) or descending.One of: asc, desc.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "links": {
        "next": "example",
        "previous": "example",
        "self": "example"
      },
      "pageCount": 1.0,
      "perPage": 1.0
    },
    "result": "example"
  }
}

List tasks

List tasks, filtered by status, assignee, job or due date.

Inputs

Statusstatustext
Only tasks with this status.One of: pending, completed.
Assigned toemployee_idnumber
Only tasks assigned to this person.
Jobjob_idnumber
Only tasks linked to this job.
Due fromdue_fromdate
Only tasks due on or after this day.
Due todue_todate
Only tasks due on or before this day.
Overdueoverduetrue/false
Only tasks past their due date and not completed.
Sort fieldsort_fieldtext
Field to sort by.One of: createdAt, dueDate.
Page sizepage_sizenumber
Records per page, up to 100. Fergus returns 10 when left empty.From 1 to 100.
Page cursorpage_cursortext
The page to fetch, from the previous page's next link. Leave empty for the first page.
Sort ordersort_ordertext
Sort ascending (the default) or descending.One of: asc, desc.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "links": {
        "next": "example",
        "previous": "example",
        "self": "example"
      },
      "pageCount": 1.0,
      "perPage": 1.0
    },
    "result": "example"
  }
}

List users

List the people in your Fergus company.

Inputs

User typeuser_typetext
Only users of this type.One of: contractor, time_sheet_only (Time sheet only), field_worker (Field worker), apprentice, tradesman, advisor, full_user (Full user).
Statusstatustext
Only users with this status.One of: active, disabled, invited.
Searchsearchtext
Text to find in the user's name, username, email or address.
Sort fieldsort_fieldtext
Field to sort by.One of: firstName, lastName, createdAt.
Page sizepage_sizenumber
Records per page, up to 100. Fergus returns 10 when left empty.From 1 to 100.
Page cursorpage_cursortext
The page to fetch, from the previous page's next link. Leave empty for the first page.
Sort ordersort_ordertext
Sort ascending (the default) or descending.One of: asc, desc.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "links": {
        "next": "example",
        "previous": "example",
        "self": "example"
      },
      "pageCount": 1.0,
      "perPage": 1.0
    },
    "result": "example"
  }
}

Update a contact

Change a contact's name, position, email or phone numbers. Fields left empty keep their current values.

Inputs

Contactcontact_idnumberRequired
The contact.
First namefirst_nametext
The contact's first name.
Last namelast_nametext
The contact's last name.
Positionpositiontext
The contact's position, such as `Office manager`.
Emailemailtext
The contact's email address.
Phonephonetext
The contact's phone number.
Mobilemobiletext
The contact's mobile number.
Companycompanytext
The company the contact works for.
Is mainis_maintrue/false
Make this the main contact.
Is billingis_billingtrue/false
Make this the billing contact.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "company": "example",
      "contactItems": [],
      "contactType": "CUSTOMER",
      "createdAt": "example",
      "customerId": 1.0,
      "firstName": "example",
      "id": 1.0,
      "isBilling": false,
      "isMain": false,
      "lastName": "example",
      "links": [],
      "modifiedAt": "example",
      "position": "example",
      "siteId": 1.0
    },
    "result": "example"
  }
}

Update a customer

Change a customer's name, main contact or address. Fields left empty keep their current values.

Inputs

Customercustomer_idnumberRequired
The customer.
Customer full namecustomer_full_nametext
The customer's full name.
First namefirst_nametext
The contact's first name.
Last namelast_nametext
The contact's last name.
Positionpositiontext
The contact's position, such as `Office manager`.
Emailemailtext
The contact's email address.
Phonephonetext
The contact's phone number.
Mobilemobiletext
The contact's mobile number.
Address line 1physical_address1text
First line of the address.
Address line 2physical_address2text
Second line of the address.
Suburbphysical_suburbtext
Suburb.
Cityphysical_citytext
City.
Regionphysical_regiontext
Region or state.
Postcodephysical_postcodetext
Postcode.
Countryphysical_countrytext
Country.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "billingContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "companyId": 1.0,
      "createdAt": "example",
      "customerFullName": "example",
      "customerSource": "example",
      "id": 1.0,
      "links": [],
      "mainContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "physicalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      },
      "postalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      },
      "pricingTier": {
        "createdAt": "example",
        "id": 1.0,
        "isDefault": false,
        "links": [],
        "markupRate": 1.0,
        "name": "example",
        "tierType": "example"
      }
    },
    "result": "example"
  }
}

Update a job

Change a job's title, description, customer, site or customer order number.

Inputs

Jobjob_idnumberRequired
The job.
Titletitletext
The job's title.
Descriptiondescriptiontext
What the job is for.
Customercustomer_idnumber
The customer the job is for.
Sitesite_idnumber
The site where the work is done.
Customer referencecustomer_referencetext
The customer's order number.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "activeQuote": {
        "createdAt": "example",
        "declinedAt": "example",
        "description": "example",
        "dueDate": "example",
        "dueDays": "example",
        "guid": "example",
        "id": 1.0,
        "isAccepted": false,
        "isDraft": false,
        "isLocked": false,
        "isSent": false,
        "isSuperseded": false,
        "lastModified": "example",
        "publishedAt": "example",
        "quoteDate": "example",
        "title": "example",
        "total": 1.0,
        "versionNumber": 1.0,
        "voidedAt": "example"
      },
      "archived": false,
      "assignedGroups": [],
      "createdAt": "example",
      "customer": {
        "customerFullName": "example",
        "id": 1.0
      },
      "customerReference": "example",
      "description": "example",
      "id": 1.0,
      "jobNo": "example",
      "jobNumber": "example",
      "jobType": "example",
      "jobVariants": [],
      "lastModified": "example",
      "links": [],
      "longDescription": "example",
      "mainContact": {
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example"
      },
      "onHold": false,
      "parentJobId": 1.0,
      "siteAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "name": "example"
      },
      "status": "example"
    },
    "result": "example"
  }
}

Update a site

Change a site's name or address. Fields left empty keep their current values.

Inputs

Sitesite_idnumberRequired
The site.
Namenametext
The site's name.
Address line 1site_address1text
First line of the address.
Address line 2site_address2text
Second line of the address.
Suburbsite_suburbtext
Suburb.
Citysite_citytext
City.
Regionsite_regiontext
Region or state.
Postcodesite_postcodetext
Postcode.
Countrysite_countrytext
Country.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "billingContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "companyId": 1.0,
      "createdAt": "example",
      "defaultContact": {
        "company": "example",
        "contactItems": [],
        "firstName": "example",
        "id": 1.0,
        "lastName": "example",
        "position": "example"
      },
      "deletedAt": "example",
      "id": 1.0,
      "isArchived": false,
      "links": [],
      "name": "example",
      "physicalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      },
      "postalAddress": {
        "address1": "example",
        "address2": "example",
        "addressCity": "example",
        "addressCountry": "example",
        "addressPostcode": "example",
        "addressRegion": "example",
        "addressSuburb": "example",
        "id": 1.0
      }
    },
    "result": "example"
  }
}

Update a task

Change a task's description, due date or assignees. Assignees you give replace the current ones.

Inputs

Tasktask_idnumberRequired
The task.
Descriptiondescriptiontext
What needs doing.
Due datedue_datedate
The day the task is due.
Assigned toassigned_employee_idslist
The people to assign the task to, replacing the current ones.

Outputs

dataobject
The response from Fergus.
Example output
{
  "data": {
    "data": {
      "assignedEmployeeIds": [],
      "completedAt": "example",
      "completedById": 1.0,
      "createdAt": "example",
      "createdById": 1.0,
      "description": "example",
      "dueDate": "example",
      "id": 1.0,
      "jobId": 1.0,
      "links": [],
      "status": "pending"
    },
    "result": "example"
  }
}

On this page