POST api/msm

Request Information

URI Parameters

None.

Body Parameters

HomeEmergencyQuoteRequestDto
NameDescriptionTypeAdditional information
quote_id

string

None.

aggregator_name

string

None.

home_owner

string

Required

certificate_required

string

None.

property_type

string

Required

address_1

string

Required

address_2

string

None.

address_3

string

None.

postcode

string

Required

boiler_working

string

Required

boiler_make

string

Required

boiler_age

integer

Required

boiler_serviced

string

None.

annual_service

string

Required

cover_type_heating

boolean

Required

cover_type_plumbing

boolean

Required

cover_type_electrical

boolean

Required

start_date

date

Required

premium_type

string

Required

excess

integer

Required

first_name

string

Required

surname

string

Required

dob

date

Required

email_address

string

Required

telephone_number

string

Required

Matching regular expression pattern: ^\d{11}$

Request Formats

application/json, text/json

Sample:
{
  "quote_id": "sample string 1",
  "aggregator_name": "sample string 2",
  "home_owner": "sample string 3",
  "certificate_required": "sample string 4",
  "property_type": "sample string 5",
  "address_1": "sample string 6",
  "address_2": "sample string 7",
  "address_3": "sample string 8",
  "postcode": "sample string 9",
  "boiler_working": "sample string 10",
  "boiler_make": "sample string 11",
  "boiler_age": 12,
  "boiler_serviced": "sample string 13",
  "annual_service": "sample string 14",
  "cover_type_heating": true,
  "cover_type_plumbing": true,
  "cover_type_electrical": true,
  "start_date": "2026-07-16T11:44:31.1631419+01:00",
  "premium_type": "sample string 19",
  "excess": 20,
  "first_name": "sample string 21",
  "surname": "sample string 22",
  "dob": "2026-07-16T11:44:31.1631419+01:00",
  "email_address": "sample string 24",
  "telephone_number": "sample string 25"
}

application/xml, text/xml

Sample:
<HomeEmergencyQuoteRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MsmApi.Dto">
  <address_1>sample string 6</address_1>
  <address_2>sample string 7</address_2>
  <address_3>sample string 8</address_3>
  <aggregator_name>sample string 2</aggregator_name>
  <annual_service>sample string 14</annual_service>
  <boiler_age>12</boiler_age>
  <boiler_make>sample string 11</boiler_make>
  <boiler_serviced>sample string 13</boiler_serviced>
  <boiler_working>sample string 10</boiler_working>
  <certificate_required>sample string 4</certificate_required>
  <cover_type_electrical>true</cover_type_electrical>
  <cover_type_heating>true</cover_type_heating>
  <cover_type_plumbing>true</cover_type_plumbing>
  <dob>2026-07-16T11:44:31.1631419+01:00</dob>
  <email_address>sample string 24</email_address>
  <excess>20</excess>
  <first_name>sample string 21</first_name>
  <home_owner>sample string 3</home_owner>
  <postcode>sample string 9</postcode>
  <premium_type>sample string 19</premium_type>
  <property_type>sample string 5</property_type>
  <quote_id>sample string 1</quote_id>
  <start_date>2026-07-16T11:44:31.1631419+01:00</start_date>
  <surname>sample string 22</surname>
  <telephone_number>sample string 25</telephone_number>
</HomeEmergencyQuoteRequestDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HomeEmergencyQuoteRequestDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.