GraphQL: Jobs

Read jobs with their customer, property, schedule, assignees, estimates and invoices, and create, update, schedule, assign or delete jobs.

OperationTypeDescription
job(id)QueryGet one job
jobs(first, after, filter, sort)QueryList jobs
createJob(input)MutationCreate a job
updateJob(id, input)MutationUpdate a job's details
updateJobStatus(id, input)MutationChange a job's status
updateJobSchedule(id, input)MutationReschedule a job
updateJobAssignment(id, assigned_to)MutationAssign users or teams to a job
deleteJob(id)MutationDelete a job

Job fields

Details

FieldTypeDescription
idID!Job UID
work_order_numberIntWork order number
work_order_stringStringWork order number, as text
job_titleString!
job_descriptionString
job_priorityJobPriorityLOW, MEDIUM, HIGH or URGENT
job_typeString
job_tags[String]
categoryJobCategory{ id category_name category_color }
job_totalFloat
custom_fields[CustomField!]!
external_ids[ExternalId!]!{ key value }

Status

FieldTypeDescription
current_statusJobStatus{ status_uid status_name status_type status_color }
status_history[JobStatusEntry!]!Every status change: { status_uid status_name status_type remarks created_at done_by { ... } }

status_type is one of: NEW, SCHEDULED, ON_MY_WAY, STARTED, ON_HOLD, COMPLETED, CANNOT_COMPLETE, CLOSED, CANCELED, FAILED, PAID, FOLLOW_UP, FOLLOW_UP_SAME_JOB, OTHER, REQUEST_INITIATED, REQUEST_APPROVED, REQUEST_REJECTED, INVOICE, LEAD, ESTIMATING, SOLD, LOST, PRODUCTION, INVOICING

Schedule and assignment

FieldTypeDescription
scheduled_start_timeDateTime
scheduled_end_timeDateTime
scheduled_durationIntIn minutes
due_dateDateTime
actual_start_timeDateTime
actual_end_timeDateTime
actual_durationIntIn minutes
is_scheduledBoolean
is_assignedBoolean
assigned_to[Assignment!]!Assigned users and their teams. See below

Assignment fields:

FieldTypeDescription
userUserThe assigned user
teamTeamThe user's team
is_primaryBooleantrue for the primary assignee
acceptance_statusStringACCEPTED, AWAIT_RESPONSE or REJECTED
assigned_atDateTime

Related records

FieldTypeDescription
customerCustomer
organizationOrganization
propertyProperty
estimatesEstimateConnection!Paginated, with first (default 10), after, filter: EstimateFilter and sort: EstimateSort
invoicesInvoiceConnection!Paginated, with first (default 10), after, filter: InvoiceFilter and sort: InvoiceSort
customer_addressAddressService address for this job
customer_billing_addressAddressBilling address for this job
products[LineItem!]!Products on the job

Audit

FieldTypeDescription
created_byUser
created_atDateTime
updated_atDateTime

Get a job

job(id: ID!) returns one job, or null if the UID doesn't exist in your account.

query JobDetails($id: ID!) {
  job(id: $id) {
    id
    work_order_number
    job_title
    job_description
    job_priority
    category { category_name }
    current_status { status_name status_type }
    status_history { status_name created_at done_by { first_name last_name } }
    scheduled_start_time
    scheduled_end_time
    assigned_to {
      is_primary
      acceptance_status
      user { first_name last_name email }
      team { team_name }
    }
    customer {
      id
      customer_full_name
      customer_email
      customer_contact_no { mobile }
      customer_organization { organization_name }
    }
    property { id property_name }
    customer_address { street city state zip_code geo_coordinates }
    products { product_uid name quantity unit_price total }
    job_total
    estimates { nodes { id estimate_no_string estimate_status total } }
    invoices { nodes { id invoice_no_string invoice_status amount_due } }
    custom_fields { label value }
    created_at
    updated_at
  }
}
{ "id": "<job_uid>" }

Response (shortened):

{
  "data": {
    "job": {
      "id": "<job_uid>",
      "work_order_number": 10234,
      "job_title": "Quarterly AC maintenance",
      "job_priority": "MEDIUM",
      "current_status": { "status_name": "Scheduled", "status_type": "SCHEDULED" },
      "customer": {
        "id": "<customer_uid>",
        "customer_full_name": "Jane Cooper",
        "customer_email": "[email protected]",
        "customer_contact_no": { "mobile": "+15555550123" },
        "customer_organization": null
      },
      "estimates": { "nodes": [] },
      "invoices": { "nodes": [] }
    }
  }
}

List jobs

jobs(first, after, filter, sort) returns a paginated list. See Core Concepts for pagination.

JobFilter

FieldTypeMatches
status_type_in[String!]Jobs whose current status type is one of these
status_uidStringJobs in this exact status
category_uidIDJob category
priority_in[JobPriority!]LOW, MEDIUM, HIGH, URGENT
customer_uidIDJobs whose primary customer is this customer
organization_uidIDLinked organization
property_uidIDLinked property
assigned_user_uidIDJobs assigned to this user
scheduled_from / scheduled_toDateTimeRange on scheduled_start_time
created_after / created_beforeDateTimeRange on created_at
updated_afterDateTimeJobs changed at or after this time
custom_field[CustomFieldFilter!]{ label, value } exact matches

