WebAPI

<back to all web services

UKVehicleLookup

Lookup UK vehicle details based on VRM - uses the offline DVLA database.

Parameters:
NameParameterData TypeRequiredDescription
PlateNumberpathstringYes
PlateCountrypathstringYes
ProgramIdpathstringNo
IsPayForCrossingpathbooleanNo

To override the Content-type in your clients HTTP Accept Header, append the .soap12 suffix or ?format=soap12

HTTP + SOAP12

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap12 HTTP/1.1 
Host: api-preprod.merseyflow.co.uk 
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<UKVehicleLookup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.ServiceModel">
  <IsPayForCrossing>false</IsPayForCrossing>
  <PlateCountry>String</PlateCountry>
  <PlateNumber>String</PlateNumber>
  <ProgramId>0</ProgramId>
</UKVehicleLookup>

    </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<UKVehicleLookupResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.ServiceModel">
  <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:ResponseError>
    </d2p1:Errors>
  </ResponseStatus>
  <VehicleDetailsInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models">
    <d2p1:Body>String</d2p1:Body>
    <d2p1:BodyCode>String</d2p1:BodyCode>
    <d2p1:Make>String</d2p1:Make>
    <d2p1:MakeCode>String</d2p1:MakeCode>
    <d2p1:MakeId>0</d2p1:MakeId>
    <d2p1:Model>String</d2p1:Model>
    <d2p1:ModelCode>String</d2p1:ModelCode>
    <d2p1:PlateCountry>String</d2p1:PlateCountry>
    <d2p1:PlateNumber>String</d2p1:PlateNumber>
    <d2p1:SeatingCapacity>0</d2p1:SeatingCapacity>
    <d2p1:TaxClassDesc>String</d2p1:TaxClassDesc>
    <d2p1:TaxClassId>String</d2p1:TaxClassId>
    <d2p1:VehicleClass>0</d2p1:VehicleClass>
    <d2p1:VehicleClassDesc>String</d2p1:VehicleClassDesc>
    <d2p1:VehicleColor>String</d2p1:VehicleColor>
    <d2p1:VehicleColorCode>String</d2p1:VehicleColorCode>
    <d2p1:WheelPlan>String</d2p1:WheelPlan>
    <d2p1:WheelPlanCode>String</d2p1:WheelPlanCode>
    <d2p1:Year>0</d2p1:Year>
  </VehicleDetailsInfo>
</UKVehicleLookupResponse>

    </soap12:Body>
</soap12:Envelope>