Overview

There are a few ENDPOINTS which exeute a bulk search using a POST request and json strut.

The above endpoint has will search for Appointments.

The struts have a common format.

We have common properties FilterGroups which is a collection of Filters, Sorts, Limit and After.

Limit and After

Both limit and after properties allow paging a results set and must be an iteger,

{
  
  "sorts": [
    {
      "propertyName": "appointmentId",
      "direction": "asc"
    }
  ],
  "limit": 5,
  "after": 0
}

The above example returns 5 Appointments ordered by the appointmentId field.

To get the next page increment the after property.

{
  "sorts": [
    {
      "propertyName": "appointmentId",
      "direction": "asc"
    }
  ],
  "limit": 5,
  "after": 5
}

Sorts

This field allows the modification to the order of the results but please note only a limited subset of properties are supported.

"sorts": [
    {
      "propertyName": "appointmentId",
      "direction": "asc"
    },
    {
      "propertyName": "scheduledDate",
      "direction": "desc"
    }

]

The direction property has two values either asc or desc`.

Filter Groups

This property populates the WHERE clause of the query but plese note that only a limited set of properties are available for use.

A filter strut has three properties, propertyName, value, operator.

The propertyName is required to match one of the properties in the entity and value is a string representation.

{
"filterGroups": [
    {
        "filters": [
        {
          "propertyName": "appointmentId",
          "value": "30013",
          "operator": "EQ"
        }
      ]

    }
  ],
  
  "sorts": [
     {
      "propertyName": "appointmentId",
      "direction": "asc"
    },
    {
      "propertyName": "scheduledDate",
      "direction": "desc"
    }
  ],
  "limit": 0,
  "after": 0
}

A struct like above searches for an Appointment by its id, if using id please don’t include value in after property or leave it with value of 0.

{
"filterGroups": [
    {
      "filters": [
        {
          "propertyName": "appointmentId",
          "value": "30022",
          "operator": "EQ"
        }
      ]
    },
    {
        "filters": [
        {
          "propertyName": "appointmentId",
          "value": "30013",
          "operator": "EQ"
        }
      ]

    }
  ],
}

To fetch two Appointments see the above query there are two filter objects under filterGroups which creates an OR condition between both of the filters, in sql looks like WHERE (appointmentId = 3022) OR (appointmentId = 2013).

{
"filterGroups": [
    {
      "filters": [
        {
          "propertyName": "appointmentId",
          "value": "30022",
          "operator": "EQ"
        },
        {
          "propertyName": "completionStatusCode",
          "value": "A",
          "operator": "EQ"
        }
      ]
    },
    {
        "filters": [
        {
          "propertyName": "appointmentId",
          "value": "30013",
          "operator": "EQ"
        }
      ]

    }
  ],
}

If appointment A3022 was to be returned if it’s status was Assigned only we could use query like the above which translate to WHERE (appointmentId = 3022 and status = 'A') OR (appointmentId = 2013)

When there is multiple filter objects that are memebers of the same filters collection these are converted to an AND condition.

When using Date Values they are expected to be converted to string in a timestamps format e.g YYYY-MM-DD HH24:MI:SS.

"filters": [
    {
        "propertyName": "scheduledDate",
        "value": "2023-05-22T13:00:00",
        "operator": "EQ"
    }
]  

The above example would search for appointments scheduled on the date 2023-05-22 at 1pm.

Search for Appointments Scheduled Today

To find appointments scheduled today, use a start-of-day inclusive filter and an end-of-day exclusive filter. Because filters in the same group are combined with AND, this returns appointments scheduled from midnight today up to (but not including) midnight tomorrow. Replace the dates with the desired day.

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "scheduledDate",
          "value": "2026-10-20T00:00:00",
          "operator": "GTE"
        },
        {
          "propertyName": "scheduledDate",
          "value": "2026-10-21T00:00:00",
          "operator": "LT"
        }
      ]
    }
  ],
  "sorts": [
    {
      "propertyName": "appointmentId",
      "direction": "asc"
    }
  ],
  "limit": 100,
  "after": 0
}

Search for Appointments Modified After a Date

To find appointments modified after a specific date and time, filter on modifiedDate with the GT (greater than) operator. Replace the example timestamp with the cutoff date and time you need.

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "modifiedDate",
          "value": "2026-10-01T00:00:00",
          "operator": "GT"
        }
      ]
    }
  ],
  "sorts": [
    {
      "propertyName": "appointmentId",
      "direction": "asc"
    }
  ],
  "limit": 100,
  "after": 0
}

Search for Completed Appointments Modified Today

To find completed appointments modified today, combine the completionStatusCode filter with a modifiedDate range in the same filter group. These filters are combined with AND. Replace the dates with the day you want to search.

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "completionStatusCode",
          "value": "D",
          "operator": "EQ"
        },
        {
          "propertyName": "modifiedDate",
          "value": "2026-10-20T00:00:00",
          "operator": "GTE"
        },
        {
          "propertyName": "modifiedDate",
          "value": "2026-10-21T00:00:00",
          "operator": "LT"
        }
      ]
    }
  ],
  "sorts": [
    {
      "propertyName": "appointmentId",
      "direction": "asc"
    }
  ],
  "limit": 100,
  "after": 0
}

Search for Appointments Scheduled or Completed Today

This example returns appointments matching either of two conditions: scheduled today with status A, or completed (D) and modified today. Filters within each group are combined with AND, while the two filter groups are combined with OR.

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "scheduledDate",
          "value": "2026-10-20T00:00:00",
          "operator": "GTE"
        },
        {
          "propertyName": "scheduledDate",
          "value": "2026-10-21T00:00:00",
          "operator": "LT"
        },
        {
          "propertyName": "completionStatusCode",
          "value": "A",
          "operator": "EQ"
        }
      ]
    },
    {
      "filters": [
        {
          "propertyName": "completionStatusCode",
          "value": "D",
          "operator": "EQ"
        },
        {
          "propertyName": "modifiedDate",
          "value": "2026-10-20T00:00:00",
          "operator": "GTE"
        },
        {
          "propertyName": "modifiedDate",
          "value": "2026-10-21T00:00:00",
          "operator": "LT"
        }
      ]
    }
  ],
  "sorts": [
    {
      "propertyName": "appointmentId",
      "direction": "asc"
    }
  ],
  "limit": 100,
  "after": 0
}

The Operator property supports the following actions:

Action Description
EQ Equals
NEQ Not Equals
LT Less Than
LTE Less Than Equal
GT Greater Than
GTE Greater Than Equal
ISNULL Is equal to Null or empty string
ISNOTNULL Is not Null or empty string
completionStatusCode
Status Desc
A Assigned
D Completed
W Waiting
AU Audited
completionSubStatusCode
Status Desc completionStatusCode
NO No-Show Completed D
F Completed Field D
P Partial Completed D
null Completed Desktop D
Status Desc completionStatusCode
FA Failed AU
PA Passed AU
WA Waived AU
FC Corrections Required (Field) AU
FX Corrections Completed (Field) AU
FI Partial AU
PE Passed (Field) AU

Custom Audit Status have completionStatusCode of ‘AU’ Passed status have first character ‘P’ and Failed status have first character of ‘F’

submissionStatusCode
Status Desc
SP Pending
SA Accepted
SR Rejected
SS Partial
SI Registered
invoiceStatsCode
Status Desc
CL Client
FW Fieldworker
AG Agent

Supported Endpoints

For the endpoint /{instance}/appointments/search

Filters include: appointmentId, customerId, fieldworkerId, workTypeId completionStatusCode, completionSubStatusCode, invoiceStatsCode, submissionStatusCode scheduledDate, completedDate, actualCompletedDate, modifiedDate, invoiceEligibilityDate, submissionEligibilityDate, clientInvoiceEligibilityDate, activityDate commencementDate

Sort include: appointmentId

For the endpoint /{instance}/customers/search

Filters include: customerId, customerRef, companyName, taxId, email, mobilePhone, firstname, surname , state, suburb, postCode

Sort include: customerId

For the endpoint /{instance}/jobs/search

Filters include: jobId, customerId, agentId, trackingCode, salesPipelineStageId, agentName , statusCode, statusDescription creationDate, sourceId, source, sourceAssociateId, sourceAssociate, quotationStatusDate, quotationStatus assessmentStatus, assessmentSubStatus, installationStatus, installationSubStatus, clientId

Sort include: jobId