Trendsic Platform Service

<back to all web services

CourierProfileResetRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/dispatch/courier/profiles/{Id}/reset
CourierProfileResetRequest Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
DryRunbodyboolNo
CourierResponse Parameters:
NameParameterData TypeRequiredDescription
ProfilesformList<CourierProfileSummary>No
TemplatesformList<CourierTemplateOption>No
ProfileformCourierProfileViewNo
IssuesformList<CourierIssue>No
ChangesformList<CourierChange>No
PreviewformCourierPreviewNo
FleetformList<CourierFleetVehicle>No
ResponseStatusformResponseStatusNo
CourierProfileSummary Parameters:
NameParameterData TypeRequiredDescription
CourierProfileIDformintNo
CodeformstringNo
NameformstringNo
BusinessNameformstringNo
RouteShapeformstringNo
EnabledformboolNo
TemplateFromformstringNo
DriversformintNo
CourierTemplateOption Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
LabelformstringNo
DetailformstringNo
RouteShapeformstringNo
CourierProfileView Parameters:
NameParameterData TypeRequiredDescription
CourierProfileIDformintNo
CodeformstringNo
NameformstringNo
BusinessNameformstringNo
RouteShapeformstringNo
EnabledformboolNo
TemplateFromformstringNo
UnitOneformstringNo
UnitManyformstringNo
FacilityNounformstringNo
UnitOneEsformstringNo
UnitManyEsformstringNo
FacilityNounEsformstringNo
TagModeformstringNo
TagFormatsformList<string>No
PayformCourierPayNo
DispatchformCourierDispatchNo
MissedformCourierMissedNo
PrivacyformCourierPrivacyNo
PricingformCourierPricingNo
BookingformCourierBookingNo
FacilitiesformList<CourierFacilityView>No
VehiclesformList<CourierVehicleView>No
ProofformDictionary<string, Dictionary<String,String>>No
ContextformCourierProfileContextNo
CourierPay Parameters:
NameParameterData TypeRequiredDescription
WorkerClassformstringNo
PerPickupformdecimalNo
PerStopformdecimalNo
PerMissedformdecimalNo
PerCancelformdecimalNo
WaitAfterMinformintNo
WaitPerMinformdecimalNo
MileageOnformboolNo
PerMileformdecimalNo
MinPerJobformdecimalNo
TipsPctformdecimalNo
CourierDispatch Parameters:
NameParameterData TypeRequiredDescription
PingSecsformintNo
RadiusMiformdecimalNo
DeclinePenaltyformboolNo
NextRuleformstringNo
GoMinformintNo
LastMinformintNo
NearFullformintNo
MarginMinformintNo
TrafficSourceformstringNo
CourierMissed Parameters:
NameParameterData TypeRequiredDescription
WaitMinformintNo
FeeformdecimalNo
CancelFeeformdecimalNo
AutoRebookformboolNo
RequireContactformboolNo
RequirePhotoformboolNo
CourierPrivacy Parameters:
NameParameterData TypeRequiredDescription
ThreadHrsformintNo
PhotoDaysformintNo
LockNamesformstringNo
HideAddrformboolNo
LiveEtaformboolNo
TippingformboolNo
CourierPricing Parameters:
NameParameterData TypeRequiredDescription
BaseformdecimalNo
PerUnitformdecimalNo
PerMileformdecimalNo
MinOrderformdecimalNo
TaxPctformdecimalNo
FinalAfterCountformboolNo
ServiceAreaformList<string>No
WindowMinformintNo
SurchargesformDictionary<string, decimal>No
CourierBooking Parameters:
NameParameterData TypeRequiredDescription
OnformboolNo
SlugformstringNo
AsapformboolNo
MinLeadMinformintNo
OpenformstringNo
CloseformstringNo
DriveBufferMinformintNo
ZipsformList<string>No
RecurringformboolNo
PayTimingformstringNo
CourierFacilityView Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
AddressformstringNo
IntakeMinformintNo
LevelsformList<CourierLevelView>No
HolidaysformList<string>No
CourierLevelView Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
InByformstringNo
WithinMinformintNo
ReadyformstringNo
DaysformList<int>No
IsOnformboolNo
CourierVehicleView Parameters:
NameParameterData TypeRequiredDescription
EquipmentIDformintNo
UnitNumberformstringNo
NameformstringNo
UnitformstringNo
CapformdecimalNo
ColdformboolNo
CourierProfileContext Parameters:
NameParameterData TypeRequiredDescription
DriversformintNo
ProfileCountformintNo
PayPlanIdformint?No
ZoneModeformstringNo
ZoneNameformstringNo
ZoneCountformintNo
HasBookingPageformboolNo
HasRateConfigformboolNo
VehicleFactsformDictionary<string, string>No
CourierIssue Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
SectionformstringNo
MessageformstringNo
CourierChange Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
SectionformstringNo
LabelformstringNo
FromformstringNo
ToformstringNo
CourierPreview Parameters:
NameParameterData TypeRequiredDescription
DeadlineTitleformstringNo
DeadlineLeadformstringNo
RoomWformstringNo
LastWformstringNo
GoWformstringNo
ZonesformList<CourierPreviewLine>No
PaySubformstringNo
PayRowsformList<CourierPreviewLine>No
PayTotalformstringNo
ProofRowsformList<CourierPreviewLine>No
PingformstringNo
CourierPreviewLine Parameters:
NameParameterData TypeRequiredDescription
KformstringNo
VformstringNo
DotformstringNo
CourierFleetVehicle Parameters:
NameParameterData TypeRequiredDescription
EquipmentIDformintNo
UnitNumberformstringNo
NameformstringNo
VehicleTypeformstringNo
UnitformstringNo
Capformdecimal?No
ColdformboolNo
StatusformstringNo
AssignedformboolNo

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/courier/profiles/{Id}/reset HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

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

<CourierResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Changes>
    <CourierChange>
      <From>String</From>
      <Key>String</Key>
      <Label>String</Label>
      <Section>String</Section>
      <To>String</To>
    </CourierChange>
  </Changes>
  <Fleet>
    <CourierFleetVehicle>
      <Assigned>false</Assigned>
      <Cap>0</Cap>
      <Cold>false</Cold>
      <EquipmentID>0</EquipmentID>
      <Name>String</Name>
      <Status>String</Status>
      <Unit>String</Unit>
      <UnitNumber>String</UnitNumber>
      <VehicleType>String</VehicleType>
    </CourierFleetVehicle>
  </Fleet>
  <Issues>
    <CourierIssue>
      <Key>String</Key>
      <Message>String</Message>
      <Section>String</Section>
    </CourierIssue>
  </Issues>
  <Preview>
    <DeadlineLead>String</DeadlineLead>
    <DeadlineTitle>String</DeadlineTitle>
    <GoW>String</GoW>
    <LastW>String</LastW>
    <PayRows>
      <CourierPreviewLine>
        <Dot>String</Dot>
        <K>String</K>
        <V>String</V>
      </CourierPreviewLine>
    </PayRows>
    <PaySub>String</PaySub>
    <PayTotal>String</PayTotal>
    <Ping>String</Ping>
    <ProofRows>
      <CourierPreviewLine>
        <Dot>String</Dot>
        <K>String</K>
        <V>String</V>
      </CourierPreviewLine>
    </ProofRows>
    <RoomW>String</RoomW>
    <Zones>
      <CourierPreviewLine>
        <Dot>String</Dot>
        <K>String</K>
        <V>String</V>
      </CourierPreviewLine>
    </Zones>
  </Preview>
  <Profile>
    <Booking>
      <Asap>false</Asap>
      <Close>String</Close>
      <DriveBufferMin>0</DriveBufferMin>
      <MinLeadMin>0</MinLeadMin>
      <On>false</On>
      <Open>String</Open>
      <PayTiming>String</PayTiming>
      <Recurring>false</Recurring>
      <Slug>String</Slug>
      <Zips xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Zips>
    </Booking>
    <BusinessName>String</BusinessName>
    <Code>String</Code>
    <Context>
      <Drivers>0</Drivers>
      <HasBookingPage>false</HasBookingPage>
      <HasRateConfig>false</HasRateConfig>
      <PayPlanId>0</PayPlanId>
      <ProfileCount>0</ProfileCount>
      <VehicleFacts xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </VehicleFacts>
      <ZoneCount>0</ZoneCount>
      <ZoneMode>String</ZoneMode>
      <ZoneName>String</ZoneName>
    </Context>
    <CourierProfileID>0</CourierProfileID>
    <Dispatch>
      <DeclinePenalty>false</DeclinePenalty>
      <GoMin>0</GoMin>
      <LastMin>0</LastMin>
      <MarginMin>0</MarginMin>
      <NearFull>0</NearFull>
      <NextRule>String</NextRule>
      <PingSecs>0</PingSecs>
      <RadiusMi>0</RadiusMi>
      <TrafficSource>String</TrafficSource>
    </Dispatch>
    <Enabled>false</Enabled>
    <Facilities>
      <CourierFacilityView>
        <Address>String</Address>
        <Code>String</Code>
        <Holidays xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </Holidays>
        <IntakeMin>0</IntakeMin>
        <Levels>
          <CourierLevelView>
            <Code>String</Code>
            <Days xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </Days>
            <InBy>String</InBy>
            <IsOn>false</IsOn>
            <Name>String</Name>
            <Ready>String</Ready>
            <WithinMin>0</WithinMin>
          </CourierLevelView>
        </Levels>
        <Name>String</Name>
      </CourierFacilityView>
    </Facilities>
    <FacilityNoun>String</FacilityNoun>
    <FacilityNounEs>String</FacilityNounEs>
    <Missed>
      <AutoRebook>false</AutoRebook>
      <CancelFee>0</CancelFee>
      <Fee>0</Fee>
      <RequireContact>false</RequireContact>
      <RequirePhoto>false</RequirePhoto>
      <WaitMin>0</WaitMin>
    </Missed>
    <Name>String</Name>
    <Pay>
      <MileageOn>false</MileageOn>
      <MinPerJob>0</MinPerJob>
      <PerCancel>0</PerCancel>
      <PerMile>0</PerMile>
      <PerMissed>0</PerMissed>
      <PerPickup>0</PerPickup>
      <PerStop>0</PerStop>
      <TipsPct>0</TipsPct>
      <WaitAfterMin>0</WaitAfterMin>
      <WaitPerMin>0</WaitPerMin>
      <WorkerClass>String</WorkerClass>
    </Pay>
    <Pricing>
      <Base>0</Base>
      <FinalAfterCount>false</FinalAfterCount>
      <MinOrder>0</MinOrder>
      <PerMile>0</PerMile>
      <PerUnit>0</PerUnit>
      <ServiceArea xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </ServiceArea>
      <Surcharges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringdecimal>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>0</d4p1:Value>
        </d4p1:KeyValueOfstringdecimal>
      </Surcharges>
      <TaxPct>0</TaxPct>
      <WindowMin>0</WindowMin>
    </Pricing>
    <Privacy>
      <HideAddr>false</HideAddr>
      <LiveEta>false</LiveEta>
      <LockNames>String</LockNames>
      <PhotoDays>0</PhotoDays>
      <ThreadHrs>0</ThreadHrs>
      <Tipping>false</Tipping>
    </Privacy>
    <Proof xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringArrayOfKeyValueOfstringstringty7Ep6D1>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>
          <d3p1:KeyValueOfstringstring>
            <d3p1:Key>String</d3p1:Key>
            <d3p1:Value>String</d3p1:Value>
          </d3p1:KeyValueOfstringstring>
        </d3p1:Value>
      </d3p1:KeyValueOfstringArrayOfKeyValueOfstringstringty7Ep6D1>
    </Proof>
    <RouteShape>String</RouteShape>
    <TagFormats xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </TagFormats>
    <TagMode>String</TagMode>
    <TemplateFrom>String</TemplateFrom>
    <UnitMany>String</UnitMany>
    <UnitManyEs>String</UnitManyEs>
    <UnitOne>String</UnitOne>
    <UnitOneEs>String</UnitOneEs>
    <Vehicles>
      <CourierVehicleView>
        <Cap>0</Cap>
        <Cold>false</Cold>
        <EquipmentID>0</EquipmentID>
        <Name>String</Name>
        <Unit>String</Unit>
        <UnitNumber>String</UnitNumber>
      </CourierVehicleView>
    </Vehicles>
  </Profile>
  <Profiles>
    <CourierProfileSummary>
      <BusinessName>String</BusinessName>
      <Code>String</Code>
      <CourierProfileID>0</CourierProfileID>
      <Drivers>0</Drivers>
      <Enabled>false</Enabled>
      <Name>String</Name>
      <RouteShape>String</RouteShape>
      <TemplateFrom>String</TemplateFrom>
    </CourierProfileSummary>
  </Profiles>
  <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>
  <Templates>
    <CourierTemplateOption>
      <Detail>String</Detail>
      <Key>String</Key>
      <Label>String</Label>
      <RouteShape>String</RouteShape>
    </CourierTemplateOption>
  </Templates>
</CourierResponse>