POST Api/Presale/CustomerInformation

Request Information

URI Parameters

None.

Body Parameters

ParamInsertYourInformation
NameDescriptionTypeAdditional information
PresaleID

integer

None.

EnergyTypeID

integer

None.

CustomerTypeID

integer

None.

IsMoving

boolean

None.

MovingDate

string

None.

IsSolar

boolean

None.

IsLifeSupport

boolean

None.

IsConnectInternetToNewProperty

boolean

None.

IsResponsibleMoreThanOneProperty

boolean

None.

IsHasCreditIssueInPastFiveYears

boolean

None.

IsSolarSystemGreater10kw

boolean

None.

IsInverterGreater10kw

boolean

None.

Postcode

string

None.

Suburb

string

None.

NBNSpeed

integer

None.

IsNotSure

boolean

None.

UsageRating

integer

None.

IsLowerSetupCost

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PresaleID": 1,
  "EnergyTypeID": 2,
  "CustomerTypeID": 3,
  "IsMoving": true,
  "MovingDate": "sample string 5",
  "IsSolar": true,
  "IsLifeSupport": true,
  "IsConnectInternetToNewProperty": true,
  "IsResponsibleMoreThanOneProperty": true,
  "IsHasCreditIssueInPastFiveYears": true,
  "IsSolarSystemGreater10kw": true,
  "IsInverterGreater10kw": true,
  "Postcode": "sample string 7",
  "Suburb": "sample string 8",
  "NBNSpeed": 1,
  "IsNotSure": true,
  "UsageRating": 1,
  "IsLowerSetupCost": true
}

application/xml, text/xml

Sample:
<ParamInsertYourInformation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.NewPresales.Parameters">
  <CustomerTypeID>3</CustomerTypeID>
  <EnergyTypeID>2</EnergyTypeID>
  <IsConnectInternetToNewProperty>true</IsConnectInternetToNewProperty>
  <IsHasCreditIssueInPastFiveYears>true</IsHasCreditIssueInPastFiveYears>
  <IsInverterGreater10kw>true</IsInverterGreater10kw>
  <IsLifeSupport>true</IsLifeSupport>
  <IsLowerSetupCost>true</IsLowerSetupCost>
  <IsMoving>true</IsMoving>
  <IsNotSure>true</IsNotSure>
  <IsResponsibleMoreThanOneProperty>true</IsResponsibleMoreThanOneProperty>
  <IsSolar>true</IsSolar>
  <IsSolarSystemGreater10kw>true</IsSolarSystemGreater10kw>
  <MovingDate>sample string 5</MovingDate>
  <NBNSpeed>1</NBNSpeed>
  <Postcode>sample string 7</Postcode>
  <PresaleID>1</PresaleID>
  <Suburb>sample string 8</Suburb>
  <UsageRating>1</UsageRating>
</ParamInsertYourInformation>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultOfBoolean
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

ErrorMessage

Collection of string

None.

Value

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "Value": true
}

application/xml, text/xml

Sample:
<ResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.Common.Returns">
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessage>
  <Message>sample string 2</Message>
  <Success>true</Success>
  <Value>true</Value>
</ResultOfboolean>