ServiceTrade

App · 26 actions

Manage ServiceTrade jobs, locations, companies and contacts, and read appointments, quotes and invoices.

Actions

ActionWhat it does
Add a comment to a jobAdd a comment to a job.
Create a companyCreate a company.
Create a contactCreate a contact for companies or locations.
Create a jobCreate a job at a location.
Create a locationCreate a location for a company.
Delete a companyDelete a company.
Delete a locationDelete a location.
Get a companyGet one company with its address and status.
Get a contactGet one contact with their companies and locations.
Get a jobGet one job with its location, customer, appointments and service requests.
Get a locationGet one location with its address, company and contacts.
Get a quoteGet one quote with its items and totals.
Get an appointmentGet one appointment with its window, job and technicians.
Get an invoiceGet one invoice with its items, totals and payment state.
List appointmentsList appointments, filtered by job, status, technician or schedule window.
List companiesList companies (customers, vendors and contractors), filtered by name, place, status or when they changed.
List contactsList contacts, filtered by company, location, a search or when they changed.
List invoicesList invoices, filtered by job, customer, status, payment or when they changed.
List jobsList jobs, filtered by status, type, location, customer or when they changed.
List locationsList customer locations, filtered by name, company, status or when they changed.
List quotesList quotes, filtered by status, customer, location or when they changed.
List usersList your company's users, such as technicians and salespeople.
Update a companyChange a company's name, address, phone or status.
Update a contactChange a contact's name, email, phone numbers, types or status.
Update a jobChange a job's name, description, status, owner or other details.
Update a locationChange a location's name, address, phone, email or status.

Add a comment to a job

Add a comment to a job.

Inputs

Jobjob_idnumberRequired
The job to comment on.
ContentcontenttextRequired
The comment.
Visibilityvisibilitylist
Who and where the comment shows. Private to your team when left empty.One or more of: public, schedule, tech, billing.
Pinnedpinnedtrue/false
Pin the comment to the top.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "author": {
        "avatar": {},
        "email": "example",
        "id": 1,
        "isHelper": false,
        "isTech": false,
        "name": "example",
        "status": "active",
        "uri": "example"
      },
      "content": "example",
      "created": 1,
      "entity": {
        "id": 1,
        "type": 1,
        "uri": "example"
      },
      "id": 1,
      "pinned": false,
      "updated": 1,
      "uri": "example",
      "visibility": []
    }
  }
}

Create a company

Create a company. New companies are customers unless you say otherwise.

Inputs

NamenametextRequired
The company's name.
StreetstreettextRequired
Street address.
CitycitytextRequired
City.
StatestatetextRequired
Two-letter US state or Canadian province code, such as `NC`.
Postal codepostal_codetext
ZIP or postal code.
Phone numberphone_numbertext
The company's phone number.
Reference numberref_numbertext
Your reference number. ServiceTrade makes one when left empty.
Is a customercustomertrue/false
Whether the company is a customer. Yes when left empty.
Is a vendorvendortrue/false
Whether the company is a service vendor.
Statusstatustext
The company's status. New companies are active.One of: active, pending, inactive, on_hold (On hold).

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "address": {
        "city": "example",
        "postalCode": "example",
        "state": "example",
        "street": "example"
      },
      "created": 1,
      "customer": false,
      "defaultBrand": {
        "displayName": "example",
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "externalIds": {},
      "id": 1,
      "logo": {
        "aspect": "tall",
        "contentUrl": "example",
        "id": 1,
        "uri": "example"
      },
      "managingAccount": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "name": "example",
      "partsVendor": false,
      "phoneNumber": "example",
      "primeContractor": false,
      "refNumber": "example",
      "serviceLinesProvided": [],
      "shareId": 1,
      "status": "active",
      "tags": [],
      "updated": 1,
      "uri": "example",
      "vendor": false
    }
  }
}

Create a contact

Create a contact for companies or locations. Give a first or last name.

Inputs

