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/dispatch/courier/held-pings HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
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>