Trendsic Platform Service

<back to all web services

DispatchJobQuoteRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/dispatch/jobs/{Code}/quote
DispatchJobQuoteRequest Parameters:
NameParameterData TypeRequiredDescription
CodepathstringNo
RatebodydecimalNo
AtMinbodyintNo
DispatchActionResponse Parameters:
NameParameterData TypeRequiredDescription
BoardformDispatchBoardViewNo
MessageformstringNo
SentformintNo
FailedformintNo
TicketCodeformstringNo
TicketNetformdecimalNo
ResponseStatusformResponseStatusNo
DispatchBoardView Parameters:
NameParameterData TypeRequiredDescription
PackformDispatchPackConfigViewNo
ConfigformDispatchHaulConfigViewNo
OfflineWindowsformList<DispatchOfflineWindowView>No
SuppliersformList<DispatchSupplierView>No
TrucksformList<DispatchTruckView>No
SlotsformList<DispatchSlotView>No
TicketsformList<DispatchTicketView>No
LogformList<DispatchLogView>No
AutopilotformDispatchAutopilotViewNo
ExceptionsformList<DispatchExceptionView>No
FeedformList<DispatchFeedView>No
RigsformList<DispatchRigView>No
JobsformList<DispatchJobView>No
OdDriversformList<DispatchOdDriverView>No
OdRequestsformList<DispatchOdRequestView>No
PacksformList<DispatchPackView>No
PackTermsformList<DispatchPackTermView>No
PackUnitsformList<DispatchPackUnitView>No
DispatchPackConfigView Parameters:
NameParameterData TypeRequiredDescription
PackIdformstringNo
HasQuotasformboolNo
IsInvertedformboolNo
LoadLimitMinsformintNo
TicketSourceformstringNo
PayBasisformstringNo
DayBoundaryformstringNo
DispatchHaulConfigView Parameters:
NameParameterData TypeRequiredDescription
QueueMaxformintNo
DumpBaysformintNo
SlotCapformintNo
PausedformboolNo
FeedRateformintNo
DispatchOfflineWindowView Parameters:
NameParameterData TypeRequiredDescription
OfflineWindowIdformintNo
FromHourformstringNo
ToHourformstringNo
DispatchSupplierView Parameters:
NameParameterData TypeRequiredDescription
SupplierIdformintNo
CodeformstringNo
NameformstringNo
RegionformstringNo
OwnHaulerformboolNo
SeasonAllotmentformdecimalNo
DeliveredformdecimalNo
WeekCapformdecimalNo
WeekDeliveredformdecimalNo
SortOrderformintNo
SitesformList<DispatchSiteView>No
DispatchSiteView Parameters:
NameParameterData TypeRequiredDescription
SiteIdformintNo
SupplierIdformintNo
SupplierCodeformstringNo
NameformstringNo
AcresformintNo
StandingVolumeformdecimalNo
SortOrderformintNo
DispatchTruckView Parameters:
NameParameterData TypeRequiredDescription
TruckIdformintNo
CodeformstringNo
DriverNameformstringNo
PhoneformstringNo
EmployerCodeformstringNo
SupplierCodeformstringNo
SiteNameformstringNo
EstLoadformdecimalNo
StageformstringNo
StageSinceformintNo
CycleStartformint?No
StageMinsAgoformintNo
CycleMinsAgoformint?No
SlotformstringNo
LoadsTodayformintNo
NetTodayformdecimalNo
LastPingMinsformintNo
CycleMinsformstringNo
IsInteractiveformboolNo
NextSupplierCodeformstringNo
NextSiteNameformstringNo
DispatchSlotView Parameters:
NameParameterData TypeRequiredDescription
SlotIdformintNo
HourformstringNo
BaseBookedformintNo
SortOrderformintNo
DispatchTicketView Parameters:
NameParameterData TypeRequiredDescription
TicketIdformintNo
CodeformstringNo
TruckCodeformstringNo
SupplierCodeformstringNo
NetQtyformdecimalNo
TicketedAtformDateTimeNo
TicketedMinformintNo
SourceformstringNo
MinsAgoformintNo
DispatchLogView Parameters:
NameParameterData TypeRequiredDescription
LogIdformintNo
LoggedAtformDateTimeNo
LoggedMinformintNo
LogTextformstringNo
KindformstringNo
MinsAgoformintNo
DispatchAutopilotView Parameters:
NameParameterData TypeRequiredDescription
IsOnformboolNo
RuleSlotformboolNo
RuleRouteformboolNo
RuleReleaseformboolNo
RuleTractformboolNo
RuleThrottleformboolNo
RuleOfflineformboolNo
ThStagedformintNo
ThWaitformintNo
ThBandformintNo
ThStallformintNo
ThFeedformintNo
DispatchExceptionView Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
KindformstringNo
SeverityformstringNo
TruckCodeformstringNo
SupplierCodeformstringNo
RaisedAtformDateTimeNo
RaisedLabelformstringNo
MinsAgoformintNo
DispatchFeedView Parameters:
NameParameterData TypeRequiredDescription
FeedIdformintNo
EntryAtformDateTimeNo
EntryLabelformstringNo
ChannelformstringNo
KindformstringNo
TruckCodeformstringNo
SupplierCodeformstringNo
OverrideTextformstringNo
MinsAgoformintNo
DispatchRigView Parameters:
NameParameterData TypeRequiredDescription
RigIdformintNo
CodeformstringNo
NameformstringNo
DriverNameformstringNo
PhoneformstringNo
RigTypeformstringNo
IsFreeformboolNo
MatchRankformintNo
DispatchJobView Parameters:
NameParameterData TypeRequiredDescription
JobIdformintNo
CodeformstringNo
CargoformstringNo
CustomerformstringNo
CustomerPhoneformstringNo
HoldContactformstringNo
HoldPhoneformstringNo
FromLocformstringNo
ToLocformstringNo
MilesformintNo
WindowTextformstringNo
StageformstringNo
Rateformdecimal?No
RequiredRigformstringNo
DriverLabelformstringNo
EtaTextformstringNo
OfferRigIdsformstringNo
OfferExpiresMinformint?No
OfferExpiredformboolNo
DeclinedformboolNo
DispatchOdDriverView Parameters:
NameParameterData TypeRequiredDescription
DriverIdformintNo
CodeformstringNo
NameformstringNo
ZoneformstringNo
PhoneformstringNo
StatusformstringNo
TierformstringNo
DistanceMiformdecimalNo
CapabilitiesformstringNo
DispatchOdRequestView Parameters:
NameParameterData TypeRequiredDescription
RequestIdformintNo
CodeformstringNo
AddressformstringNo
ZoneformstringNo
BagsformintNo
StageformstringNo
DriverCodeformstringNo
NeedsformstringNo
NoteformstringNo
PingExpiresMinformint?No
TriedCodesformstringNo
CandidateCodesformstringNo
EtaTextformstringNo
NoDriverformstringNo
DispatchPackView Parameters:
NameParameterData TypeRequiredDescription
PackIdformstringNo
HasQuotasformboolNo
IsInvertedformboolNo
LoadLimitMinsformintNo
DayBoundaryformstringNo
TicketSourceformstringNo
PayBasisformstringNo
SortOrderformintNo
DispatchPackTermView Parameters:
NameParameterData TypeRequiredDescription
PackIdformstringNo
LangformstringNo
ModeNameformstringNo
FacilityformstringNo
FacilityShortformstringNo
SourceSiteformstringNo
SupplierformstringNo
SupplierPluralformstringNo
UnloadVerbformstringNo
TicketNounformstringNo
DayNounformstringNo
FleetLabelformstringNo
PageSubtitleformstringNo
SeasonChipformstringNo
CampaignNounformstringNo
BayNounformstringNo
AssignTargetformstringNo
DispatchPackUnitView Parameters:
NameParameterData TypeRequiredDescription
PackIdformstringNo
UnitformstringNo
LoadQtyformdecimalNo
VolumeLowformintNo
VolumeHighformintNo
SeasonMultipleformdecimalNo
WeeklyFractionformdecimalNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/dispatch/jobs/{Code}/quote HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<DispatchJobQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AtMin>0</AtMin>
  <Code>String</Code>
  <Rate>0</Rate>
</DispatchJobQuoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DispatchActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Board>
    <Autopilot>
      <IsOn>false</IsOn>
      <RuleOffline>false</RuleOffline>
      <RuleRelease>false</RuleRelease>
      <RuleRoute>false</RuleRoute>
      <RuleSlot>false</RuleSlot>
      <RuleThrottle>false</RuleThrottle>
      <RuleTract>false</RuleTract>
      <ThBand>0</ThBand>
      <ThFeed>0</ThFeed>
      <ThStaged>0</ThStaged>
      <ThStall>0</ThStall>
      <ThWait>0</ThWait>
    </Autopilot>
    <Config>
      <DumpBays>0</DumpBays>
      <FeedRate>0</FeedRate>
      <Paused>false</Paused>
      <QueueMax>0</QueueMax>
      <SlotCap>0</SlotCap>
    </Config>
    <Exceptions>
      <DispatchExceptionView>
        <Code>String</Code>
        <Kind>String</Kind>
        <MinsAgo>0</MinsAgo>
        <RaisedAt>0001-01-01T00:00:00</RaisedAt>
        <RaisedLabel>String</RaisedLabel>
        <Severity>String</Severity>
        <SupplierCode>String</SupplierCode>
        <TruckCode>String</TruckCode>
      </DispatchExceptionView>
    </Exceptions>
    <Feed>
      <DispatchFeedView>
        <Channel>String</Channel>
        <EntryAt>0001-01-01T00:00:00</EntryAt>
        <EntryLabel>String</EntryLabel>
        <FeedId>0</FeedId>
        <Kind>String</Kind>
        <MinsAgo>0</MinsAgo>
        <OverrideText>String</OverrideText>
        <SupplierCode>String</SupplierCode>
        <TruckCode>String</TruckCode>
      </DispatchFeedView>
    </Feed>
    <Jobs>
      <DispatchJobView>
        <Cargo>String</Cargo>
        <Code>String</Code>
        <Customer>String</Customer>
        <CustomerPhone>String</CustomerPhone>
        <Declined>false</Declined>
        <DriverLabel>String</DriverLabel>
        <EtaText>String</EtaText>
        <FromLoc>String</FromLoc>
        <HoldContact>String</HoldContact>
        <HoldPhone>String</HoldPhone>
        <JobId>0</JobId>
        <Miles>0</Miles>
        <OfferExpired>false</OfferExpired>
        <OfferExpiresMin>0</OfferExpiresMin>
        <OfferRigIds>String</OfferRigIds>
        <Rate>0</Rate>
        <RequiredRig>String</RequiredRig>
        <Stage>String</Stage>
        <ToLoc>String</ToLoc>
        <WindowText>String</WindowText>
      </DispatchJobView>
    </Jobs>
    <Log>
      <DispatchLogView>
        <Kind>String</Kind>
        <LogId>0</LogId>
        <LogText>String</LogText>
        <LoggedAt>0001-01-01T00:00:00</LoggedAt>
        <LoggedMin>0</LoggedMin>
        <MinsAgo>0</MinsAgo>
      </DispatchLogView>
    </Log>
    <OdDrivers>
      <DispatchOdDriverView>
        <Capabilities>String</Capabilities>
        <Code>String</Code>
        <DistanceMi>0</DistanceMi>
        <DriverId>0</DriverId>
        <Name>String</Name>
        <Phone>String</Phone>
        <Status>String</Status>
        <Tier>String</Tier>
        <Zone>String</Zone>
      </DispatchOdDriverView>
    </OdDrivers>
    <OdRequests>
      <DispatchOdRequestView>
        <Address>String</Address>
        <Bags>0</Bags>
        <CandidateCodes>String</CandidateCodes>
        <Code>String</Code>
        <DriverCode>String</DriverCode>
        <EtaText>String</EtaText>
        <Needs>String</Needs>
        <NoDriver>String</NoDriver>
        <Note>String</Note>
        <PingExpiresMin>0</PingExpiresMin>
        <RequestId>0</RequestId>
        <Stage>String</Stage>
        <TriedCodes>String</TriedCodes>
        <Zone>String</Zone>
      </DispatchOdRequestView>
    </OdRequests>
    <OfflineWindows>
      <DispatchOfflineWindowView>
        <FromHour>String</FromHour>
        <OfflineWindowId>0</OfflineWindowId>
        <ToHour>String</ToHour>
      </DispatchOfflineWindowView>
    </OfflineWindows>
    <Pack>
      <DayBoundary>String</DayBoundary>
      <HasQuotas>false</HasQuotas>
      <IsInverted>false</IsInverted>
      <LoadLimitMins>0</LoadLimitMins>
      <PackId>String</PackId>
      <PayBasis>String</PayBasis>
      <TicketSource>String</TicketSource>
    </Pack>
    <PackTerms>
      <DispatchPackTermView>
        <AssignTarget>String</AssignTarget>
        <BayNoun>String</BayNoun>
        <CampaignNoun>String</CampaignNoun>
        <DayNoun>String</DayNoun>
        <Facility>String</Facility>
        <FacilityShort>String</FacilityShort>
        <FleetLabel>String</FleetLabel>
        <Lang>String</Lang>
        <ModeName>String</ModeName>
        <PackId>String</PackId>
        <PageSubtitle>String</PageSubtitle>
        <SeasonChip>String</SeasonChip>
        <SourceSite>String</SourceSite>
        <Supplier>String</Supplier>
        <SupplierPlural>String</SupplierPlural>
        <TicketNoun>String</TicketNoun>
        <UnloadVerb>String</UnloadVerb>
      </DispatchPackTermView>
    </PackTerms>
    <PackUnits>
      <DispatchPackUnitView>
        <LoadQty>0</LoadQty>
        <PackId>String</PackId>
        <SeasonMultiple>0</SeasonMultiple>
        <Unit>String</Unit>
        <VolumeHigh>0</VolumeHigh>
        <VolumeLow>0</VolumeLow>
        <WeeklyFraction>0</WeeklyFraction>
      </DispatchPackUnitView>
    </PackUnits>
    <Packs>
      <DispatchPackView>
        <DayBoundary>String</DayBoundary>
        <HasQuotas>false</HasQuotas>
        <IsInverted>false</IsInverted>
        <LoadLimitMins>0</LoadLimitMins>
        <PackId>String</PackId>
        <PayBasis>String</PayBasis>
        <SortOrder>0</SortOrder>
        <TicketSource>String</TicketSource>
      </DispatchPackView>
    </Packs>
    <Rigs>
      <DispatchRigView>
        <Code>String</Code>
        <DriverName>String</DriverName>
        <IsFree>false</IsFree>
        <MatchRank>0</MatchRank>
        <Name>String</Name>
        <Phone>String</Phone>
        <RigId>0</RigId>
        <RigType>String</RigType>
      </DispatchRigView>
    </Rigs>
    <Slots>
      <DispatchSlotView>
        <BaseBooked>0</BaseBooked>
        <Hour>String</Hour>
        <SlotId>0</SlotId>
        <SortOrder>0</SortOrder>
      </DispatchSlotView>
    </Slots>
    <Suppliers>
      <DispatchSupplierView>
        <Code>String</Code>
        <Delivered>0</Delivered>
        <Name>String</Name>
        <OwnHauler>false</OwnHauler>
        <Region>String</Region>
        <SeasonAllotment>0</SeasonAllotment>
        <Sites>
          <DispatchSiteView>
            <Acres>0</Acres>
            <Name>String</Name>
            <SiteId>0</SiteId>
            <SortOrder>0</SortOrder>
            <StandingVolume>0</StandingVolume>
            <SupplierCode>String</SupplierCode>
            <SupplierId>0</SupplierId>
          </DispatchSiteView>
        </Sites>
        <SortOrder>0</SortOrder>
        <SupplierId>0</SupplierId>
        <WeekCap>0</WeekCap>
        <WeekDelivered>0</WeekDelivered>
      </DispatchSupplierView>
    </Suppliers>
    <Tickets>
      <DispatchTicketView>
        <Code>String</Code>
        <MinsAgo>0</MinsAgo>
        <NetQty>0</NetQty>
        <Source>String</Source>
        <SupplierCode>String</SupplierCode>
        <TicketId>0</TicketId>
        <TicketedAt>0001-01-01T00:00:00</TicketedAt>
        <TicketedMin>0</TicketedMin>
        <TruckCode>String</TruckCode>
      </DispatchTicketView>
    </Tickets>
    <Trucks>
      <DispatchTruckView>
        <Code>String</Code>
        <CycleMins>String</CycleMins>
        <CycleMinsAgo>0</CycleMinsAgo>
        <CycleStart>0</CycleStart>
        <DriverName>String</DriverName>
        <EmployerCode>String</EmployerCode>
        <EstLoad>0</EstLoad>
        <IsInteractive>false</IsInteractive>
        <LastPingMins>0</LastPingMins>
        <LoadsToday>0</LoadsToday>
        <NetToday>0</NetToday>
        <NextSiteName>String</NextSiteName>
        <NextSupplierCode>String</NextSupplierCode>
        <Phone>String</Phone>
        <SiteName>String</SiteName>
        <Slot>String</Slot>
        <Stage>String</Stage>
        <StageMinsAgo>0</StageMinsAgo>
        <StageSince>0</StageSince>
        <SupplierCode>String</SupplierCode>
        <TruckId>0</TruckId>
      </DispatchTruckView>
    </Trucks>
  </Board>
  <Failed>0</Failed>
  <Message>String</Message>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Sent>0</Sent>
  <TicketCode>String</TicketCode>
  <TicketNet>0</TicketNet>
</DispatchActionResponse>