JobSortField: CREATED_AT, UPDATED_AT, SCHEDULED_START_TIME, WORK_ORDER_NUMBER

Example: a technician's high and urgent jobs for a week, earliest first

query TechnicianWeek($user: ID!, $from: DateTime!, $to: DateTime!, $after: String) {
  jobs(
    first: 50
    after: $after
    filter: {
      assigned_user_uid: $user
      priority_in: [HIGH, URGENT]
      scheduled_from: $from
      scheduled_to: $to
    }
    sort: { field: SCHEDULED_START_TIME, direction: ASC }
  ) {
    nodes {
      id
      work_order_number
      job_title
      job_priority
      scheduled_start_time
      scheduled_end_time
      current_status { status_name }
      customer { customer_full_name customer_contact_no { mobile } }
      customer_address { street city }
    }
    page_info { has_next_page end_cursor }
  }
}
{
  "user": "<user_uid>",
  "from": "2026-11-16T00:00:00Z",
  "to": "2026-11-22T23:59:59Z",
  "after": null
}

Response:

{
  "data": {
    "jobs": {
      "nodes": [
        {
          "id": "<job_uid>",
          "work_order_number": 10234,
          "job_title": "AC servicing",
          "job_priority": "HIGH",
          "scheduled_start_time": "2026-11-17T04:30:00.000Z",
          "scheduled_end_time": "2026-11-17T06:30:00.000Z",
          "current_status": { "status_name": "Scheduled" },
          "customer": { "customer_full_name": "Jane Cooper", "customer_contact_no": { "mobile": "+15555550123" } },
          "customer_address": { "street": "1200 Market St", "city": "San Francisco" }
        }
      ],
      "page_info": { "has_next_page": true, "end_cursor": "eyJkIjoiMjAyNi0xMS0xN1QwNDozMDowMC4wMDBaIiwiaWQiOiIuLi4ifQ" }
    }
  }
}

To get the next page, send the same query with after set to end_cursor.

Example: open jobs of a category with a custom field value

query OpenContractJobs($statuses: [String!], $category: ID, $cf: [CustomFieldFilter!], $after: String) {
  jobs(
    first: 25
    after: $after
    filter: { status_type_in: $statuses, category_uid: $category, custom_field: $cf }
  ) {
    nodes { id work_order_number job_title category { category_name } current_status { status_name } }
    page_info { has_next_page end_cursor }
  }
}
{
  "statuses": ["NEW", "SCHEDULED", "ON_MY_WAY", "STARTED", "ON_HOLD"],
  "category": "<job_category_uid>",
  "cf": [{ "label": "Contract Type", "value": "AMC" }],
  "after": null
}

Example: jobs for a customer and property, by work order number

query JobsForRecord($customer: ID, $property: ID, $organization: ID) {
  jobs(
    first: 25
    filter: { customer_uid: $customer, property_uid: $property, organization_uid: $organization }
    sort: { field: WORK_ORDER_NUMBER, direction: DESC }
  ) {
    nodes { id work_order_number job_title current_status { status_name } created_at }
    page_info { has_next_page end_cursor }
  }
}
{ "customer": "<customer_uid>", "property": "<property_uid>", "organization": null }

Example: jobs created in a date range

query JobsCreatedInRange($from: DateTime!, $to: DateTime!) {
  jobs(first: 50, filter: { created_after: $from, created_before: $to }) {
    nodes { id work_order_number job_title created_by { first_name last_name } created_at }
    page_info { has_next_page end_cursor }
  }
}
{ "from": "2026-10-01T00:00:00Z", "to": "2026-10-31T23:59:59Z" }

Create a job

createJob(input: JobCreateInput!)

JobCreateInput

FieldTypeRequiredDescription
job_titleStringYes
category_uidIDYesJob category
customer_uidIDSee noteThe job's customer
organization_uidIDSee noteThe job's organization
property_uidIDNo
job_descriptionStringNo
job_priorityJobPriorityNoLOW, MEDIUM, HIGH or URGENT
job_tags[String!]No
scheduled_start_timeDateTimeNoSend with scheduled_end_time
scheduled_end_timeDateTimeSee note
due_dateDateTimeSee note
assigned_to[AssignmentInput!]No{ user_uid team_uid is_primary }. Each entry needs both user_uid and team_uid, and only one entry can be primary
customer_addressAddressInputNoService address. Defaults to the customer's address
customer_billing_addressAddressInputNoDefaults to the customer's billing address
custom_fields[CustomFieldInput!]No{ label value }

Note: Send either customer_uid or organization_uid. If your account requires due dates for jobs, also send scheduled_end_time or due_date. Categories that aren't dispatchable always need due_date.

