GET api/dispatch/{id}

Returns a list of any job or service ticket where the Dispatch_Id = id. This can possible be more than one record since a record in both the OE_Job_Dispatch and SV_Service_Ticket_Dispatch tables can both have a record with the same id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Dispatch
NameDescriptionTypeAdditional information
DispatchId

Sedona internal autonumber for the Dispatch record. This will not be unique becuase it's being pulled from two different tables (OE_JOb_Disaptch and SV_Service)

integer

None.

DispatchType

Type of dispatch: TKT for service tickets, JOB for jobs. Text is not case sensitive. Use in conjunction with DispatchId to create a composite key or use RowGuid instead

string

None.

RowGuid

Unique record identifier. The DispatchId is a combination of two tables (OE_JOb_Disaptch and SV_Service) and will not be unique.

globally unique identifier

None.

Reference

Job_Code from OE_Job table and/or Ticket_Number for SV_Service_Ticket table

string

None.

Status

Status of the dispatch

string

None.

Description

Description

string

None.

ServiceTechCode

Employee_Code from SY_Employee table; cannot change the Service Tech (must cancel and add new)

string

None.

ServiceTechId

EmployeeId from SY_Employee table; cannot change the Service Tech (must cancel and add new)

integer

None.

CompanyCode

string

None.

ScheduleTime

date

None.

ScheduleTimeUtc

Only used when useUtcOffset is set to "1" in the web.config file

date

None.

DispatchTime

date

None.

DispatchTimeUtc

Only used when useUtcOffset is set to "1" in the web.config file

date

None.

ArrivalTime

date

None.

ArrivalTimeUtc

Only used when useUtcOffset is set to "1" in the web.config file

date

None.

DepartureTime

date

None.

DepartureTimeUtc

Only used when useUtcOffset is set to "1" in the web.config file

date

None.

EstimatedLength

integer

None.

SiteName

string

None.

Address1

string

None.

Address2

string

None.

Address3

string

None.

City

string

None.

State

string

None.

ZipCode

string

None.

JobTask

string

None.

Complete

string

None.

TicketPriority

string

None.

TicketGoBack

string

None.

ResolutionCode

string

None.

