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 /bootrecordsbytowstatus HTTP/1.1
Host: api.paylock.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<BootRecordByTowStatusSearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BootView.WebApi.ServiceModel">
<EligibleSoonResults>
<BootRecordByEligibleSoonTowStatusSearchResultItem>
<AmountDue>0</AmountDue>
<CallerName>String</CallerName>
<CollectionAttemptId>00000000-0000-0000-0000-000000000000</CollectionAttemptId>
<FullMakeColorTag>String</FullMakeColorTag>
<FullTag>String</FullTag>
<HoursBeforeEligible>String</HoursBeforeEligible>
<MunicipalityCode>String</MunicipalityCode>
<PhoneNumber>String</PhoneNumber>
<StickerId>String</StickerId>
<TowEligibleDate>String</TowEligibleDate>
<VehicleId>00000000-0000-0000-0000-000000000000</VehicleId>
<Zone>String</Zone>
</BootRecordByEligibleSoonTowStatusSearchResultItem>
</EligibleSoonResults>
<PageIndex>0</PageIndex>
<PageSize>0</PageSize>
<Results>
<BootRecordByTowStatusSearchResultItem>
<BootId>00000000-0000-0000-0000-000000000000</BootId>
<BootInstalledOn>0001-01-01T00:00:00</BootInstalledOn>
<BootRecordId>00000000-0000-0000-0000-000000000000</BootRecordId>
<BootRecordStatusDate>0001-01-01T00:00:00</BootRecordStatusDate>
<BootSerialNumber>String</BootSerialNumber>
<CollectionAttemptId>00000000-0000-0000-0000-000000000000</CollectionAttemptId>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<DaysHours>String</DaysHours>
<FullMakeColorTag>String</FullMakeColorTag>
<FullTag>String</FullTag>
<HoursSinceBooting>0</HoursSinceBooting>
<IsOverdue>false</IsOverdue>
<Location>String</Location>
<MunicipalityCode>String</MunicipalityCode>
<NetDue>0</NetDue>
<QueuedForTowReason>String</QueuedForTowReason>
<StickerId>String</StickerId>
<TowCompanyName>String</TowCompanyName>
<VehicleId>00000000-0000-0000-0000-000000000000</VehicleId>
<Zone>String</Zone>
</BootRecordByTowStatusSearchResultItem>
</Results>
<TotalItems>0</TotalItems>
</BootRecordByTowStatusSearchResult>