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 /enforcementzones HTTP/1.1
Host: api.paylock.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetEnforcementZoneResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BootView.WebApi.ServiceModel">
<EnforcementZoneList>
<EnforcementZone>
<Coordinates>String</Coordinates>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<EnforcementZoneId>00000000-0000-0000-0000-000000000000</EnforcementZoneId>
<Points>String</Points>
<WeekDays>String</WeekDays>
<ZoneName>String</ZoneName>
</EnforcementZone>
</EnforcementZoneList>
<OptiRouteResultList>
<OptiRouteMapResultItem>
<Address>String</Address>
<AddressNum>0</AddressNum>
<AmtDue>0</AmtDue>
<City>String</City>
<ClientCode>String</ClientCode>
<Color>String</Color>
<CurrentStatus>String</CurrentStatus>
<DataSource>String</DataSource>
<FileDate>0001-01-01T00:00:00</FileDate>
<HitAction>String</HitAction>
<HitStatus>String</HitStatus>
<HotlistSrcLocIf>0</HotlistSrcLocIf>
<ImportDate>0001-01-01T00:00:00</ImportDate>
<LPRDataID>00000000-0000-0000-0000-000000000000</LPRDataID>
<Latitude>String</Latitude>
<LicPlate>String</LicPlate>
<LicState>String</LicState>
<LocImportSource>0</LocImportSource>
<LocImportSourceName>String</LocImportSourceName>
<Longitude>String</Longitude>
<MakeModel>String</MakeModel>
<NumRunawaysSinceLastPayment>0</NumRunawaysSinceLastPayment>
<ParkingZone>String</ParkingZone>
<PlateStatus>0</PlateStatus>
<SourceAddress>0</SourceAddress>
<SourceLL>0</SourceLL>
<SourceLLName>String</SourceLLName>
<SrcType>String</SrcType>
<State>String</State>
<TypeDate>0001-01-01T00:00:00</TypeDate>
<TypeDateDay>String</TypeDateDay>
<Zip>String</Zip>
</OptiRouteMapResultItem>
</OptiRouteResultList>
</GetEnforcementZoneResult>