Trendsic Platform Service

<back to all web services

RoutePlanWeekRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/routeplan/week
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class RoutePlanWeekRequest
{
    open var From:String? = null
}

open class RoutePlanWeekResponse
{
    open var FromIso:String? = null
    open var ToIso:String? = null
    open var Crews:ArrayList<RoutePlanCrew> = ArrayList<RoutePlanCrew>()
    open var Visits:ArrayList<RoutePlanVisit> = ArrayList<RoutePlanVisit>()
    open var Skipped:ArrayList<RoutePlanSkippedVisit> = ArrayList<RoutePlanSkippedVisit>()
    open var ResponseStatus:ResponseStatus? = null
}

open class RoutePlanCrew
{
    open var CrewID:Int? = null
    open var CrewName:String? = null
    open var CrewColor:String? = null
    open var HomeZip:String? = null
    open var YardLat:Double? = null
    open var YardLng:Double? = null
    open var DailyCapacityMin:Int? = null
    open var WeeklyCapacityMin:Int? = null
    open var Specialist:Boolean? = null
}

open class RoutePlanVisit
{
    open var AgreementID:Int? = null
    open var AgreementJobID:Int? = null
    open var Name:String? = null
    open var Sub:String? = null
    open var ServiceType:String? = null
    open var Zip:String? = null
    open var Area:String? = null
    open var Lat:Double? = null
    open var Lng:Double? = null
    open var DurationMin:Int? = null
    open var DueIso:String? = null
    open var DueLabel:String? = null
    open var Overdue:Boolean? = null
    open var DefaultCrewID:Int? = null
    open var RouteCrewID:Int? = null
    open var RouteSeq:Int? = null
    open var RouteDateIso:String? = null
    open var LateDays:Int? = null
    open var AutoPay:Boolean? = null
    open var SkipPolicy:String? = null
    open var SkipCreditAmount:BigDecimal? = null
}

open class RoutePlanSkippedVisit
{
    open var AgreementJobID:Int? = null
    open var AgreementID:Int? = null
    open var Name:String? = null
    open var DateIso:String? = null
    open var Reason:String? = null
    open var CreditAmount:BigDecimal? = null
}

Kotlin RoutePlanWeekRequest DTOs

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.

GET /v1/routeplan/week HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RoutePlanWeekResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Crews>
    <RoutePlanCrew>
      <CrewColor>String</CrewColor>
      <CrewID>0</CrewID>
      <CrewName>String</CrewName>
      <DailyCapacityMin>0</DailyCapacityMin>
      <HomeZip>String</HomeZip>
      <Specialist>false</Specialist>
      <WeeklyCapacityMin>0</WeeklyCapacityMin>
      <YardLat>0</YardLat>
      <YardLng>0</YardLng>
    </RoutePlanCrew>
  </Crews>
  <FromIso>String</FromIso>
  <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>
  <Skipped>
    <RoutePlanSkippedVisit>
      <AgreementID>0</AgreementID>
      <AgreementJobID>0</AgreementJobID>
      <CreditAmount>0</CreditAmount>
      <DateIso>String</DateIso>
      <Name>String</Name>
      <Reason>String</Reason>
    </RoutePlanSkippedVisit>
  </Skipped>
  <ToIso>String</ToIso>
  <Visits>
    <RoutePlanVisit>
      <AgreementID>0</AgreementID>
      <AgreementJobID>0</AgreementJobID>
      <Area>String</Area>
      <AutoPay>false</AutoPay>
      <DefaultCrewID>0</DefaultCrewID>
      <DueIso>String</DueIso>
      <DueLabel>String</DueLabel>
      <DurationMin>0</DurationMin>
      <Lat>0</Lat>
      <LateDays>0</LateDays>
      <Lng>0</Lng>
      <Name>String</Name>
      <Overdue>false</Overdue>
      <RouteCrewID>0</RouteCrewID>
      <RouteDateIso>String</RouteDateIso>
      <RouteSeq>0</RouteSeq>
      <ServiceType>String</ServiceType>
      <SkipCreditAmount>0</SkipCreditAmount>
      <SkipPolicy>String</SkipPolicy>
      <Sub>String</Sub>
      <Zip>String</Zip>
    </RoutePlanVisit>
  </Visits>
</RoutePlanWeekResponse>