First namefirst_nametext
First name. Needed when there's no last name.
Last namelast_nametext
Last name. Needed when there's no first name.
Emailemailtext
Email address.
Phonephonetext
Phone number.
Mobilemobiletext
Mobile phone number.
Contact typescontact_typeslist
Contact types, such as `management` or `financial`.
Companiescompany_idslist
Companies the contact belongs to.
Locationslocation_idslist
Locations the contact belongs to.
Statusstatustext
Who can see the contact. New contacts are private.One of: public, private, inactive.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "alternatePhone": "example",
      "companies": [],
      "company": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "created": 1,
      "email": "example",
      "externalIds": {},
      "firstName": "example",
      "id": 1,
      "lastName": "example",
      "location": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "locations": [],
      "mobile": "example",
      "phone": "example",
      "status": "public",
      "type": "example",
      "types": [],
      "updated": 1,
      "uri": "example"
    }
  }
}

Create a job

Create a job at a location.

Inputs

Locationlocation_idnumberRequired
The location where the work will be done.
Job typejob_typetextRequired
The kind of work.One of: administrative, buildout, cleaning, construction, consultation, delivery, design, emergency_service_call (Emergency service call), exchange, hookup, and 24 more.
Statusstatustext
The job's first status.One of: new, scheduled, canceled, bidding, completed, pending_invoice (Pending invoice), sending_invoice (Sending invoice), closed.
Custom namecustom_nametext
A custom name for the job.
Descriptiondescriptiontext
What the job is for.
Customer POcustomer_potext
The customer's purchase order number.
Ownerowner_idnumber
The user who owns the job.
Primary contactprimary_contact_idnumber
The job's primary contact. They must belong to the job's location or customer.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "assignedOffice": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "budgeted": false,
      "completedOn": 1,
      "contract": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "created": 1,
      "currentAppointment": {
        "id": 1,
        "name": "example",
        "released": false,
        "status": "scheduled",
        "techs": [],
        "uri": "example",
        "windowEnd": 1,
        "windowStart": 1
      },
      "customName": "example",
      "customer": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "customerPo": "example",
      "deficienciesFound": false,
      "description": "example",
      "displayStatus": "example",
      "displaySubstatus": "example",
      "dueAfter": 1,
      "dueBy": 1,
      "estimatedPrice": 1.0,
      "externalIds": {},
      "id": 1,
      "isProject": false,
      "ivrActivity": "example",
      "ivrOpen": false,
      "jobTypeWeight": 1,
      "latestClockIn": 1,
      "location": {
        "address": {},
        "distance": 1.0,
        "email": "example",
        "generalManager": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "name": "example",
      "notes": [],
      "number": 1,
      "offices": [],
      "otherTradeDeficienciesFound": false,
      "owner": {
        "avatar": {},
        "email": "example",
        "id": 1,
        "isHelper": false,
        "isTech": false,
        "name": "example",
        "status": "active",
        "uri": "example"
      },
      "percentComplete": 1,
      "primaryContact": {
        "alternatePhone": "example",
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "mobile": "example",
        "phone": "example",
        "type": "example",
        "types": [],
        "uri": "example"
      },
      "project": {
        "endDate": 1,
        "id": 1,
        "startDate": 1,
        "uri": "example"
      },
      "redTagsFound": false,
      "refNumber": "example",
      "sales": {
        "avatar": {},
        "email": "example",
        "id": 1,
        "isHelper": false,
        "isTech": false,
        "name": "example",
        "status": "active",
        "uri": "example"
      },
      "scheduledDate": 1,
      "schedulingComments": [],
      "sectionVisibilities": [],
      "serviceLine": "example",
      "serviceLinkAttachmentCategoryVisibility": [],
      "serviceLinkAttachmentVisibility": false,
      "serviceLinkCommentVisibility": false,
      "serviceRequests": [],
      "status": "new",
      "substatus": "example",
      "tags": [],
      "terms": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "type": "administrative",
      "updated": 1,
      "uri": "example",
      "vendor": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "visibility": []
    }
  }
}

Create a location

Create a location for a company.

Inputs

