Trendsic Platform Service

<back to all web services

CourierOrderCreateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/dispatch/courier/orders
"use strict";
export class CourierOrderRuleView {
    /** @param {{PingSecs?:number,MissedWaitMin?:number,MissedFee?:number,CancelFee?:number,MissedAutoRebook?:boolean,MissedRequireContact?:boolean,MissedRequirePhoto?:boolean,PayTiming?:string,FinalPriceAfterCount?:boolean,PayPlanName?:string,PerPickup?:number,PerStop?:number,PerMissed?:number,PerCancel?:number,AcceptedUtc?:string,Proof?:{ [index:string]: string; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    PingSecs;
    /** @type {number} */
    MissedWaitMin;
    /** @type {number} */
    MissedFee;
    /** @type {number} */
    CancelFee;
    /** @type {boolean} */
    MissedAutoRebook;
    /** @type {boolean} */
    MissedRequireContact;
    /** @type {boolean} */
    MissedRequirePhoto;
    /** @type {string} */
    PayTiming;
    /** @type {boolean} */
    FinalPriceAfterCount;
    /** @type {string} */
    PayPlanName;
    /** @type {number} */
    PerPickup;
    /** @type {number} */
    PerStop;
    /** @type {number} */
    PerMissed;
    /** @type {number} */
    PerCancel;
    /** @type {?string} */
    AcceptedUtc;
    /** @type {{ [index:string]: string; }} */
    Proof = {};
}
export class CourierItemView {
    /** @param {{CourierItemID?:number,DispatchOdRequestID?:number,Seq?:number,TagCode?:string,Custody?:string,IsOpen?:boolean,IsMissing?:boolean,MissingReason?:string,IsManual?:boolean,ReTagFlag?:boolean,Scanned?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    CourierItemID;
    /** @type {number} */
    DispatchOdRequestID;
    /** @type {number} */
    Seq;
    /** @type {string} */
    TagCode;
    /** @type {string} */
    Custody;
    /** @type {boolean} */
    IsOpen;
    /** @type {boolean} */
    IsMissing;
    /** @type {string} */
    MissingReason;
    /** @type {boolean} */
    IsManual;
    /** @type {boolean} */
    ReTagFlag;
    /** @type {boolean} */
    Scanned;
}
export class CourierScanView {
    /** @param {{TagCode?:string,Stage?:string,Result?:string,AtUtc?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    TagCode;
    /** @type {string} */
    Stage;
    /** @type {string} */
    Result;
    /** @type {string} */
    AtUtc;
}
export class CourierProofResultView {
    /** @param {{Stage?:string,StepKey?:string,Value?:string,AtUtc?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Stage;
    /** @type {string} */
    StepKey;
    /** @type {string} */
    Value;
    /** @type {string} */
    AtUtc;
}
export class CourierEventView {
    /** @param {{Kind?:string,Party?:string,Body?:string,AtUtc?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Kind;
    /** @type {string} */
    Party;
    /** @type {string} */
    Body;
    /** @type {string} */
    AtUtc;
}
export class CourierPhotoView {
    /** @param {{PhotoId?:number,Kind?:string,FileName?:string,Url?:string,TakenUtc?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    PhotoId;
    /** @type {string} */
    Kind;
    /** @type {string} */
    FileName;
    /** @type {string} */
    Url;
    /** @type {?string} */
    TakenUtc;
}
export class CourierPayLineView {
    /** @param {{DispatchLoadID?:number,Kind?:string,Label?:string,Qty?:number,Rate?:number,Amount?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    DispatchLoadID;
    /** @type {string} */
    Kind;
    /** @type {string} */
    Label;
    /** @type {?number} */
    Qty;
    /** @type {?number} */
    Rate;
    /** @type {number} */
    Amount;
}
export class CourierOrderView {
    /** @param {{DispatchOdRequestID?:number,Code?:string,CourierProfileId?:number,ProfileName?:string,RouteShape?:string,UnitOne?:string,UnitMany?:string,CourierFacilityId?:number,FacilityName?:string,ServiceLevelCode?:string,LevelName?:string,Source?:string,Address?:string,Unit?:string,City?:string,Zip?:string,Zone?:string,PickupContactName?:string,DropoffAddress?:string,DropoffUnit?:string,DropoffCity?:string,DropoffZip?:string,DropoffContactName?:string,Miles?:number,Units?:number,UnitsFound?:number,Stage?:string,CourierStep?:string,StepLabel?:string,DriverCode?:string,DriverName?:string,DriverContactId?:number,CourierRunId?:number,RunCode?:string,StopSequence?:number,QueueSequence?:number,IsAsap?:boolean,WindowStartUtc?:string,WindowEndUtc?:string,WindowText?:string,DueUtc?:string,DueText?:string,PingAfterUtc?:string,PingExpiresUtc?:string,CandidateCode?:string,HeldReason?:string,HeldUtc?:string,CustomerName?:string,CustomerPhone?:string,Handoff?:string,GateCode?:string,Instructions?:string,DamageNote?:string,DeliveredToName?:string,PayMode?:string,Fare?:number,FinalPrice?:number,TipAmount?:number,CancelledBy?:string,CancelReason?:string,CancelFeeApplied?:number,MissedFeeApplied?:number,CaptureMode?:string,AuthorizedAmount?:number,CapturedAmount?:number,RefundedAmount?:number,ChargeError?:string,CreatedAt?:string,ArrivedUtc?:string,PickedUpUtc?:string,IntakeUtc?:string,ReadyUtc?:string,OutForDeliveryUtc?:string,DeliveredUtc?:string,MissedUtc?:string,CancelledUtc?:string,IsClosed?:boolean,RebookOfId?:number,RecurrenceId?:number,PickupLoadId?:number,Rule?:CourierOrderRuleView,Items?:CourierItemView[],Scans?:CourierScanView[],Proof?:CourierProofResultView[],Events?:CourierEventView[],Photos?:CourierPhotoView[],PayLines?:CourierPayLineView[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    DispatchOdRequestID;
    /** @type {string} */
    Code;
    /** @type {number} */
    CourierProfileId;
    /** @type {string} */
    ProfileName;
    /** @type {string} */
    RouteShape;
    /** @type {string} */
    UnitOne;
    /** @type {string} */
    UnitMany;
    /** @type {?number} */
    CourierFacilityId;
    /** @type {string} */
    FacilityName;
    /** @type {string} */
    ServiceLevelCode;
    /** @type {string} */
    LevelName;
    /** @type {string} */
    Source;
    /** @type {string} */
    Address;
    /** @type {string} */
    Unit;
    /** @type {string} */
    City;
    /** @type {string} */
    Zip;
    /** @type {string} */
    Zone;
    /** @type {string} */
    PickupContactName;
    /** @type {string} */
    DropoffAddress;
    /** @type {string} */
    DropoffUnit;
    /** @type {string} */
    DropoffCity;
    /** @type {string} */
    DropoffZip;
    /** @type {string} */
    DropoffContactName;
    /** @type {?number} */
    Miles;
    /** @type {number} */
    Units;
    /** @type {?number} */
    UnitsFound;
    /** @type {string} */
    Stage;
    /** @type {string} */
    CourierStep;
    /** @type {string} */
    StepLabel;
    /** @type {string} */
    DriverCode;
    /** @type {string} */
    DriverName;
    /** @type {?number} */
    DriverContactId;
    /** @type {?number} */
    CourierRunId;
    /** @type {string} */
    RunCode;
    /** @type {?number} */
    StopSequence;
    /** @type {?number} */
    QueueSequence;
    /** @type {boolean} */
    IsAsap;
    /** @type {?string} */
    WindowStartUtc;
    /** @type {?string} */
    WindowEndUtc;
    /** @type {string} */
    WindowText;
    /** @type {?string} */
    DueUtc;
    /** @type {string} */
    DueText;
    /** @type {?string} */
    PingAfterUtc;
    /** @type {?string} */
    PingExpiresUtc;
    /** @type {string} */
    CandidateCode;
    /** @type {string} */
    HeldReason;
    /** @type {?string} */
    HeldUtc;
    /** @type {string} */
    CustomerName;
    /** @type {string} */
    CustomerPhone;
    /** @type {string} */
    Handoff;
    /** @type {string} */
    GateCode;
    /** @type {string} */
    Instructions;
    /** @type {string} */
    DamageNote;
    /** @type {string} */
    DeliveredToName;
    /** @type {string} */
    PayMode;
    /** @type {?number} */
    Fare;
    /** @type {?number} */
    FinalPrice;
    /** @type {?number} */
    TipAmount;
    /** @type {string} */
    CancelledBy;
    /** @type {string} */
    CancelReason;
    /** @type {?number} */
    CancelFeeApplied;
    /** @type {?number} */
    MissedFeeApplied;
    /** @type {string} */
    CaptureMode;
    /** @type {?number} */
    AuthorizedAmount;
    /** @type {?number} */
    CapturedAmount;
    /** @type {number} */
    RefundedAmount;
    /** @type {string} */
    ChargeError;
    /** @type {?string} */
    CreatedAt;
    /** @type {?string} */
    ArrivedUtc;
    /** @type {?string} */
    PickedUpUtc;
    /** @type {?string} */
    IntakeUtc;
    /** @type {?string} */
    ReadyUtc;
    /** @type {?string} */
    OutForDeliveryUtc;
    /** @type {?string} */
    DeliveredUtc;
    /** @type {?string} */
    MissedUtc;
    /** @type {?string} */
    CancelledUtc;
    /** @type {boolean} */
    IsClosed;
    /** @type {?number} */
    RebookOfId;
    /** @type {?number} */
    RecurrenceId;
    /** @type {?number} */
    PickupLoadId;
    /** @type {CourierOrderRuleView} */
    Rule;
    /** @type {CourierItemView[]} */
    Items = [];
    /** @type {CourierScanView[]} */
    Scans = [];
    /** @type {CourierProofResultView[]} */
    Proof = [];
    /** @type {CourierEventView[]} */
    Events = [];
    /** @type {CourierPhotoView[]} */
    Photos = [];
    /** @type {CourierPayLineView[]} */
    PayLines = [];
}
export class CourierOrderResponse {
    /** @param {{Orders?:CourierOrderView[],Order?:CourierOrderView,Message?:string,ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {CourierOrderView[]} */
    Orders = [];
    /** @type {CourierOrderView} */
    Order;
    /** @type {string} */
    Message;
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class CourierOrderCreateRequest {
    /** @param {{ProfileId?:number,FacilityCode?:string,LevelCode?:string,Date?:string,WindowStart?:string,WindowEnd?:string,Address?:string,Unit?:string,City?:string,Zip?:string,Zone?:string,Lat?:number,Lng?:number,PickupContactName?:string,DropoffAddress?:string,DropoffUnit?:string,DropoffCity?:string,DropoffZip?:string,DropoffLat?:number,DropoffLng?:number,DropoffContactName?:string,Units?:number,CustomerName?:string,CustomerPhone?:string,CustomerContactId?:number,Handoff?:string,GateCode?:string,Instructions?:string,Note?:string,AccountCode?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ProfileId;
    /** @type {string} */
    FacilityCode;
    /** @type {string} */
    LevelCode;
    /** @type {string} */
    Date;
    /** @type {string} */
    WindowStart;
    /** @type {string} */
    WindowEnd;
    /** @type {string} */
    Address;
    /** @type {string} */
    Unit;
    /** @type {string} */
    City;
    /** @type {string} */
    Zip;
    /** @type {string} */
    Zone;
    /** @type {?number} */
    Lat;
    /** @type {?number} */
    Lng;
    /** @type {string} */
    PickupContactName;
    /** @type {string} */
    DropoffAddress;
    /** @type {string} */
    DropoffUnit;
    /** @type {string} */
    DropoffCity;
    /** @type {string} */
    DropoffZip;
    /** @type {?number} */
    DropoffLat;
    /** @type {?number} */
    DropoffLng;
    /** @type {string} */
    DropoffContactName;
    /** @type {number} */
    Units;
    /** @type {string} */
    CustomerName;
    /** @type {string} */
    CustomerPhone;
    /** @type {?number} */
    CustomerContactId;
    /** @type {string} */
    Handoff;
    /** @type {string} */
    GateCode;
    /** @type {string} */
    Instructions;
    /** @type {string} */
    Note;
    /** @type {string} */
    AccountCode;
}

JavaScript CourierOrderCreateRequest 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.

POST /v1/dispatch/courier/orders HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CourierOrderCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AccountCode>String</AccountCode>
  <Address>String</Address>
  <City>String</City>
  <CustomerContactId>0</CustomerContactId>
  <CustomerName>String</CustomerName>
  <CustomerPhone>String</CustomerPhone>
  <Date>String</Date>
  <DropoffAddress>String</DropoffAddress>
  <DropoffCity>String</DropoffCity>
  <DropoffContactName>String</DropoffContactName>
  <DropoffLat>0</DropoffLat>
  <DropoffLng>0</DropoffLng>
  <DropoffUnit>String</DropoffUnit>
  <DropoffZip>String</DropoffZip>
  <FacilityCode>String</FacilityCode>
  <GateCode>String</GateCode>
  <Handoff>String</Handoff>
  <Instructions>String</Instructions>
  <Lat>0</Lat>
  <LevelCode>String</LevelCode>
  <Lng>0</Lng>
  <Note>String</Note>
  <PickupContactName>String</PickupContactName>
  <ProfileId>0</ProfileId>
  <Unit>String</Unit>
  <Units>0</Units>
  <WindowEnd>String</WindowEnd>
  <WindowStart>String</WindowStart>
  <Zip>String</Zip>
  <Zone>String</Zone>
</CourierOrderCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CourierOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Message>String</Message>
  <Order>
    <Address>String</Address>
    <ArrivedUtc>0001-01-01T00:00:00</ArrivedUtc>
    <AuthorizedAmount>0</AuthorizedAmount>
    <CancelFeeApplied>0</CancelFeeApplied>
    <CancelReason>String</CancelReason>
    <CancelledBy>String</CancelledBy>
    <CancelledUtc>0001-01-01T00:00:00</CancelledUtc>
    <CandidateCode>String</CandidateCode>
    <CaptureMode>String</CaptureMode>
    <CapturedAmount>0</CapturedAmount>
    <ChargeError>String</ChargeError>
    <City>String</City>
    <Code>String</Code>
    <CourierFacilityId>0</CourierFacilityId>
    <CourierProfileId>0</CourierProfileId>
    <CourierRunId>0</CourierRunId>
    <CourierStep>String</CourierStep>
    <CreatedAt>0001-01-01T00:00:00</CreatedAt>
    <CustomerName>String</CustomerName>
    <CustomerPhone>String</CustomerPhone>
    <DamageNote>String</DamageNote>
    <DeliveredToName>String</DeliveredToName>
    <DeliveredUtc>0001-01-01T00:00:00</DeliveredUtc>
    <DispatchOdRequestID>0</DispatchOdRequestID>
    <DriverCode>String</DriverCode>
    <DriverContactId>0</DriverContactId>
    <DriverName>String</DriverName>
    <DropoffAddress>String</DropoffAddress>
    <DropoffCity>String</DropoffCity>
    <DropoffContactName>String</DropoffContactName>
    <DropoffUnit>String</DropoffUnit>
    <DropoffZip>String</DropoffZip>
    <DueText>String</DueText>
    <DueUtc>0001-01-01T00:00:00</DueUtc>
    <Events>
      <CourierEventView>
        <AtUtc>0001-01-01T00:00:00</AtUtc>
        <Body>String</Body>
        <Kind>String</Kind>
        <Party>String</Party>
      </CourierEventView>
    </Events>
    <FacilityName>String</FacilityName>
    <Fare>0</Fare>
    <FinalPrice>0</FinalPrice>
    <GateCode>String</GateCode>
    <Handoff>String</Handoff>
    <HeldReason>String</HeldReason>
    <HeldUtc>0001-01-01T00:00:00</HeldUtc>
    <Instructions>String</Instructions>
    <IntakeUtc>0001-01-01T00:00:00</IntakeUtc>
    <IsAsap>false</IsAsap>
    <IsClosed>false</IsClosed>
    <Items>
      <CourierItemView>
        <CourierItemID>0</CourierItemID>
        <Custody>String</Custody>
        <DispatchOdRequestID>0</DispatchOdRequestID>
        <IsManual>false</IsManual>
        <IsMissing>false</IsMissing>
        <IsOpen>false</IsOpen>
        <MissingReason>String</MissingReason>
        <ReTagFlag>false</ReTagFlag>
        <Scanned>false</Scanned>
        <Seq>0</Seq>
        <TagCode>String</TagCode>
      </CourierItemView>
    </Items>
    <LevelName>String</LevelName>
    <Miles>0</Miles>
    <MissedFeeApplied>0</MissedFeeApplied>
    <MissedUtc>0001-01-01T00:00:00</MissedUtc>
    <OutForDeliveryUtc>0001-01-01T00:00:00</OutForDeliveryUtc>
    <PayLines>
      <CourierPayLineView>
        <Amount>0</Amount>
        <DispatchLoadID>0</DispatchLoadID>
        <Kind>String</Kind>
        <Label>String</Label>
        <Qty>0</Qty>
        <Rate>0</Rate>
      </CourierPayLineView>
    </PayLines>
    <PayMode>String</PayMode>
    <Photos>
      <CourierPhotoView>
        <FileName>String</FileName>
        <Kind>String</Kind>
        <PhotoId>0</PhotoId>
        <TakenUtc>0001-01-01T00:00:00</TakenUtc>
        <Url>String</Url>
      </CourierPhotoView>
    </Photos>
    <PickedUpUtc>0001-01-01T00:00:00</PickedUpUtc>
    <PickupContactName>String</PickupContactName>
    <PickupLoadId>0</PickupLoadId>
    <PingAfterUtc>0001-01-01T00:00:00</PingAfterUtc>
    <PingExpiresUtc>0001-01-01T00:00:00</PingExpiresUtc>
    <ProfileName>String</ProfileName>
    <Proof>
      <CourierProofResultView>
        <AtUtc>0001-01-01T00:00:00</AtUtc>
        <Stage>String</Stage>
        <StepKey>String</StepKey>
        <Value>String</Value>
      </CourierProofResultView>
    </Proof>
    <QueueSequence>0</QueueSequence>
    <ReadyUtc>0001-01-01T00:00:00</ReadyUtc>
    <RebookOfId>0</RebookOfId>
    <RecurrenceId>0</RecurrenceId>
    <RefundedAmount>0</RefundedAmount>
    <RouteShape>String</RouteShape>
    <Rule>
      <AcceptedUtc>0001-01-01T00:00:00</AcceptedUtc>
      <CancelFee>0</CancelFee>
      <FinalPriceAfterCount>false</FinalPriceAfterCount>
      <MissedAutoRebook>false</MissedAutoRebook>
      <MissedFee>0</MissedFee>
      <MissedRequireContact>false</MissedRequireContact>
      <MissedRequirePhoto>false</MissedRequirePhoto>
      <MissedWaitMin>0</MissedWaitMin>
      <PayPlanName>String</PayPlanName>
      <PayTiming>String</PayTiming>
      <PerCancel>0</PerCancel>
      <PerMissed>0</PerMissed>
      <PerPickup>0</PerPickup>
      <PerStop>0</PerStop>
      <PingSecs>0</PingSecs>
      <Proof xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Proof>
    </Rule>
    <RunCode>String</RunCode>
    <Scans>
      <CourierScanView>
        <AtUtc>0001-01-01T00:00:00</AtUtc>
        <Result>String</Result>
        <Stage>String</Stage>
        <TagCode>String</TagCode>
      </CourierScanView>
    </Scans>
    <ServiceLevelCode>String</ServiceLevelCode>
    <Source>String</Source>
    <Stage>String</Stage>
    <StepLabel>String</StepLabel>
    <StopSequence>0</StopSequence>
    <TipAmount>0</TipAmount>
    <Unit>String</Unit>
    <UnitMany>String</UnitMany>
    <UnitOne>String</UnitOne>
    <Units>0</Units>
    <UnitsFound>0</UnitsFound>
    <WindowEndUtc>0001-01-01T00:00:00</WindowEndUtc>
    <WindowStartUtc>0001-01-01T00:00:00</WindowStartUtc>
    <WindowText>String</WindowText>
    <Zip>String</Zip>
    <Zone>String</Zone>
  </Order>
  <Orders>
    <CourierOrderView>
      <Address>String</Address>
      <ArrivedUtc>0001-01-01T00:00:00</ArrivedUtc>
      <AuthorizedAmount>0</AuthorizedAmount>
      <CancelFeeApplied>0</CancelFeeApplied>
      <CancelReason>String</CancelReason>
      <CancelledBy>String</CancelledBy>
      <CancelledUtc>0001-01-01T00:00:00</CancelledUtc>
      <CandidateCode>String</CandidateCode>
      <CaptureMode>String</CaptureMode>
      <CapturedAmount>0</CapturedAmount>
      <ChargeError>String</ChargeError>
      <City>String</City>
      <Code>String</Code>
      <CourierFacilityId>0</CourierFacilityId>
      <CourierProfileId>0</CourierProfileId>
      <CourierRunId>0</CourierRunId>
      <CourierStep>String</CourierStep>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <CustomerName>String</CustomerName>
      <CustomerPhone>String</CustomerPhone>
      <DamageNote>String</DamageNote>
      <DeliveredToName>String</DeliveredToName>
      <DeliveredUtc>0001-01-01T00:00:00</DeliveredUtc>
      <DispatchOdRequestID>0</DispatchOdRequestID>
      <DriverCode>String</DriverCode>
      <DriverContactId>0</DriverContactId>
      <DriverName>String</DriverName>
      <DropoffAddress>String</DropoffAddress>
      <DropoffCity>String</DropoffCity>
      <DropoffContactName>String</DropoffContactName>
      <DropoffUnit>String</DropoffUnit>
      <DropoffZip>String</DropoffZip>
      <DueText>String</DueText>
      <DueUtc>0001-01-01T00:00:00</DueUtc>
      <Events>
        <CourierEventView>
          <AtUtc>0001-01-01T00:00:00</AtUtc>
          <Body>String</Body>
          <Kind>String</Kind>
          <Party>String</Party>
        </CourierEventView>
      </Events>
      <FacilityName>String</FacilityName>
      <Fare>0</Fare>
      <FinalPrice>0</FinalPrice>
      <GateCode>String</GateCode>
      <Handoff>String</Handoff>
      <HeldReason>String</HeldReason>
      <HeldUtc>0001-01-01T00:00:00</HeldUtc>
      <Instructions>String</Instructions>
      <IntakeUtc>0001-01-01T00:00:00</IntakeUtc>
      <IsAsap>false</IsAsap>
      <IsClosed>false</IsClosed>
      <Items>
        <CourierItemView>
          <CourierItemID>0</CourierItemID>
          <Custody>String</Custody>
          <DispatchOdRequestID>0</DispatchOdRequestID>
          <IsManual>false</IsManual>
          <IsMissing>false</IsMissing>
          <IsOpen>false</IsOpen>
          <MissingReason>String</MissingReason>
          <ReTagFlag>false</ReTagFlag>
          <Scanned>false</Scanned>
          <Seq>0</Seq>
          <TagCode>String</TagCode>
        </CourierItemView>
      </Items>
      <LevelName>String</LevelName>
      <Miles>0</Miles>
      <MissedFeeApplied>0</MissedFeeApplied>
      <MissedUtc>0001-01-01T00:00:00</MissedUtc>
      <OutForDeliveryUtc>0001-01-01T00:00:00</OutForDeliveryUtc>
      <PayLines>
        <CourierPayLineView>
          <Amount>0</Amount>
          <DispatchLoadID>0</DispatchLoadID>
          <Kind>String</Kind>
          <Label>String</Label>
          <Qty>0</Qty>
          <Rate>0</Rate>
        </CourierPayLineView>
      </PayLines>
      <PayMode>String</PayMode>
      <Photos>
        <CourierPhotoView>
          <FileName>String</FileName>
          <Kind>String</Kind>
          <PhotoId>0</PhotoId>
          <TakenUtc>0001-01-01T00:00:00</TakenUtc>
          <Url>String</Url>
        </CourierPhotoView>
      </Photos>
      <PickedUpUtc>0001-01-01T00:00:00</PickedUpUtc>
      <PickupContactName>String</PickupContactName>
      <PickupLoadId>0</PickupLoadId>
      <PingAfterUtc>0001-01-01T00:00:00</PingAfterUtc>
      <PingExpiresUtc>0001-01-01T00:00:00</PingExpiresUtc>
      <ProfileName>String</ProfileName>
      <Proof>
        <CourierProofResultView>
          <AtUtc>0001-01-01T00:00:00</AtUtc>
          <Stage>String</Stage>
          <StepKey>String</StepKey>
          <Value>String</Value>
        </CourierProofResultView>
      </Proof>
      <QueueSequence>0</QueueSequence>
      <ReadyUtc>0001-01-01T00:00:00</ReadyUtc>
      <RebookOfId>0</RebookOfId>
      <RecurrenceId>0</RecurrenceId>
      <RefundedAmount>0</RefundedAmount>
      <RouteShape>String</RouteShape>
      <Rule>
        <AcceptedUtc>0001-01-01T00:00:00</AcceptedUtc>
        <CancelFee>0</CancelFee>
        <FinalPriceAfterCount>false</FinalPriceAfterCount>
        <MissedAutoRebook>false</MissedAutoRebook>
        <MissedFee>0</MissedFee>
        <MissedRequireContact>false</MissedRequireContact>
        <MissedRequirePhoto>false</MissedRequirePhoto>
        <MissedWaitMin>0</MissedWaitMin>
        <PayPlanName>String</PayPlanName>
        <PayTiming>String</PayTiming>
        <PerCancel>0</PerCancel>
        <PerMissed>0</PerMissed>
        <PerPickup>0</PerPickup>
        <PerStop>0</PerStop>
        <PingSecs>0</PingSecs>
        <Proof xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Proof>
      </Rule>
      <RunCode>String</RunCode>
      <Scans>
        <CourierScanView>
          <AtUtc>0001-01-01T00:00:00</AtUtc>
          <Result>String</Result>
          <Stage>String</Stage>
          <TagCode>String</TagCode>
        </CourierScanView>
      </Scans>
      <ServiceLevelCode>String</ServiceLevelCode>
      <Source>String</Source>
      <Stage>String</Stage>
      <StepLabel>String</StepLabel>
      <StopSequence>0</StopSequence>
      <TipAmount>0</TipAmount>
      <Unit>String</Unit>
      <UnitMany>String</UnitMany>
      <UnitOne>String</UnitOne>
      <Units>0</Units>
      <UnitsFound>0</UnitsFound>
      <WindowEndUtc>0001-01-01T00:00:00</WindowEndUtc>
      <WindowStartUtc>0001-01-01T00:00:00</WindowStartUtc>
      <WindowText>String</WindowText>
      <Zip>String</Zip>
      <Zone>String</Zone>
    </CourierOrderView>
  </Orders>
  <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>
</CourierOrderResponse>