ServiceM8
App · 16 actions
Manage jobs, customers and job scheduling records in your ServiceM8 account.
Actions
| Action | What it does |
|---|---|
| Archive a customer | Set a customer inactive in ServiceM8. |
| Archive a job | Set a job inactive in ServiceM8. |
| Create a customer | Add a new customer to ServiceM8. |
| Create a job | Add a new job to ServiceM8. |
| Get a customer | Read one customer by ID. |
| Get a customer contact | Read one customer contact by ID. |
| Get a job | Read one job by ID. |
| Get a job activity | Read one job activity by ID. |
| Get a staff member | Read one staff member by ID. |
| List customer contacts | Return a page of customer contacts. |
| List customers | Return a page of customers. |
| List job activities | Return a page of job activities. |
| List jobs | Return a page of jobs. |
| List staff | Return a page of staff. |
| Update a customer | Change the supplied fields on a customer. |
| Update a job | Change the supplied fields on a job. |
Archive a customer
Set a customer inactive in ServiceM8.
Inputs
- Customer
customer_idtextRequired - The customer id.
Outputs
dataobject- The response from ServiceM8.
Example output
{
"data": {}
}Archive a job
Set a job inactive in ServiceM8.
Inputs
- Job
job_idtextRequired - The job id.
Outputs
dataobject- The response from ServiceM8.
Example output
{
"data": {}
}Create a customer
Add a new customer to ServiceM8.
Inputs
- Name
nametextRequired - The customer or company name.
- Email
emailtext - The customer email address.
- Phone
phonetext - 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
- Description
descriptiontextRequired - Describe the work to do.
- Address
addresstext - The address of the job.
- Status
statustext - Choose the job status.One of:
Quote,Work Order,Completed,Unsuccessful. - Customer
customertext - Choose the customer.
Outputs
dataobject- The response from ServiceM8.
Example output
{
"data": {
"uuid": "example"
}
}Get a customer
Read one customer by ID.
Inputs
- Customer
customer_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 contact
customer_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
- Job
job_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 activity
job_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 member
staff_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
- Limit
limitnumber - Maximum number of results to return.From 1 to 999.
- Cursor
cursortext - Use the next cursor from the previous response. Leave empty for the first page.
- Filter
filtertext - 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
- Limit
limitnumber - Maximum number of results to return.From 1 to 999.
- Cursor
cursortext - Use the next cursor from the previous response. Leave empty for the first page.
- Filter
filtertext - 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
- Limit
limitnumber - Maximum number of results to return.From 1 to 999.
- Cursor
cursortext - Use the next cursor from the previous response. Leave empty for the first page.
- Filter
filtertext - 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
- Limit
limitnumber - Maximum number of results to return.From 1 to 999.
- Cursor
cursortext - Use the next cursor from the previous response. Leave empty for the first page.
- Filter
filtertext - 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
- Limit
limitnumber - Maximum number of results to return.From 1 to 999.
- Cursor
cursortext - Use the next cursor from the previous response. Leave empty for the first page.
- Filter
filtertext - 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
- Customer
customer_idtextRequired - The customer id.
- Name
nametext - The customer or company name.
- Email
emailtext - The customer email address.
- Phone
phonetext - The customer phone number.
Outputs
dataobject- The response from ServiceM8.
Example output
{
"data": {}
}Update a job
Change the supplied fields on a job.
Inputs
- Job
job_idtextRequired - The job id.
- Description
descriptiontext - Describe the work to do.
- Address
addresstext - The address of the job.
- Status
statustext - Choose the job status.One of:
Quote,Work Order,Completed,Unsuccessful. - Customer
customertext - Choose the customer.
Outputs
dataobject- The response from ServiceM8.
Example output
{
"data": {}
}