NamenametextRequired
The location's name.
Companycompany_idnumberRequired
The company the location belongs to.
StreetstreettextRequired
Street address.
CitycitytextRequired
City.
StatestatetextRequired
Two-letter US state or Canadian province code, such as `NC`.
Postal codepostal_codetext
ZIP or postal code.
Phone numberphone_numbertext
The location's phone number.
Emailemailtext
The location's email address.
Reference numberref_numbertext
Your reference number. ServiceTrade makes one when left empty.
Statusstatustext
The location's status. New locations are active.One of: active, inactive, pending.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "address": {
        "city": "example",
        "postalCode": "example",
        "state": "example",
        "street": "example"
      },
      "brand": {
        "displayName": "example",
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "company": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "created": 1,
      "email": "example",
      "externalIds": {},
      "generalManager": "example",
      "geocodeQuality": 1,
      "id": 1,
      "lat": 1.0,
      "lon": 1.0,
      "name": "example",
      "offices": [],
      "phoneNumber": "example",
      "primaryContact": {
        "alternatePhone": "example",
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "mobile": "example",
        "phone": "example",
        "type": "example",
        "types": [],
        "uri": "example"
      },
      "refNumber": "example",
      "remitToAddress": {
        "city": "example",
        "email": "example",
        "phone": "example",
        "postalCode": "example",
        "state": "example",
        "street": "example"
      },
      "remitToSource": "example",
      "status": "active",
      "storeNumber": "example",
      "tags": [],
      "taxGroup": {
        "code": "example",
        "combinedRate": 1.0,
        "combinedRateDetails": [],
        "id": 1,
        "name": "example",
        "state": "example",
        "uri": "example"
      },
      "taxable": false,
      "updated": 1,
      "uri": "example"
    }
  }
}

Delete a company

Delete a company. ServiceTrade refuses when the company has locations, jobs or other records.

Inputs

Companycompany_idnumberRequired
The company.

Outputs

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

Delete a location

Delete a location. ServiceTrade refuses when the location has jobs or other records.

Inputs

Locationlocation_idnumberRequired
The location.

Outputs

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

Get a company

Get one company with its address and status.

Inputs

Companycompany_idnumberRequired
The company.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "address": {
        "city": "example",
        "postalCode": "example",
        "state": "example",
        "street": "example"
      },
      "created": 1,
      "customer": false,
      "defaultBrand": {
        "displayName": "example",
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "externalIds": {},
      "id": 1,
      "logo": {
        "aspect": "tall",
        "contentUrl": "example",
        "id": 1,
        "uri": "example"
      },
      "managingAccount": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "name": "example",
      "partsVendor": false,
      "phoneNumber": "example",
      "primeContractor": false,
      "refNumber": "example",
      "serviceLinesProvided": [],
      "shareId": 1,
      "status": "active",
      "tags": [],
      "updated": 1,
      "uri": "example",
      "vendor": false
    }
  }
}

Get a contact

Get one contact with their companies and locations.

Inputs

Contactcontact_idnumberRequired
The contact.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "alternatePhone": "example",
      "companies": [],
      "company": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "created": 1,
      "email": "example",
      "externalIds": {},
      "firstName": "example",
      "id": 1,
      "lastName": "example",
      "location": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "locations": [],
      "mobile": "example",
      "phone": "example",
      "status": "public",
      "type": "example",
      "types": [],
      "updated": 1,
      "uri": "example"
    }
  }
}

Get a job

Get one job with its location, customer, appointments and service requests.

Inputs

Jobjob_idnumberRequired
The job.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "assignedOffice": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "budgeted": false,
      "completedOn": 1,
      "contract": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "created": 1,
      "currentAppointment": {
        "id": 1,
        "name": "example",
        "released": false,
        "status": "scheduled",
        "techs": [],
        "uri": "example",
        "windowEnd": 1,
        "windowStart": 1
      },
      "customName": "example",
      "customer": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "customerPo": "example",
      "deficienciesFound": false,
      "description": "example",
      "displayStatus": "example",
      "displaySubstatus": "example",
      "dueAfter": 1,
      "dueBy": 1,
      "estimatedPrice": 1.0,
      "externalIds": {},
      "id": 1,
      "isProject": false,
      "ivrActivity": "example",
      "ivrOpen": false,
      "jobTypeWeight": 1,
      "latestClockIn": 1,
      "location": {
        "address": {},
        "distance": 1.0,
        "email": "example",
        "generalManager": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "name": "example",
      "notes": [],
      "number": 1,
      "offices": [],
      "otherTradeDeficienciesFound": false,
      "owner": {
        "avatar": {},
        "email": "example",
        "id": 1,
        "isHelper": false,
        "isTech": false,
        "name": "example",
        "status": "active",
        "uri": "example"
      },
      "percentComplete": 1,
      "primaryContact": {
        "alternatePhone": "example",
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "mobile": "example",
        "phone": "example",
        "type": "example",
        "types": [],
        "uri": "example"
      },
      "project": {
        "endDate": 1,
        "id": 1,
        "startDate": 1,
        "uri": "example"
      },
      "redTagsFound": false,
      "refNumber": "example",
      "sales": {
        "avatar": {},
        "email": "example",
        "id": 1,
        "isHelper": false,
        "isTech": false,
        "name": "example",
        "status": "active",
        "uri": "example"
      },
      "scheduledDate": 1,
      "schedulingComments": [],
      "sectionVisibilities": [],
      "serviceLine": "example",
      "serviceLinkAttachmentCategoryVisibility": [],
      "serviceLinkAttachmentVisibility": false,
      "serviceLinkCommentVisibility": false,
      "serviceRequests": [],
      "status": "new",
      "substatus": "example",
      "tags": [],
      "terms": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "type": "administrative",
      "updated": 1,
      "uri": "example",
      "vendor": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "visibility": []
    }
  }
}

