POST Api/Presale/InternetCustomerDetails

Request Information

URI Parameters

None.

Body Parameters

ParamUpdatePresaleYourDetailsInternet
NameDescriptionTypeAdditional information
PresaleID

integer

None.

InternetRetailerID

integer

None.

AgentID

integer

None.

IsMoving

boolean

None.

MovingDate

string

None.

IsConnectedElectricityAndGas

boolean

None.

IsLookEnergyPlans

boolean

None.

CurrentInternetRetailerID

integer

None.

IsUpdateInternet

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PresaleID": 1,
  "InternetRetailerID": 1,
  "AgentID": 1,
  "IsMoving": true,
  "MovingDate": "sample string 2",
  "IsConnectedElectricityAndGas": true,
  "IsLookEnergyPlans": true,
  "CurrentInternetRetailerID": 1,
  "IsUpdateInternet": true
}

application/xml, text/xml

Sample:
<ParamUpdatePresaleYourDetailsInternet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.NewPresales.Parameters">
  <AgentID>1</AgentID>
  <CurrentInternetRetailerID>1</CurrentInternetRetailerID>
  <InternetRetailerID>1</InternetRetailerID>
  <IsConnectedElectricityAndGas>true</IsConnectedElectricityAndGas>
  <IsLookEnergyPlans>true</IsLookEnergyPlans>
  <IsMoving>true</IsMoving>
  <IsUpdateInternet>true</IsUpdateInternet>
  <MovingDate>sample string 2</MovingDate>
  <PresaleID>1</PresaleID>
</ParamUpdatePresaleYourDetailsInternet>

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>