Home / API / ASP.NET Web API Details

GET api/v1/WorkOrder/GetServiceTicketsByScheduledDateRange?from={from}&to={to}&companyid={companyid}

Description

Get ServiceTickets By Scheduled DateRange

Request Information

Parameters

NameDescriptionAdditional information
from
From Date Scheduled

Define this parameter in the request URI.

to
To Date Scheduled

Define this parameter in the request URI.

companyid
CompanyID

Define this parameter in the request URI.

Response Information

List of WorkOrder by Scheduled DateRange

Response body formats

application/json, text/json

Sample:
[
  {
    "account": {
      "accountnumber": "sample string 1",
      "mainaccountnumber": "sample string 2",
      "accounttype": 3
    },
    "servicecustomer": {
      "id": 1,
      "businessname": "sample string 2",
      "salutation": "sample string 3",
      "firstname": "sample string 4",
      "lastname": "sample string 5",
      "contactdescription": "sample string 6",
      "contactphonenumber": "sample string 7",
      "phonenumber1": "sample string 8",
      "phonenumber2": "sample string 9"
    },
    "serviceaddress": {
      "id": 1,
      "streetnumber": "sample string 1",
      "predirection": "sample string 2",
      "streetname": "sample string 3",
      "streetsuffix": "sample string 4",
      "postdirection": "sample string 5",
      "secondaryaddress": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "postalcode": "sample string 9",
      "postalcodeex": "sample string 10",
      "deliverypoint": "sample string 11",
      "checkdigit": "sample string 12",
      "instructions": "sample string 13",
      "directions": "sample string 14"
    },
    "billingcustomer": {
      "id": 1,
      "businessname": "sample string 2",
      "salutation": "sample string 3",
      "firstname": "sample string 4",
      "lastname": "sample string 5",
      "contactdescription": "sample string 6",
      "contactphonenumber": "sample string 7",
      "emailaddress": "sample string 8"
    },
    "id": 1,
    "originalamount": 2.0,
    "completedinvoiceamount": 3.0,
    "federaltax": 4.0,
    "statetax": 5.0,
    "localtax": 6.0,
    "balance": 1.0,
    "serviceoreventname": "sample string 7",
    "programname": "sample string 8",
    "originaldate": "2025-02-23T06:32:31.8115984+00:00",
    "scheduleddate": "2025-02-23T06:32:31.8115984+00:00",
    "jobinstructions": "sample string 9",
    "targetpest": "sample string 10",
    "employeeid": 1,
    "employeename": "sample string 11",
    "employeenumber": "sample string 12",
    "employeecertificationnum": "sample string 13"
  },
  {
    "account": {
      "accountnumber": "sample string 1",
      "mainaccountnumber": "sample string 2",
      "accounttype": 3
    },
    "servicecustomer": {
      "id": 1,
      "businessname": "sample string 2",
      "salutation": "sample string 3",
      "firstname": "sample string 4",
      "lastname": "sample string 5",
      "contactdescription": "sample string 6",
      "contactphonenumber": "sample string 7",
      "phonenumber1": "sample string 8",
      "phonenumber2": "sample string 9"
    },
    "serviceaddress": {
      "id": 1,
      "streetnumber": "sample string 1",
      "predirection": "sample string 2",
      "streetname": "sample string 3",
      "streetsuffix": "sample string 4",
      "postdirection": "sample string 5",
      "secondaryaddress": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "postalcode": "sample string 9",
      "postalcodeex": "sample string 10",
      "deliverypoint": "sample string 11",
      "checkdigit": "sample string 12",
      "instructions": "sample string 13",
      "directions": "sample string 14"
    },
    "billingcustomer": {
      "id": 1,
      "businessname": "sample string 2",
      "salutation": "sample string 3",
      "firstname": "sample string 4",
      "lastname": "sample string 5",
      "contactdescription": "sample string 6",
      "contactphonenumber": "sample string 7",
      "emailaddress": "sample string 8"
    },
    "id": 1,
    "originalamount": 2.0,
    "completedinvoiceamount": 3.0,
    "federaltax": 4.0,
    "statetax": 5.0,
    "localtax": 6.0,
    "balance": 1.0,
    "serviceoreventname": "sample string 7",
    "programname": "sample string 8",
    "originaldate": "2025-02-23T06:32:31.8115984+00:00",
    "scheduleddate": "2025-02-23T06:32:31.8115984+00:00",
    "jobinstructions": "sample string 9",
    "targetpest": "sample string 10",
    "employeeid": 1,
    "employeename": "sample string 11",
    "employeenumber": "sample string 12",
    "employeecertificationnum": "sample string 13"
  }
]

application/xml, text/xml

