POST request/manage/tariff/export
Request Information
URI Parameters
None.
Body Parameters
ExportTariffRequestName | Description | Type | Additional information |
---|---|---|---|
TariffIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "tariffIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<ExportTariffRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.Dto"> <TariffIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </TariffIds> </ExportTariffRequest>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="TariffIds[0]" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="TariffIds[1]" 2 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
Collection of ExportTariffDetailName | Description | Type | Additional information |
---|---|---|---|
ArcheType | string |
None. |
|
ArcheTypeId | integer |
None. |
|
HasWeekend | boolean |
None. |
|
Rates | Collection of ExportRate |
None. |
|
Scenario | string |
None. |
|
ScenarioId | integer |
None. |
|
StandingCharge | decimal number |
None. |
|
TariffId | integer |
None. |
|
TariffName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "tariffId": 1, "tariffName": "sample string 2", "archeType": "sample string 3", "archeTypeId": 4, "scenario": "sample string 5", "scenarioId": 6, "hasWeekend": true, "standingCharge": 8.0, "rates": [ { "displayName": "sample string 1", "importUnitRate": 2.0, "exportUnitRate": 3.0, "consumption": 4.0, "startTime": "sample string 5", "endTime": "sample string 6", "timeFrom": 7, "timeTo": 8, "weekdayFromId": 9, "weekdayToId": 10, "weekdayFrom": "sample string 11", "weekdayTo": "sample string 12" }, { "displayName": "sample string 1", "importUnitRate": 2.0, "exportUnitRate": 3.0, "consumption": 4.0, "startTime": "sample string 5", "endTime": "sample string 6", "timeFrom": 7, "timeTo": 8, "weekdayFromId": 9, "weekdayToId": 10, "weekdayFrom": "sample string 11", "weekdayTo": "sample string 12" } ] }, { "tariffId": 1, "tariffName": "sample string 2", "archeType": "sample string 3", "archeTypeId": 4, "scenario": "sample string 5", "scenarioId": 6, "hasWeekend": true, "standingCharge": 8.0, "rates": [ { "displayName": "sample string 1", "importUnitRate": 2.0, "exportUnitRate": 3.0, "consumption": 4.0, "startTime": "sample string 5", "endTime": "sample string 6", "timeFrom": 7, "timeTo": 8, "weekdayFromId": 9, "weekdayToId": 10, "weekdayFrom": "sample string 11", "weekdayTo": "sample string 12" }, { "displayName": "sample string 1", "importUnitRate": 2.0, "exportUnitRate": 3.0, "consumption": 4.0, "startTime": "sample string 5", "endTime": "sample string 6", "timeFrom": 7, "timeTo": 8, "weekdayFromId": 9, "weekdayToId": 10, "weekdayFrom": "sample string 11", "weekdayTo": "sample string 12" } ] } ]
application/xml, text/xml
Sample:
<ArrayOfExportTariffDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.Dto"> <ExportTariffDetail> <ArcheType>sample string 3</ArcheType> <ArcheTypeId>4</ArcheTypeId> <HasWeekend>true</HasWeekend> <Rates> <ExportRate> <Consumption>4</Consumption> <DisplayName>sample string 1</DisplayName> <EndTime>sample string 6</EndTime> <ExportUnitRate>3</ExportUnitRate> <ImportUnitRate>2</ImportUnitRate> <StartTime>sample string 5</StartTime> <TimeFrom>7</TimeFrom> <TimeTo>8</TimeTo> <WeekdayFrom>sample string 11</WeekdayFrom> <WeekdayFromId>9</WeekdayFromId> <WeekdayTo>sample string 12</WeekdayTo> <WeekdayToId>10</WeekdayToId> </ExportRate> <ExportRate> <Consumption>4</Consumption> <DisplayName>sample string 1</DisplayName> <EndTime>sample string 6</EndTime> <ExportUnitRate>3</ExportUnitRate> <ImportUnitRate>2</ImportUnitRate> <StartTime>sample string 5</StartTime> <TimeFrom>7</TimeFrom> <TimeTo>8</TimeTo> <WeekdayFrom>sample string 11</WeekdayFrom> <WeekdayFromId>9</WeekdayFromId> <WeekdayTo>sample string 12</WeekdayTo> <WeekdayToId>10</WeekdayToId> </ExportRate> </Rates> <Scenario>sample string 5</Scenario> <ScenarioId>6</ScenarioId> <StandingCharge>8</StandingCharge> <TariffId>1</TariffId> <TariffName>sample string 2</TariffName> </ExportTariffDetail> <ExportTariffDetail> <ArcheType>sample string 3</ArcheType> <ArcheTypeId>4</ArcheTypeId> <HasWeekend>true</HasWeekend> <Rates> <ExportRate> <Consumption>4</Consumption> <DisplayName>sample string 1</DisplayName> <EndTime>sample string 6</EndTime> <ExportUnitRate>3</ExportUnitRate> <ImportUnitRate>2</ImportUnitRate> <StartTime>sample string 5</StartTime> <TimeFrom>7</TimeFrom> <TimeTo>8</TimeTo> <WeekdayFrom>sample string 11</WeekdayFrom> <WeekdayFromId>9</WeekdayFromId> <WeekdayTo>sample string 12</WeekdayTo> <WeekdayToId>10</WeekdayToId> </ExportRate> <ExportRate> <Consumption>4</Consumption> <DisplayName>sample string 1</DisplayName> <EndTime>sample string 6</EndTime> <ExportUnitRate>3</ExportUnitRate> <ImportUnitRate>2</ImportUnitRate> <StartTime>sample string 5</StartTime> <TimeFrom>7</TimeFrom> <TimeTo>8</TimeTo> <WeekdayFrom>sample string 11</WeekdayFrom> <WeekdayFromId>9</WeekdayFromId> <WeekdayTo>sample string 12</WeekdayTo> <WeekdayToId>10</WeekdayToId> </ExportRate> </Rates> <Scenario>sample string 5</Scenario> <ScenarioId>6</ScenarioId> <StandingCharge>8</StandingCharge> <TariffId>1</TariffId> <TariffName>sample string 2</TariffName> </ExportTariffDetail> </ArrayOfExportTariffDetail>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].TariffId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].TariffName" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].ArcheType" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].ArcheTypeId" 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Scenario" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].ScenarioId" 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].HasWeekend" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].StandingCharge" 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].DisplayName" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].ImportUnitRate" 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].ExportUnitRate" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].Consumption" 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].StartTime" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].EndTime" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].TimeFrom" 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].TimeTo" 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].WeekdayFromId" 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].WeekdayToId" 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].WeekdayFrom" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[0].WeekdayTo" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].DisplayName" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].ImportUnitRate" 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].ExportUnitRate" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].Consumption" 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].StartTime" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].EndTime" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].TimeFrom" 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].TimeTo" 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].WeekdayFromId" 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].WeekdayToId" 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].WeekdayFrom" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Rates[1].WeekdayTo" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].TariffId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].TariffName" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].ArcheType" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].ArcheTypeId" 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Scenario" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].ScenarioId" 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].HasWeekend" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].StandingCharge" 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].DisplayName" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].ImportUnitRate" 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].ExportUnitRate" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].Consumption" 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].StartTime" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].EndTime" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].TimeFrom" 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].TimeTo" 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].WeekdayFromId" 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].WeekdayToId" 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].WeekdayFrom" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[0].WeekdayTo" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].DisplayName" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].ImportUnitRate" 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].ExportUnitRate" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].Consumption" 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].StartTime" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].EndTime" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].TimeFrom" 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].TimeTo" 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].WeekdayFromId" 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].WeekdayToId" 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].WeekdayFrom" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Rates[1].WeekdayTo" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e--