Get a location

Get one location with its address, company and contacts.

Inputs

Locationlocation_idnumberRequired
The location.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "address": {
        "city": "example",
        "postalCode": "example",
        "state": "example",
        "street": "example"
      },
      "brand": {
        "displayName": "example",
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "company": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "created": 1,
      "email": "example",
      "externalIds": {},
      "generalManager": "example",
      "geocodeQuality": 1,
      "id": 1,
      "lat": 1.0,
      "lon": 1.0,
      "name": "example",
      "offices": [],
      "phoneNumber": "example",
      "primaryContact": {
        "alternatePhone": "example",
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "mobile": "example",
        "phone": "example",
        "type": "example",
        "types": [],
        "uri": "example"
      },
      "refNumber": "example",
      "remitToAddress": {
        "city": "example",
        "email": "example",
        "phone": "example",
        "postalCode": "example",
        "state": "example",
        "street": "example"
      },
      "remitToSource": "example",
      "status": "active",
      "storeNumber": "example",
      "tags": [],
      "taxGroup": {
        "code": "example",
        "combinedRate": 1.0,
        "combinedRateDetails": [],
        "id": 1,
        "name": "example",
        "state": "example",
        "uri": "example"
      },
      "taxable": false,
      "updated": 1,
      "uri": "example"
    }
  }
}

Get a quote

Get one quote with its items and totals.

Inputs

Quotequote_idnumberRequired
The quote.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "assignedOffice": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "assignedTo": {},
      "contract": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "created": 1,
      "customer": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "customerPo": "example",
      "customerPoRequired": false,
      "deficiencyJobs": [],
      "deficiencySeverity": "example",
      "description": "example",
      "expiresOn": 1,
      "externalIds": {},
      "id": 1,
      "items": [],
      "jobType": "administrative",
      "jobs": [],
      "latestAccepted": 1,
      "latestSubmission": 1,
      "location": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "name": "example",
      "notes": "example",
      "owner": {},
      "quoteLinkAttachmentVisibility": false,
      "quoteLinkCommentVisibility": false,
      "quoteRequest": {
        "id": 1,
        "name": "example",
        "status": "canceled",
        "type": "simple",
        "uri": "example"
      },
      "refNumber": "example",
      "respondBy": 1,
      "sales": {
        "avatar": {},
        "email": "example",
        "id": 1,
        "isHelper": false,
        "isTech": false,
        "name": "example",
        "status": "active",
        "uri": "example"
      },
      "sectionVisibilities": [],
      "serviceLines": [],
      "serviceRequests": [],
      "status": "accepted",
      "substatus": "example",
      "subtotal": "example",
      "tags": [],
      "taskingDetailLevel": "detailed",
      "taxAmount": "example",
      "terms": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "totalPrice": "example",
      "updated": 1,
      "uri": "example",
      "vendor": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "visibility": []
    }
  }
}

Get an appointment

Get one appointment with its window, job and technicians.

Inputs

