POST api/Codeco/SubmitDecoration

Request Information

URI Parameters

None.

Body Parameters

DecorationModel
NameDescriptionTypeAdditional information
ClientName

string

None.

Salutation

string

None.

CountryCode

string

None.

Phone

string

None.

PropertyAddress

string

None.

Signature

string

None.

StaffName

string

None.

StaffNo

string

None.

CountryCode_Staff

string

None.

StaffPhone

string

None.

Branch

string

None.

Consultant

string

None.

ExpectedHandoverDate

string

None.

Occupying

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientName": "sample string 1",
  "Salutation": "sample string 2",
  "CountryCode": "sample string 3",
  "Phone": "sample string 4",
  "PropertyAddress": "sample string 5",
  "Signature": "sample string 6",
  "StaffName": "sample string 7",
  "StaffNo": "sample string 8",
  "CountryCode_Staff": "sample string 9",
  "StaffPhone": "sample string 10",
  "Branch": "sample string 11",
  "Consultant": "sample string 12",
  "ExpectedHandoverDate": "sample string 13",
  "Occupying": true
}

text/xml

Sample:
<DecorationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CentaMortgageWebAPI.Models">
  <Branch>sample string 11</Branch>
  <ClientName>sample string 1</ClientName>
  <Consultant>sample string 12</Consultant>
  <CountryCode>sample string 3</CountryCode>
  <CountryCode_Staff>sample string 9</CountryCode_Staff>
  <ExpectedHandoverDate>sample string 13</ExpectedHandoverDate>
  <Occupying>true</Occupying>
  <Phone>sample string 4</Phone>
  <PropertyAddress>sample string 5</PropertyAddress>
  <Salutation>sample string 2</Salutation>
  <Signature>sample string 6</Signature>
  <StaffName>sample string 7</StaffName>
  <StaffNo>sample string 8</StaffNo>
  <StaffPhone>sample string 10</StaffPhone>
</DecorationModel>

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 'DecorationModel'.

Response Information

Resource Description

DecorationResponse
NameDescriptionTypeAdditional information
DecorationID

string

None.

ResponseCode

ResponseCode

None.

AlertMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "DecorationID": "sample string 1",
  "ResponseCode": 1,
  "AlertMessage": "sample string 2"
}

text/xml

Sample:
<DecorationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CentaMortgageWebAPI.Models">
  <AlertMessage>sample string 2</AlertMessage>
  <ResponseCode>Success</ResponseCode>
  <DecorationID>sample string 1</DecorationID>
</DecorationResponse>