mutation CreateJob($input: JobCreateInput!) {
  createJob(input: $input) {
    job {
      id
      work_order_number
      job_title
      category { category_name }
      current_status { status_name }
      customer { customer_full_name }
      scheduled_start_time
      scheduled_end_time
      assigned_to { is_primary user { first_name } team { team_name } }
    }
    user_errors { field message code }
  }
}
{
  "input": {
    "job_title": "Quarterly AC maintenance",
    "category_uid": "<job_category_uid>",
    "customer_uid": "<customer_uid>",
    "job_description": "Filter clean, gas check, coil wash",
    "job_priority": "MEDIUM",
    "job_tags": ["amc"],
    "scheduled_start_time": "2026-11-20T16:30:00Z",
    "scheduled_end_time": "2026-11-20T18:30:00Z",
    "assigned_to": [
      { "user_uid": "<user_uid>", "team_uid": "<team_uid>", "is_primary": true }
    ],
    "custom_fields": [{ "label": "Contract Type", "value": "AMC" }]
  }
}

If the job can't be created, job is null and user_errors explains why:

{
  "data": {
    "createJob": {
      "job": null,
      "user_errors": [
        { "field": null, "message": "No Category is found for given Category UID", "code": "HTTP_400" }
      ]
    }
  }
}

Update a job

updateJob(id: ID!, input: JobUpdateInput!) changes only the fields you send. To change the status, schedule or assignees, use the mutations below.

JobUpdateInput: job_title, job_description, job_priority, job_tags, customer_address, customer_billing_address, due_date, custom_fields

mutation UpdateJob($id: ID!, $input: JobUpdateInput!) {
  updateJob(id: $id, input: $input) {
    job { id job_title job_priority job_tags due_date custom_fields { label value } }
    user_errors { field message code }
  }
}
{
  "id": "<job_uid>",
  "input": {
    "job_priority": "URGENT",
    "job_tags": ["amc", "escalated"],
    "due_date": "2026-11-21T12:00:00Z",
    "custom_fields": [{ "label": "PO Number", "value": "PO-88213" }]
  }
}

If the job doesn't exist in your account:

{
  "data": {
    "updateJob": {
      "job": null,
      "user_errors": [{ "field": ["id"], "message": "Job <job_uid> not found", "code": "NOT_FOUND" }]
    }
  }
}

Change a job's status

updateJobStatus(id: ID!, input: JobStatusInput!)

FieldTypeRequiredDescription
status_uidStringYesA status from the job's category
remarksStringNo

Note: Statuses that require a customer signature or face authentication can't be set through the API.

mutation UpdateJobStatus($id: ID!, $input: JobStatusInput!) {
  updateJobStatus(id: $id, input: $input) {
    job {
      id
      current_status { status_name status_type }
      status_history { status_name remarks created_at done_by { first_name } }
    }
    user_errors { field message code }
  }
}
{
  "id": "<job_uid>",
  "input": { "status_uid": "<status_uid>", "remarks": "Technician on the way" }
}

Possible user_errors messages include Status UID Sent is Invalid and Job status update is not allowed since it is awaiting approval.


Reschedule a job

updateJobSchedule(id: ID!, input: JobScheduleInput!)

Both scheduled_start_time and scheduled_end_time are required, and the start can't be after the end.

mutation UpdateJobSchedule($id: ID!, $input: JobScheduleInput!) {
  updateJobSchedule(id: $id, input: $input) {
    job { id scheduled_start_time scheduled_end_time scheduled_duration }
    user_errors { field message code }
  }
}
{
  "id": "<job_uid>",
  "input": {
    "scheduled_start_time": "2026-11-21T17:00:00Z",
    "scheduled_end_time": "2026-11-21T19:00:00Z"
  }
}

Assign a job

updateJobAssignment(id: ID!, assigned_to: [AssignmentInput!]!)

  • An entry with user_uid assigns that user. It also needs the team_uid of a team the user belongs to.
  • An entry with only team_uid assigns the whole team.
  • Only one entry can have is_primary: true.

Note: The users and teams you send are added to the job's existing assignees. Existing assignees are not removed.

mutation UpdateJobAssignment($id: ID!, $assignees: [AssignmentInput!]!) {
  updateJobAssignment(id: $id, assigned_to: $assignees) {
    job { id assigned_to { is_primary acceptance_status user { first_name last_name } team { team_name } } }
    user_errors { field message code }
  }
}
{
  "id": "<job_uid>",
  "assignees": [
    { "user_uid": "<user_uid>", "team_uid": "<team_uid>", "is_primary": true },
    { "user_uid": "<second_user_uid>", "team_uid": "<team_uid>", "is_primary": false }
  ]
}

Delete a job

deleteJob(id: ID!)

Only Admin and Team Leader users can delete jobs.

mutation DeleteJob($id: ID!) {
  deleteJob(id: $id) {
    deleted_id
    user_errors { field message code }
  }
}
{ "id": "<job_uid>" }
{ "data": { "deleteJob": { "deleted_id": "<job_uid>", "user_errors": [] } } }

Did this page help you?