POST api/EnergyPrices/Tariffs/Electricity

Request Information

Requires Authorization!

Add to HTTP Headers "Authorization" => "Bearer " + access_token from api/User/LoginWithApiKEY?ApiKEY={ApiKEY}
for example: "Authorization" => "Bearer aBc123-D1eF3...rS45q-XyZ879"

URI Parameters

None.

Body Parameters

EnergyPrices_Tariffs_Post_Model
NameTypeAdditional informationDescription
SupplierNumber integer

Required

Name string

Required

IsBusinessTariff boolean

Required

IsPrivateTariff boolean

Required

IsEcological boolean

Required

IsDifferentialTariff boolean

Required

IsRLM boolean

Required

IsDisabled boolean

Required

RestrictedPostalCodes boolean

None.

IsBundle boolean

None.

BundleGroup string

None.

FixedContractLenght integer

None.

IsFixedProvision boolean

None.

IsTerminTariff boolean

None.

IsSpotTariff boolean

None.

IsHPFCTariff boolean

None.

IsVESTariff boolean

None.

VESTariff_ProductCode string

None.

ShowPricesForYears boolean

None.

Info string

None.

PDFInfo string

None.

IsRequiredStartYearEqual boolean

None.

IsRequiredEndYearEqual boolean

None.

IsMultiTradePrices boolean

None.

SupplierTariffCode string

None.

Request Formats

application/json, text/json

Sample:
{
  "SupplierNumber": 1,
  "Name": "sample string 2",
  "IsBusinessTariff": true,
  "IsPrivateTariff": true,
  "IsEcological": true,
  "IsDifferentialTariff": true,
  "IsRLM": true,
  "IsDisabled": true,
  "RestrictedPostalCodes": true,
  "IsBundle": true,
  "BundleGroup": "sample string 10",
  "FixedContractLenght": 1,
  "IsFixedProvision": true,
  "IsTerminTariff": true,
  "IsSpotTariff": true,
  "IsHPFCTariff": true,
  "IsVESTariff": true,
  "VESTariff_ProductCode": "sample string 13",
  "ShowPricesForYears": true,
  "Info": "sample string 15",
  "PDFInfo": "sample string 16",
  "IsRequiredStartYearEqual": true,
  "IsRequiredEndYearEqual": true,
  "IsMultiTradePrices": true,
  "SupplierTariffCode": "sample string 20"
}

application/xml, text/xml

Sample:
<EnergyPrices_Tariffs_Post_Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPITokenGenerator.Models">
  <BundleGroup>sample string 10</BundleGroup>
  <FixedContractLenght>1</FixedContractLenght>
  <Info>sample string 15</Info>
  <IsBundle>true</IsBundle>
  <IsBusinessTariff>true</IsBusinessTariff>
  <IsDifferentialTariff>true</IsDifferentialTariff>
  <IsDisabled>true</IsDisabled>
  <IsEcological>true</IsEcological>
  <IsFixedProvision>true</IsFixedProvision>
  <IsHPFCTariff>true</IsHPFCTariff>
  <IsMultiTradePrices>true</IsMultiTradePrices>
  <IsPrivateTariff>true</IsPrivateTariff>
  <IsRLM>true</IsRLM>
  <IsRequiredEndYearEqual>true</IsRequiredEndYearEqual>
  <IsRequiredStartYearEqual>true</IsRequiredStartYearEqual>
  <IsSpotTariff>true</IsSpotTariff>
  <IsTerminTariff>true</IsTerminTariff>
  <IsVESTariff>true</IsVESTariff>
  <Name>sample string 2</Name>
  <PDFInfo>sample string 16</PDFInfo>
  <RestrictedPostalCodes>true</RestrictedPostalCodes>
  <ShowPricesForYears>true</ShowPricesForYears>
  <SupplierNumber>1</SupplierNumber>
  <SupplierTariffCode>sample string 20</SupplierTariffCode>
  <VESTariff_ProductCode>sample string 13</VESTariff_ProductCode>
</EnergyPrices_Tariffs_Post_Model>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>