Home / API / ASP.NET Web API Details

GET api/v1/WorkOrder/GetAllWorkOrdersByScheduleDateRange?from={from}&to={to}&page={page}

Description

Get All WorkOrders by Scheduled Date Range

Request Information

Parameters

NameDescriptionAdditional information
from
From Schedule Date

Define this parameter in the request URI.

to
To Schedule Date

Define this parameter in the request URI.

page
[1..x]

Define this parameter in the request URI.

Response Information

List of Workorders by Page Number

Response body formats

application/json, text/json

Sample:
[
  {
    "woheaderid": 1,
    "createdby": "sample string 2",
    "scheduledate": "2025-02-23T06:42:19.5519479+00:00",
    "printeddate": "2025-02-23T06:42:19.5519479+00:00",
    "status": 64,
    "batchid": 4,
    "programid": 5,
    "lastchangedby": "sample string 6",
    "utclastchanged": "2025-02-23T06:42:19.5519479+00:00",
    "releaseid": 8,
    "assignedto": 9,
    "timerangeid": 10,
    "duration": 11,
    "scheduletime": 12,
    "workpool": 13,
    "confirmed": 14,
    "originalrouteid": 15,
    "approvedby": "sample string 16",
    "approveddate": "2025-02-23T06:42:19.5524625+00:00",
    "changedfrom": "sample string 17",
    "reconfirmed": true,
    "modifiedby": "sample string 19",
    "contactsalesperson": 20,
    "nextcontactdate": "2025-02-23T06:42:19.5524625+00:00",
    "wotype": 21,
    "signatureobtained": true
  },
  {
    "woheaderid": 1,
    "createdby": "sample string 2",
    "scheduledate": "2025-02-23T06:42:19.5519479+00:00",
    "printeddate": "2025-02-23T06:42:19.5519479+00:00",
    "status": 64,
    "batchid": 4,
    "programid": 5,
    "lastchangedby": "sample string 6",
    "utclastchanged": "2025-02-23T06:42:19.5519479+00:00",
    "releaseid": 8,
    "assignedto": 9,
    "timerangeid": 10,
    "duration": 11,
    "scheduletime": 12,
    "workpool": 13,
    "confirmed": 14,
    "originalrouteid": 15,
    "approvedby": "sample string 16",
    "approveddate": "2025-02-23T06:42:19.5524625+00:00",
    "changedfrom": "sample string 17",
    "reconfirmed": true,
    "modifiedby": "sample string 19",
    "contactsalesperson": 20,
    "nextcontactdate": "2025-02-23T06:42:19.5524625+00:00",
    "wotype": 21,
    "signatureobtained": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfworkorderheadermodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <workorderheadermodel>
    <approvedby>sample string 16</approvedby>
    <approveddate>2025-02-23T06:42:19.5524625+00:00</approveddate>
    <assignedto>9</assignedto>
    <batchid>4</batchid>
    <changedfrom>sample string 17</changedfrom>
    <confirmed>14</confirmed>
    <contactsalesperson>20</contactsalesperson>
    <createdby>sample string 2</createdby>
    <duration>11</duration>
    <lastchangedby>sample string 6</lastchangedby>
    <modifiedby>sample string 19</modifiedby>
    <nextcontactdate>2025-02-23T06:42:19.5524625+00:00</nextcontactdate>
    <originalrouteid>15</originalrouteid>
    <printeddate>2025-02-23T06:42:19.5519479+00:00</printeddate>
    <programid>5</programid>
    <reconfirmed>true</reconfirmed>
    <releaseid>8</releaseid>
    <scheduledate>2025-02-23T06:42:19.5519479+00:00</scheduledate>
    <scheduletime>12</scheduletime>
    <signatureobtained>true</signatureobtained>
    <status>64</status>
    <timerangeid>10</timerangeid>
    <utclastchanged>2025-02-23T06:42:19.5519479+00:00</utclastchanged>
    <woheaderid>1</woheaderid>
    <workpool>13</workpool>
    <wotype>21</wotype>
  </workorderheadermodel>
  <workorderheadermodel>
    <approvedby>sample string 16</approvedby>
    <approveddate>2025-02-23T06:42:19.5524625+00:00</approveddate>
    <assignedto>9</assignedto>
    <batchid>4</batchid>
    <changedfrom>sample string 17</changedfrom>
    <confirmed>14</confirmed>
    <contactsalesperson>20</contactsalesperson>
    <createdby>sample string 2</createdby>
    <duration>11</duration>
    <lastchangedby>sample string 6</lastchangedby>
    <modifiedby>sample string 19</modifiedby>
    <nextcontactdate>2025-02-23T06:42:19.5524625+00:00</nextcontactdate>
    <originalrouteid>15</originalrouteid>
    <printeddate>2025-02-23T06:42:19.5519479+00:00</printeddate>
    <programid>5</programid>
    <reconfirmed>true</reconfirmed>
    <releaseid>8</releaseid>
    <scheduledate>2025-02-23T06:42:19.5519479+00:00</scheduledate>
    <scheduletime>12</scheduletime>
    <signatureobtained>true</signatureobtained>
    <status>64</status>
    <timerangeid>10</timerangeid>
    <utclastchanged>2025-02-23T06:42:19.5519479+00:00</utclastchanged>
    <woheaderid>1</woheaderid>
    <workpool>13</workpool>
    <wotype>21</wotype>
  </workorderheadermodel>
</ArrayOfworkorderheadermodel>