ServiceM8

App · 16 actions

Manage jobs, customers and job scheduling records in your ServiceM8 account.

Actions

ActionWhat it does
Archive a customerSet a customer inactive in ServiceM8.
Archive a jobSet a job inactive in ServiceM8.
Create a customerAdd a new customer to ServiceM8.
Create a jobAdd a new job to ServiceM8.
Get a customerRead one customer by ID.
Get a customer contactRead one customer contact by ID.
Get a jobRead one job by ID.
Get a job activityRead one job activity by ID.
Get a staff memberRead one staff member by ID.
List customer contactsReturn a page of customer contacts.
List customersReturn a page of customers.
List job activitiesReturn a page of job activities.
List jobsReturn a page of jobs.
List staffReturn a page of staff.
Update a customerChange the supplied fields on a customer.
Update a jobChange the supplied fields on a job.

Archive a customer

Set a customer inactive in ServiceM8.

Inputs

Customercustomer_idtextRequired
The customer id.

Outputs

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

Archive a job

Set a job inactive in ServiceM8.

Inputs

Jobjob_idtextRequired
The job id.

Outputs

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

Create a customer

Add a new customer to ServiceM8.

Inputs

NamenametextRequired
The customer or company name.
Emailemailtext
The customer email address.
Phonephonetext
The customer phone number.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "uuid": "example"
  }
}

Create a job

Add a new job to ServiceM8.

Inputs

DescriptiondescriptiontextRequired
Describe the work to do.
Addressaddresstext
The address of the job.
Statusstatustext
Choose the job status.One of: Quote, Work Order, Completed, Unsuccessful.
Customercustomertext
Choose the customer.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "uuid": "example"
  }
}

Get a customer

Read one customer by ID.

Inputs

Customercustomer_idtextRequired
The customer id.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "active": 1,
    "edit_date": "example",
    "email": "example",
    "name": "example",
    "phone": "example",
    "uuid": "example"
  }
}

Get a customer contact

Read one customer contact by ID.

Inputs

Customer contactcustomer_contact_idtextRequired
The customer contact id.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "active": 1,
    "company_uuid": "example",
    "email": "example",
    "first": "example",
    "last": "example",
    "mobile": "example",
    "phone": "example",
    "uuid": "example"
  }
}

Get a job

Read one job by ID.

Inputs

Jobjob_idtextRequired
The job id.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "active": 1,
    "company_uuid": "example",
    "edit_date": "example",
    "generated_job_id": "example",
    "job_address": "example",
    "job_description": "example",
    "status": "example",
    "uuid": "example"
  }
}

Get a job activity

Read one job activity by ID.

Inputs

Job activityjob_activity_idtextRequired
The job activity id.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "active": 1,
    "edit_date": "example",
    "end_date": "example",
    "job_uuid": "example",
    "staff_uuid": "example",
    "start_date": "example",
    "uuid": "example"
  }
}

Get a staff member

Read one staff member by ID.

Inputs

Staff memberstaff_member_idtextRequired
The staff member id.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "active": 1,
    "email": "example",
    "first": "example",
    "last": "example",
    "uuid": "example"
  }
}

List customer contacts

Return a page of customer contacts.

Inputs

Limitlimitnumber
Maximum number of results to return.From 1 to 999.
Cursorcursortext
Use the next cursor from the previous response. Leave empty for the first page.
Filterfiltertext
An optional ServiceM8 filter, such as active eq 1.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "items": [
      {
        "active": 1,
        "company_uuid": "example",
        "email": "example",
        "first": "example",
        "last": "example",
        "mobile": "example",
        "phone": "example",
        "uuid": "example"
      }
    ],
    "next_cursor": "example"
  }
}

List customers

Return a page of customers.

Inputs

Limitlimitnumber
Maximum number of results to return.From 1 to 999.
Cursorcursortext
Use the next cursor from the previous response. Leave empty for the first page.
Filterfiltertext
An optional ServiceM8 filter, such as active eq 1.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "items": [
      {
        "active": 1,
        "edit_date": "example",
        "email": "example",
        "name": "example",
        "phone": "example",
        "uuid": "example"
      }
    ],
    "next_cursor": "example"
  }
}

List job activities

Return a page of job activities.

Inputs

Limitlimitnumber
Maximum number of results to return.From 1 to 999.
Cursorcursortext
Use the next cursor from the previous response. Leave empty for the first page.
Filterfiltertext
An optional ServiceM8 filter, such as active eq 1.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "items": [
      {
        "active": 1,
        "edit_date": "example",
        "end_date": "example",
        "job_uuid": "example",
        "staff_uuid": "example",
        "start_date": "example",
        "uuid": "example"
      }
    ],
    "next_cursor": "example"
  }
}

List jobs

Return a page of jobs.

Inputs

Limitlimitnumber
Maximum number of results to return.From 1 to 999.
Cursorcursortext
Use the next cursor from the previous response. Leave empty for the first page.
Filterfiltertext
An optional ServiceM8 filter, such as active eq 1.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "items": [
      {
        "active": 1,
        "company_uuid": "example",
        "edit_date": "example",
        "generated_job_id": "example",
        "job_address": "example",
        "job_description": "example",
        "status": "example",
        "uuid": "example"
      }
    ],
    "next_cursor": "example"
  }
}

List staff

Return a page of staff.

Inputs

Limitlimitnumber
Maximum number of results to return.From 1 to 999.
Cursorcursortext
Use the next cursor from the previous response. Leave empty for the first page.
Filterfiltertext
An optional ServiceM8 filter, such as active eq 1.

Outputs

dataobject
The response from ServiceM8.
Example output
{
  "data": {
    "items": [
      {
        "active": 1,
        "email": "example",
        "first": "example",
        "last": "example",
        "uuid": "example"
      }
    ],
    "next_cursor": "example"
  }
}

Update a customer

Change the supplied fields on a customer.

Inputs

Customercustomer_idtextRequired
The customer id.
Namenametext
The customer or company name.
Emailemailtext
The customer email address.
Phonephonetext
The customer phone number.

Outputs

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

Update a job

Change the supplied fields on a job.

Inputs

Jobjob_idtextRequired
The job id.
Descriptiondescriptiontext
Describe the work to do.
Addressaddresstext
The address of the job.
Statusstatustext
Choose the job status.One of: Quote, Work Order, Completed, Unsuccessful.
Customercustomertext
Choose the customer.

Outputs

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

On this page