Contracts|Electricity
Create a new electricity contract
Creates a new electricity contract with the provided details
:::tip Recommended guide If you are unsure which parameters to include when creating an electricity contract, refer to the complete documentation. :::
post/users/{userId}/electricity-contracts
Request
- Base URLhttps://connect.clever.gy
- AuthAPI key in header clevergy-api-key
Path parameters
userIdstring required
ID of user
Request body
Example request
{
"startDate": "2023-02-01",
"endDate": "2024-02-01",
"status": "ACTIVE",
"address": "123 Main St, Springfield",
"postalCode": "12345",
"cups": "ES1234567890123456AB",
"importTariffType": "FIXED",
"surplusTariffType": "FIXED",
"tariffAccess": "2.0TD",
"tariffName": "Standard Electricity Tariff",
"iban": "ES7620770024003102575766",
"distributorName": "Electricity Distributor S.A.",
"holderName": "John Doe",
"commercialName": "Electricity Commercial S.L.",
"contractPower": [
3.45,
3.45
],
"powerPrices": [
0.1,
0.05
],
"energyPrices": [
0.15
],
"surplusPrices": [
0.05
],
"contractNumber": "EC-12345"
}Response
Electricity contract created successfully
Example response
{
"id": "contract-123",
"startDate": "2023-02-01",
"endDate": "2024-02-01",
"status": "ACTIVE",
"address": "123 Main St, Springfield",
"postalCode": "12345",
"connectionId": "conn-456",
"connectionContractId": "contract-789",
"cups": "ES1234567890123456AB",
"importTariffType": "2.0TD",
"surplusTariffType": "FIXED",
"tariffAccess": "2.0TD",
"tariffName": "Standard Electricity Tariff",
"iban": "ES7620770024003102575766",
"distributorName": "Electricity Distributor S.A.",
"holderName": "John Doe",
"commercialName": "Electricity Commercial S.L.",
"contractPower": [
3.45,
3.45
],
"powerPrices": [
0.1,
0.05
],
"energyPrices": [
0.15,
0.1,
0.05
],
"surplusPrices": [
0.05
],
"fileUrl": "https://example.com/contracts/electricity/contract-123.pdf",
"contractNumber": "EC-12345"
}Changes
No recorded changes to this operation across all 1 revision of this API.