POST Api/Presale/InternetCustomerInformation

Request Information

URI Parameters

None.

Body Parameters

ParamInsertYourInformationInternet
NameDescriptionTypeAdditional information
PresaleID

integer

None.

EnergyTypeID

integer

None.

CustomerTypeID

integer

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,
  "Postcode": "sample string 4",
  "Suburb": "sample string 5",
  "NBNSpeed": 1,
  "IsNotSure": true,
  "UsageRating": 1,
  "IsLowerSetupCost": true
}

application/xml, text/xml

Sample:
<ParamInsertYourInformationInternet 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>
  <IsLowerSetupCost>true</IsLowerSetupCost>
  <IsNotSure>true</IsNotSure>
  <NBNSpeed>1</NBNSpeed>
  <Postcode>sample string 4</Postcode>
  <PresaleID>1</PresaleID>
  <Suburb>sample string 5</Suburb>
  <UsageRating>1</UsageRating>
</ParamInsertYourInformationInternet>

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>