ResolutionNote

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DispatchId": 1,
    "DispatchType": "sample string 2",
    "RowGuid": "a9883226-1b38-4813-895f-60204127a442",
    "Reference": "sample string 3",
    "Status": "sample string 4",
    "Description": "sample string 5",
    "ServiceTechCode": "sample string 6",
    "ServiceTechId": 7,
    "CompanyCode": "sample string 8",
    "ScheduleTime": "2018-12-11T10:55:23.8535531-05:00",
    "ScheduleTimeUtc": "2018-12-11T10:55:23.8535531-05:00",
    "DispatchTime": "2018-12-11T10:55:23.8535531-05:00",
    "DispatchTimeUtc": "2018-12-11T10:55:23.8535531-05:00",
    "ArrivalTime": "2018-12-11T10:55:23.8535531-05:00",
    "ArrivalTimeUtc": "2018-12-11T10:55:23.8535531-05:00",
    "DepartureTime": "2018-12-11T10:55:23.8535531-05:00",
    "DepartureTimeUtc": "2018-12-11T10:55:23.8535531-05:00",
    "EstimatedLength": 9,
    "SiteName": "sample string 10",
    "Address1": "sample string 11",
    "Address2": "sample string 12",
    "Address3": "sample string 13",
    "City": "sample string 14",
    "State": "sample string 15",
    "ZipCode": "sample string 16",
    "JobTask": "sample string 17",
    "Complete": "sample string 18",
    "TicketPriority": "sample string 19",
    "TicketGoBack": "sample string 20",
    "ResolutionCode": "sample string 21",
    "ResolutionNote": "sample string 22"
  },
  {
    "DispatchId": 1,
    "DispatchType": "sample string 2",
    "RowGuid": "a9883226-1b38-4813-895f-60204127a442",
    "Reference": "sample string 3",
    "Status": "sample string 4",
    "Description": "sample string 5",
    "ServiceTechCode": "sample string 6",
    "ServiceTechId": 7,
    "CompanyCode": "sample string 8",
    "ScheduleTime": "2018-12-11T10:55:23.8535531-05:00",
    "ScheduleTimeUtc": "2018-12-11T10:55:23.8535531-05:00",
    "DispatchTime": "2018-12-11T10:55:23.8535531-05:00",
    "DispatchTimeUtc": "2018-12-11T10:55:23.8535531-05:00",
    "ArrivalTime": "2018-12-11T10:55:23.8535531-05:00",
    "ArrivalTimeUtc": "2018-12-11T10:55:23.8535531-05:00",
    "DepartureTime": "2018-12-11T10:55:23.8535531-05:00",
    "DepartureTimeUtc": "2018-12-11T10:55:23.8535531-05:00",
    "EstimatedLength": 9,
    "SiteName": "sample string 10",
    "Address1": "sample string 11",
    "Address2": "sample string 12",
    "Address3": "sample string 13",
    "City": "sample string 14",
    "State": "sample string 15",
    "ZipCode": "sample string 16",
    "JobTask": "sample string 17",
    "Complete": "sample string 18",
    "TicketPriority": "sample string 19",
    "TicketGoBack": "sample string 20",
    "ResolutionCode": "sample string 21",
    "ResolutionNote": "sample string 22"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDispatch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <Dispatch>
    <Address1>sample string 11</Address1>
    <Address2>sample string 12</Address2>
    <Address3>sample string 13</Address3>
    <ArrivalTime>2018-12-11T10:55:23.8535531-05:00</ArrivalTime>
    <ArrivalTimeUtc xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2018-12-11T15:55:23.8535531Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-300</d3p1:OffsetMinutes>
    </ArrivalTimeUtc>
    <City>sample string 14</City>
    <CompanyCode>sample string 8</CompanyCode>
    <Complete>sample string 18</Complete>
    <DepartureTime>2018-12-11T10:55:23.8535531-05:00</DepartureTime>
    <DepartureTimeUtc xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2018-12-11T15:55:23.8535531Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-300</d3p1:OffsetMinutes>
    </DepartureTimeUtc>
    <Description>sample string 5</Description>
    <DispatchId>1</DispatchId>
    <DispatchTime>2018-12-11T10:55:23.8535531-05:00</DispatchTime>
    <DispatchTimeUtc xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2018-12-11T15:55:23.8535531Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-300</d3p1:OffsetMinutes>
    </DispatchTimeUtc>
    <DispatchType>sample string 2</DispatchType>
    <EstimatedLength>9</EstimatedLength>
    <JobTask>sample string 17</JobTask>
    <Reference>sample string 3</Reference>
    <ResolutionCode>sample string 21</ResolutionCode>
    <ResolutionNote>sample string 22</ResolutionNote>
    <RowGuid>a9883226-1b38-4813-895f-60204127a442</RowGuid>
    <ScheduleTime>2018-12-11T10:55:23.8535531-05:00</ScheduleTime>
    <ScheduleTimeUtc xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2018-12-11T15:55:23.8535531Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-300</d3p1:OffsetMinutes>
    </ScheduleTimeUtc>
    <ServiceTechCode>sample string 6</ServiceTechCode>
    <ServiceTechId>7</ServiceTechId>
    <SiteName>sample string 10</SiteName>
    <State>sample string 15</State>
    <Status>sample string 4</Status>
    <TicketGoBack>sample string 20</TicketGoBack>
    <TicketPriority>sample string 19</TicketPriority>
    <ZipCode>sample string 16</ZipCode>
  </Dispatch>
  <Dispatch>
    <Address1>sample string 11</Address1>
    <Address2>sample string 12</Address2>
    <Address3>sample string 13</Address3>
    <ArrivalTime>2018-12-11T10:55:23.8535531-05:00</ArrivalTime>
    <ArrivalTimeUtc xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2018-12-11T15:55:23.8535531Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-300</d3p1:OffsetMinutes>
    </ArrivalTimeUtc>
    <City>sample string 14</City>
    <CompanyCode>sample string 8</CompanyCode>
    <Complete>sample string 18</Complete>
    <DepartureTime>2018-12-11T10:55:23.8535531-05:00</DepartureTime>
    <DepartureTimeUtc xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2018-12-11T15:55:23.8535531Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-300</d3p1:OffsetMinutes>
    </DepartureTimeUtc>
    <Description>sample string 5</Description>
    <DispatchId>1</DispatchId>
    <DispatchTime>2018-12-11T10:55:23.8535531-05:00</DispatchTime>
    <DispatchTimeUtc xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2018-12-11T15:55:23.8535531Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-300</d3p1:OffsetMinutes>
    </DispatchTimeUtc>
    <DispatchType>sample string 2</DispatchType>
    <EstimatedLength>9</EstimatedLength>
    <JobTask>sample string 17</JobTask>
    <Reference>sample string 3</Reference>
    <ResolutionCode>sample string 21</ResolutionCode>
    <ResolutionNote>sample string 22</ResolutionNote>
    <RowGuid>a9883226-1b38-4813-895f-60204127a442</RowGuid>
    <ScheduleTime>2018-12-11T10:55:23.8535531-05:00</ScheduleTime>
    <ScheduleTimeUtc xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2018-12-11T15:55:23.8535531Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>-300</d3p1:OffsetMinutes>
    </ScheduleTimeUtc>
    <ServiceTechCode>sample string 6</ServiceTechCode>
    <ServiceTechId>7</ServiceTechId>
    <SiteName>sample string 10</SiteName>
    <State>sample string 15</State>
    <Status>sample string 4</Status>
    <TicketGoBack>sample string 20</TicketGoBack>
    <TicketPriority>sample string 19</TicketPriority>
    <ZipCode>sample string 16</ZipCode>
  </Dispatch>
</ArrayOfDispatch>