Appointmentappointment_idnumberRequired
The appointment.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "created": 1,
      "dueBy": 1,
      "id": 1,
      "job": {
        "customName": "example",
        "id": 1,
        "isProject": false,
        "name": "example",
        "number": 1,
        "primaryContact": {},
        "status": "new",
        "type": "administrative",
        "uri": "example"
      },
      "location": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "name": "example",
      "offices": [],
      "released": false,
      "serviceRequests": [],
      "status": "scheduled",
      "techs": [],
      "updated": 1,
      "uri": "example",
      "vendor": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "windowEnd": 1,
      "windowStart": 1
    }
  }
}

Get an invoice

Get one invoice with its items, totals and payment state.

Inputs

Invoiceinvoice_idnumberRequired
The invoice.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "assignedOffice": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "assignedUser": {
        "avatar": {},
        "email": "example",
        "id": 1,
        "isHelper": false,
        "isTech": false,
        "name": "example",
        "status": "active",
        "uri": "example"
      },
      "contract": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "created": 1,
      "customer": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "customerPo": "example",
      "dueDate": 1,
      "id": 1,
      "invoiceNumber": "example",
      "items": [],
      "job": {
        "customName": "example",
        "id": 1,
        "isProject": false,
        "name": "example",
        "number": 1,
        "primaryContact": {},
        "status": "new",
        "type": "administrative",
        "uri": "example"
      },
      "location": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "name": "example",
      "notes": "example",
      "paid": false,
      "partial": false,
      "paymentTerms": {
        "id": 1,
        "name": "example",
        "orderIndex": 1,
        "uri": "example"
      },
      "refNumber": "example",
      "sent": false,
      "status": "ok",
      "substatus": "example",
      "subtotal": 1.0,
      "tags": [],
      "taxAmount": 1.0,
      "terms": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "totalPaidAmount": 1.0,
      "totalPrice": 1.0,
      "transactionDate": 1,
      "type": "invoice",
      "updated": 1,
      "uri": "example",
      "vendor": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "visibility": []
    }
  }
}

List appointments

List appointments, filtered by job, status, technician or schedule window.

Inputs

Jobjob_idnumber
Only appointments for this job.
Statusstatuslist
Appointment statuses to include. Without one, every status except unscheduled.One or more of: scheduled, unscheduled, canceled_by_vendor (Canceled by vendor), canceled_by_customer (Canceled by customer), completed, no_show (No show).
Technicianstech_idslist
Only appointments assigned to these technicians.
Window begins afterwindow_begins_afterdate and time
Only appointments whose window starts on or after this day.
Window begins beforewindow_begins_beforedate and time
Only appointments whose window starts on or before this day.
Updated afterupdated_afterdate and time
Only appointments updated at or after this time.
Pagepagenumber
Page of results to return, starting at 1.At least 1.
Limitlimitnumber
Records per page, up to 2,000 (the default).From 1 to 2000.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "appointments": [],
      "page": 1,
      "totalPages": 1
    }
  }
}

List companies

List companies (customers, vendors and contractors), filtered by name, place, status or when they changed.

Inputs

Namenametext
Text the company's name contains.
Citycitytext
Text the company's city contains.
Statestatetext
Two-letter state code.
Is customeris_customertrue/false
Only companies listed as customers.
Is vendoris_vendortrue/false
Only companies listed as service vendors.
Statusstatustext
Only companies with this status.One of: active, pending, inactive, on_hold (On hold).
Updated afterupdated_afterdate and time
Only companies updated at or after this time.
Created aftercreated_afterdate and time
Only companies created at or after this time.
Pagepagenumber
Page of results to return, starting at 1.At least 1.
Limitlimitnumber
Records per page, up to 2,000 (the default).From 1 to 2000.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "companies": [],
      "page": 1,
      "totalPages": 1
    }
  }
}

List contacts

List contacts, filtered by company, location, a search or when they changed.

Inputs

Searchsearchtext
Text to find in a contact's name, phone numbers or email.
Emailemailtext
Only the contact with exactly this email address.
Companycompany_idnumber
Only contacts of this company or its locations.
Locationlocation_idnumber
Only contacts of this location.
Updated afterupdated_afterdate and time
Only contacts updated at or after this time.
Created aftercreated_afterdate and time
Only contacts created at or after this time.
Pagepagenumber
Page of results to return, starting at 1.At least 1.
Limitlimitnumber
Records per page, up to 2,000 (the default).From 1 to 2000.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "contacts": [],
      "page": 1,
      "totalPages": 1
    }
  }
}

List invoices