Sample:
<ArrayOfserviceticketsbyscheduleddaterangemodels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <serviceticketsbyscheduleddaterangemodels>
    <account>
      <accountnumber>sample string 1</accountnumber>
      <accounttype>3</accounttype>
      <mainaccountnumber>sample string 2</mainaccountnumber>
    </account>
    <balance>1</balance>
    <billingcustomer>
      <businessname>sample string 2</businessname>
      <contactdescription>sample string 6</contactdescription>
      <contactphonenumber>sample string 7</contactphonenumber>
      <emailaddress>sample string 8</emailaddress>
      <firstname>sample string 4</firstname>
      <id>1</id>
      <lastname>sample string 5</lastname>
      <salutation>sample string 3</salutation>
    </billingcustomer>
    <completedinvoiceamount>3</completedinvoiceamount>
    <employeecertificationnum>sample string 13</employeecertificationnum>
    <employeeid>1</employeeid>
    <employeename>sample string 11</employeename>
    <employeenumber>sample string 12</employeenumber>
    <federaltax>4</federaltax>
    <id>1</id>
    <jobinstructions>sample string 9</jobinstructions>
    <localtax>6</localtax>
    <originalamount>2</originalamount>
    <originaldate>2025-02-23T06:32:31.8115984+00:00</originaldate>
    <programname>sample string 8</programname>
    <scheduleddate>2025-02-23T06:32:31.8115984+00:00</scheduleddate>
    <serviceaddress>
      <checkdigit>sample string 12</checkdigit>
      <city>sample string 7</city>
      <deliverypoint>sample string 11</deliverypoint>
      <directions>sample string 14</directions>
      <id>1</id>
      <instructions>sample string 13</instructions>
      <postalcode>sample string 9</postalcode>
      <postalcodeex>sample string 10</postalcodeex>
      <postdirection>sample string 5</postdirection>
      <predirection>sample string 2</predirection>
      <secondaryaddress>sample string 6</secondaryaddress>
      <state>sample string 8</state>
      <streetname>sample string 3</streetname>
      <streetnumber>sample string 1</streetnumber>
      <streetsuffix>sample string 4</streetsuffix>
    </serviceaddress>
    <servicecustomer>
      <businessname>sample string 2</businessname>
      <contactdescription>sample string 6</contactdescription>
      <contactphonenumber>sample string 7</contactphonenumber>
      <firstname>sample string 4</firstname>
      <id>1</id>
      <lastname>sample string 5</lastname>
      <phonenumber1>sample string 8</phonenumber1>
      <phonenumber2>sample string 9</phonenumber2>
      <salutation>sample string 3</salutation>
    </servicecustomer>
    <serviceoreventname>sample string 7</serviceoreventname>
    <statetax>5</statetax>
    <targetpest>sample string 10</targetpest>
  </serviceticketsbyscheduleddaterangemodels>
  <serviceticketsbyscheduleddaterangemodels>
    <account>
      <accountnumber>sample string 1</accountnumber>
      <accounttype>3</accounttype>
      <mainaccountnumber>sample string 2</mainaccountnumber>
    </account>
    <balance>1</balance>
    <billingcustomer>
      <businessname>sample string 2</businessname>
      <contactdescription>sample string 6</contactdescription>
      <contactphonenumber>sample string 7</contactphonenumber>
      <emailaddress>sample string 8</emailaddress>
      <firstname>sample string 4</firstname>
      <id>1</id>
      <lastname>sample string 5</lastname>
      <salutation>sample string 3</salutation>
    </billingcustomer>
    <completedinvoiceamount>3</completedinvoiceamount>
    <employeecertificationnum>sample string 13</employeecertificationnum>
    <employeeid>1</employeeid>
    <employeename>sample string 11</employeename>
    <employeenumber>sample string 12</employeenumber>
    <federaltax>4</federaltax>
    <id>1</id>
    <jobinstructions>sample string 9</jobinstructions>
    <localtax>6</localtax>
    <originalamount>2</originalamount>
    <originaldate>2025-02-23T06:32:31.8115984+00:00</originaldate>
    <programname>sample string 8</programname>
    <scheduleddate>2025-02-23T06:32:31.8115984+00:00</scheduleddate>
    <serviceaddress>
      <checkdigit>sample string 12</checkdigit>
      <city>sample string 7</city>
      <deliverypoint>sample string 11</deliverypoint>
      <directions>sample string 14</directions>
      <id>1</id>
      <instructions>sample string 13</instructions>
      <postalcode>sample string 9</postalcode>
      <postalcodeex>sample string 10</postalcodeex>
      <postdirection>sample string 5</postdirection>
      <predirection>sample string 2</predirection>
      <secondaryaddress>sample string 6</secondaryaddress>
      <state>sample string 8</state>
      <streetname>sample string 3</streetname>
      <streetnumber>sample string 1</streetnumber>
      <streetsuffix>sample string 4</streetsuffix>
    </serviceaddress>
    <servicecustomer>
      <businessname>sample string 2</businessname>
      <contactdescription>sample string 6</contactdescription>
      <contactphonenumber>sample string 7</contactphonenumber>
      <firstname>sample string 4</firstname>
      <id>1</id>
      <lastname>sample string 5</lastname>
      <phonenumber1>sample string 8</phonenumber1>
      <phonenumber2>sample string 9</phonenumber2>
      <salutation>sample string 3</salutation>
    </servicecustomer>
    <serviceoreventname>sample string 7</serviceoreventname>
    <statetax>5</statetax>
    <targetpest>sample string 10</targetpest>
  </serviceticketsbyscheduleddaterangemodels>
</ArrayOfserviceticketsbyscheduleddaterangemodels>