POST request/Switch/Pro/Detail/Direct-Debit-Days

Returns a selection of dates for a consumer switching energy to choose a preferred direct debit payment date as mandatory.

Request Information

URI Parameters

None.

Body Parameters

The switch completion binding model.

SwitchCompletionInfoBindingModel
NameDescriptionTypeAdditional information
IsTou

boolean

None.

SwitchKey

string

Required

Max length: 50

Min length: 1

Request Formats

application/json, text/json

Sample:
{
  "switchKey": "sample string 1",
  "isTou": true
}

application/xml, text/xml

Sample:
<SwitchCompletionInfoBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Domain.Default.Sample">
  <IsTou xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Domain.Default.BindingModel">true</IsTou>
  <SwitchKey xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Domain.Default.BindingModel">sample string 1</SwitchKey>
</SwitchCompletionInfoBindingModel>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SwitchKey"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsTou"

True
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

DirectDebitDayOfTheMonthsDtoResponse
NameDescriptionTypeAdditional information
ApiVersion

string

None.

DirectDebitDayOfTheMonthsDto

DirectDebitDayOfTheMonthsDto

None.

Uri

string

None.

Response Formats

application/json, text/json

Sample:
{
  "apiVersion": "sample string 1",
  "uri": "sample string 2",
  "directDebitDayOfTheMonthsDto": {
    "directDebitDayOfTheMonths": [
      "First",
      "First"
    ]
  }
}

application/xml, text/xml

Sample:
<DirectDebitDayOfTheMonthsDtoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.DtoResponse">
  <ApiVersion>sample string 1</ApiVersion>
  <DirectDebitDayOfTheMonthsDto xmlns:d2p1="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.Dto">
    <d2p1:DirectDebitDayOfTheMonths xmlns:d3p1="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Domain.Default.Enum">
      <d3p1:DirectDebitDayOfTheMonth>First</d3p1:DirectDebitDayOfTheMonth>
      <d3p1:DirectDebitDayOfTheMonth>First</d3p1:DirectDebitDayOfTheMonth>
    </d2p1:DirectDebitDayOfTheMonths>
  </DirectDebitDayOfTheMonthsDto>
  <Uri>sample string 2</Uri>
</DirectDebitDayOfTheMonthsDtoResponse>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ApiVersion"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Uri"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DirectDebitDayOfTheMonthsDto.DirectDebitDayOfTheMonths[0]"

First
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DirectDebitDayOfTheMonthsDto.DirectDebitDayOfTheMonths[1]"

First
--MultipartDataMediaFormatterBoundary1q2w3e--