Products

Request

Object scheme layout

  • ProductRequest

  • Authentication

    • Username

    • Password

  • OrderData

    • Postcode

    • PropertyType

Scheme breakdown

OrderData

<td> Enum [“Residential”, “Commercial”]</td>

Post code

String (must be valid postcode)

PropertyType

Code Example

var auth = new ProductService.Authentication { Username = {Username},
Password = {password} };

var order = new ProductService.ProductRequest { Authentication = auth,
OrderData = new ProductService.OrderData { Postcode = SP4 7DE,
PropertyType = ProductService.PropertyType.Residential } };

var request = new
ProductService.ProductWebServiceClient(endpointConfiguration); var
response = await request.GetProductsAsync(order);

Response

Code Example

public class Product { public int Id { get; set; } public string Name {
get; set; } public string Type { get; set; } public string Hazard { get;
set; } public string Category { get; set; } public double Price { get;
set; } }

foreach (var product in response.Body.GetProductsResult.Products) {
Console.WriteLine(product.Id); Console.WriteLine(product.Name);
Console.WriteLine(product.Price); Console.WriteLine(product.Type);
Console.WriteLine(product.Hazard); Console.WriteLine(product.Category);
}

Example responses

Property

Product

Bundle

Hazard

Id

28

1

29

Name

Groundsure Home Check Flood

Regulated Drainage & Water Search, CON29DW (Official Drainage & water Search), Landmark Homecheck Flood

Landmark Home Check Flood

Type

Product

Bundle

Product

Hazard

Flood

Category

Flood Reports

Drainage & Water Enquiries, Drainage & Water Enquiries, Flood Reports

Flood Reports

Price

18.12

112.38

19.38

Note

If the product is a stand alone product it will have a type of “Product”.

Should it be a bundle of Products it will state “Bundle”.

If there is a hazard it will state that as the Hazard type. Otherwise the Hazard product remains empty.