List invoices, filtered by job, customer, status, payment or when they changed.

Inputs

Jobjob_idnumber
Only invoices for this job.
Customercustomer_idnumber
Only invoices for this customer company.
Statusstatustext
Only invoices with this status.One of: ok, internal_review (Internal review), pending_accounting (Pending accounting), pending_sales_tax (Pending sales tax), processed, failed, void.
Payment statepaidtext
Only invoices in this payment state.One of: paid, unpaid, partial.
Invoice numberinvoice_numbertext
Only the invoice with this number.
Updated afterupdated_afterdate and time
Only invoices updated at or after this time.
Created aftercreated_afterdate and time
Only invoices created at or after this time.
Pagepagenumber
Page of results to return, starting at 1.At least 1.
Limitlimitnumber
Records per page, up to 2,000 (the default).From 1 to 2000.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "invoices": [],
      "page": 1,
      "totalPages": 1
    }
  }
}

List jobs

List jobs, filtered by status, type, location, customer or when they changed.

Inputs

Statusstatuslist
Job statuses to include. `all` is every status except canceled, and `*` is every status. Without one, ServiceTrade lists scheduled jobs.One or more of: *, all, new, scheduled, canceled, bidding, completed, pending_invoice (Pending invoice), sending_invoice (Sending invoice), invoiced, closed.
Job typesjob_typelist
Job types to include.One or more of: administrative, buildout, cleaning, construction, consultation, delivery, design, emergency_service_call (Emergency service call), exchange, hookup, and 24 more.
Locationslocation_idslist
Only jobs at these locations.
Customerscustomer_idslist
Only jobs for these customer companies.
Namenametext
Text the job's custom name contains.
Created aftercreated_afterdate and time
Only jobs created at or after this time.
Updated afterupdated_afterdate and time
Only jobs updated at or after this time.
Sortsorttext
Field to sort by.One of: created, dueBy, dueAfter, name, number, scheduleStart, status.
Sort ordersort_ordertext
Sort ascending or descending.One of: ASC, DESC.
Pagepagenumber
Page of results to return, starting at 1.At least 1.
Limitlimitnumber
Records per page, up to 2,000 (the default).From 1 to 2000.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "jobs": [],
      "page": 1,
      "totalPages": 1
    }
  }
}

List locations

List customer locations, filtered by name, company, status or when they changed.

Inputs

Namenametext
Text the location's name or store number contains.
Companiescompany_idslist
Only locations that belong to these companies.
Statusstatustext
Only locations with this status.One of: active, inactive, pending.
Updated afterupdated_afterdate and time
Only locations updated at or after this time.
Created aftercreated_afterdate and time
Only locations created at or after this time.
Pagepagenumber
Page of results to return, starting at 1.At least 1.
Limitlimitnumber
Records per page, up to 2,000 (the default).From 1 to 2000.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "locations": [],
      "page": 1,
      "totalPages": 1
    }
  }
}

List quotes

List quotes, filtered by status, customer, location or when they changed.

Inputs

Statusstatuslist
Quote statuses to include.One or more of: accepted, canceled, draft, new, rejected, submitted, pending_sales_tax (Pending sales tax).
Customercustomer_idnumber
Only quotes for this customer company.
Namenametext
Text the quote's name contains.
Updated afterupdated_afterdate and time
Only quotes updated at or after this time.
Created aftercreated_afterdate and time
Only quotes created at or after this time.
Sortsorttext
Field to sort by. By name when left empty.One of: name, created, updated, status.
Sort ordersort_ordertext
Sort ascending or descending.One of: ASC, DESC.
Pagepagenumber
Page of results to return, starting at 1.At least 1.
Limitlimitnumber
Records per page, up to 2,000 (the default).From 1 to 2000.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "page": 1,
      "quotes": [],
      "totalPages": 1
    }
  }
}

List users

List your company's users, such as technicians and salespeople.

Inputs

Searchsearchtext
Text to find in a user's name, username or email.
Is techis_techtrue/false
Only technicians.
Statusstatuslist
User statuses to include. Active users when left empty.One or more of: active, pending, inactive.
Pagepagenumber
Page of results to return, starting at 1.At least 1.
Limitlimitnumber
Records per page, up to 2,000 (the default).From 1 to 2000.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "page": 1,
      "totalPages": 1,
      "users": []
    }
  }
}

Update a company

Change a company's name, address, phone or status. Fields left empty are unchanged; to change the address, fill in its street, city and state.

Inputs

Companycompany_idnumberRequired
The company.
Namenametext
The company's name.
Streetstreettext
Street address.
Citycitytext
City.
Statestatetext
Two-letter US state or Canadian province code, such as `NC`.
Postal codepostal_codetext
ZIP or postal code.
Phone numberphone_numbertext
The company's phone number.
Reference numberref_numbertext
Your reference number.
Is a customercustomertrue/false
Whether the company is a customer.
Is a vendorvendortrue/false
Whether the company is a service vendor.
Statusstatustext
The company's status.One of: active, pending, inactive, on_hold (On hold).

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "address": {
        "city": "example",
        "postalCode": "example",
        "state": "example",
        "street": "example"
      },
      "created": 1,
      "customer": false,
      "defaultBrand": {
        "displayName": "example",
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "externalIds": {},
      "id": 1,
      "logo": {
        "aspect": "tall",
        "contentUrl": "example",
        "id": 1,
        "uri": "example"
      },
      "managingAccount": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "name": "example",
      "partsVendor": false,
      "phoneNumber": "example",
      "primeContractor": false,
      "refNumber": "example",
      "serviceLinesProvided": [],
      "shareId": 1,
      "status": "active",
      "tags": [],
      "updated": 1,
      "uri": "example",
      "vendor": false
    }
  }
}

Update a contact

Change a contact's name, email, phone numbers, types or status. Companies and locations you give replace the current ones.

Inputs

Contactcontact_idnumberRequired
The contact.
First namefirst_nametext
First name.
Last namelast_nametext
Last name.
Emailemailtext
Email address.
Phonephonetext
Phone number.
Mobilemobiletext
Mobile phone number.
Contact typescontact_typeslist
Contact types, such as `management` or `financial`.
Companiescompany_idslist
Companies the contact belongs to, replacing the current ones.
Locationslocation_idslist
Locations the contact belongs to, replacing the current ones.
Statusstatustext
Who can see the contact.One of: public, private, inactive.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "alternatePhone": "example",
      "companies": [],
      "company": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "created": 1,
      "email": "example",
      "externalIds": {},
      "firstName": "example",
      "id": 1,
      "lastName": "example",
      "location": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "locations": [],
      "mobile": "example",
      "phone": "example",
      "status": "public",
      "type": "example",
      "types": [],
      "updated": 1,
      "uri": "example"
    }
  }
}

Update a job

Change a job's name, description, status, owner or other details. Fields left empty are unchanged.

Inputs

Jobjob_idnumberRequired
The job.
Job typejob_typetext
The kind of work.One of: administrative, buildout, cleaning, construction, consultation, delivery, design, emergency_service_call (Emergency service call), exchange, hookup, and 24 more.
Statusstatustext
The job's new status.One of: new, scheduled, canceled, bidding, completed, pending_invoice (Pending invoice), sending_invoice (Sending invoice), closed.
Substatussubstatustext
The job's new substatus.One of: pending_approval (Pending approval), po_hold (Po hold), construction_hold (Construction hold), awaiting_parts (Awaiting parts), rework_required (Rework required), needs_review_sales (Needs review sales), needs_review_ops (Needs review ops), sales_approved (Sales approved), ops_approved (Ops approved).
Cancellation reasoncancellation_reasontext
Why the job is canceled. Only used when the status is canceled.
Custom namecustom_nametext
A custom name for the job.
Descriptiondescriptiontext
What the job is for.
Customer POcustomer_potext
The customer's purchase order number.
Ownerowner_idnumber
The user who owns the job.
Primary contactprimary_contact_idnumber
The job's primary contact. They must belong to the job's location or customer.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "assignedOffice": {
        "address": {},
        "email": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "budgeted": false,
      "completedOn": 1,
      "contract": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "created": 1,
      "currentAppointment": {
        "id": 1,
        "name": "example",
        "released": false,
        "status": "scheduled",
        "techs": [],
        "uri": "example",
        "windowEnd": 1,
        "windowStart": 1
      },
      "customName": "example",
      "customer": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "customerPo": "example",
      "deficienciesFound": false,
      "description": "example",
      "displayStatus": "example",
      "displaySubstatus": "example",
      "dueAfter": 1,
      "dueBy": 1,
      "estimatedPrice": 1.0,
      "externalIds": {},
      "id": 1,
      "isProject": false,
      "ivrActivity": "example",
      "ivrOpen": false,
      "jobTypeWeight": 1,
      "latestClockIn": 1,
      "location": {
        "address": {},
        "distance": 1.0,
        "email": "example",
        "generalManager": "example",
        "id": 1,
        "lat": 1.0,
        "legacyId": 1,
        "lon": 1.0,
        "name": "example",
        "phoneNumber": "example",
        "primaryContact": {},
        "refNumber": "example",
        "status": "example",
        "taxable": false,
        "uri": "example"
      },
      "name": "example",
      "notes": [],
      "number": 1,
      "offices": [],
      "otherTradeDeficienciesFound": false,
      "owner": {
        "avatar": {},
        "email": "example",
        "id": 1,
        "isHelper": false,
        "isTech": false,
        "name": "example",
        "status": "active",
        "uri": "example"
      },
      "percentComplete": 1,
      "primaryContact": {
        "alternatePhone": "example",
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "mobile": "example",
        "phone": "example",
        "type": "example",
        "types": [],
        "uri": "example"
      },
      "project": {
        "endDate": 1,
        "id": 1,
        "startDate": 1,
        "uri": "example"
      },
      "redTagsFound": false,
      "refNumber": "example",
      "sales": {
        "avatar": {},
        "email": "example",
        "id": 1,
        "isHelper": false,
        "isTech": false,
        "name": "example",
        "status": "active",
        "uri": "example"
      },
      "scheduledDate": 1,
      "schedulingComments": [],
      "sectionVisibilities": [],
      "serviceLine": "example",
      "serviceLinkAttachmentCategoryVisibility": [],
      "serviceLinkAttachmentVisibility": false,
      "serviceLinkCommentVisibility": false,
      "serviceRequests": [],
      "status": "new",
      "substatus": "example",
      "tags": [],
      "terms": {
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "type": "administrative",
      "updated": 1,
      "uri": "example",
      "vendor": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "visibility": []
    }
  }
}

Update a location

Change a location's name, address, phone, email or status. Fields left empty are unchanged; to change the address, fill in its street, city and state.

Inputs

Locationlocation_idnumberRequired
The location.
Namenametext
The location's name.
Streetstreettext
Street address.
Citycitytext
City.
Statestatetext
Two-letter US state or Canadian province code, such as `NC`.
Postal codepostal_codetext
ZIP or postal code.
Phone numberphone_numbertext
The location's phone number.
Emailemailtext
The location's email address.
Reference numberref_numbertext
Your reference number.
Statusstatustext
The location's status.One of: active, inactive, pending.

Outputs

dataobject
The response from ServiceTrade.
Example output
{
  "data": {
    "data": {
      "address": {
        "city": "example",
        "postalCode": "example",
        "state": "example",
        "street": "example"
      },
      "brand": {
        "displayName": "example",
        "id": 1,
        "name": "example",
        "uri": "example"
      },
      "company": {
        "id": 1,
        "name": "example",
        "status": "example",
        "uri": "example"
      },
      "created": 1,
      "email": "example",
      "externalIds": {},
      "generalManager": "example",
      "geocodeQuality": 1,
      "id": 1,
      "lat": 1.0,
      "lon": 1.0,
      "name": "example",
      "offices": [],
      "phoneNumber": "example",
      "primaryContact": {
        "alternatePhone": "example",
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "mobile": "example",
        "phone": "example",
        "type": "example",
        "types": [],
        "uri": "example"
      },
      "refNumber": "example",
      "remitToAddress": {
        "city": "example",
        "email": "example",
        "phone": "example",
        "postalCode": "example",
        "state": "example",
        "street": "example"
      },
      "remitToSource": "example",
      "status": "active",
      "storeNumber": "example",
      "tags": [],
      "taxGroup": {
        "code": "example",
        "combinedRate": 1.0,
        "combinedRateDetails": [],
        "id": 1,
        "name": "example",
        "state": "example",
        "uri": "example"
      },
      "taxable": false,
      "updated": 1,
      "uri": "example"
    }
  }
}

On this page