Add a new tariff
x-ms-visibility: "important"
Create a new tariff with specified details.
Request Body required
Details of the tariff to be added.
- Array [
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
Possible values: [COST
, PRICE
, OTHER
]
Default value: COST
Possible values: [AD_HOC_PAYMENT
, PROFILE_CHEAP
, PROFILE_FAST
, PROFILE_GREEN
, REGULAR
]
Default value: AD_HOC_PAYMENT
minPrice object
maxPrice object
elements object[]
priceComponents object[]
Possible values: [ENERGY
, FLAT
, PARKING_TIME
, TIME
, SOCKET_COUNT
, CHARGER_COUNT
, ENERGY_SPOT
, ENERGY_SPOT_LOCKED
, MONTHLY_FLAT
]
Default value: ENERGY
restrictions object
Possible values: [MONDAY
, TUESDAY
, WEDNESDAY
, THURSDAY
, FRIDAY
, SATURDAY
, SUNDAY
]
Possible values: [RESERVATION
, RESERVATION_EXPIRES
]
Default value: RESERVATION
tariffAltText object[]
tariffAltTextOffline object[]
tariffAltTextDuringCharging object[]
tariffAltTextStopTransaction object[]
- 201
- 400
- 401
The ID of the created tariff.
Schema
- Array [
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
Possible values: [COST
, PRICE
, OTHER
]
Default value: COST
Possible values: [AD_HOC_PAYMENT
, PROFILE_CHEAP
, PROFILE_FAST
, PROFILE_GREEN
, REGULAR
]
Default value: AD_HOC_PAYMENT
minPrice object
maxPrice object
elements object[]
priceComponents object[]
Possible values: [ENERGY
, FLAT
, PARKING_TIME
, TIME
, SOCKET_COUNT
, CHARGER_COUNT
, ENERGY_SPOT
, ENERGY_SPOT_LOCKED
, MONTHLY_FLAT
]
Default value: ENERGY
restrictions object
Possible values: [MONDAY
, TUESDAY
, WEDNESDAY
, THURSDAY
, FRIDAY
, SATURDAY
, SUNDAY
]
Possible values: [RESERVATION
, RESERVATION_EXPIRES
]
Default value: RESERVATION
tariffEnergyMix object
energySources object[]
Possible values: [NUCLEAR
, GENERAL_FOSSIL
, COAL
, GAS
, GENERAL_GREEN
, SOLAR
, WIND
, WATER
]
Default value: NUCLEAR
environImpact object[]
Possible values: [NUCLEAR_WASTE
, CARBON_DIOXIDE
]
Default value: NUCLEAR_WASTE
tariffAltText object[]
tariffAltTextOffline object[]
tariffAltTextDuringCharging object[]
tariffAltTextStopTransaction object[]
{
"id": "string",
"version": 0,
"tariffName": "string",
"tariffNameWithPrice": "string",
"received": true,
"externalId": "string",
"useType": "COST",
"currency": "string",
"ocpiType": "AD_HOC_PAYMENT",
"baseTariffId": "string",
"tariffAltUrl": "string",
"minPrice": {
"exclVat": 0,
"inclVat": 0
},
"maxPrice": {
"exclVat": 0,
"inclVat": 0
},
"elements": [
{
"priceComponents": [
{
"type": "ENERGY",
"price": 0,
"margin": 0,
"vat": 0,
"stepSize": 0,
"biddingZone": "string",
"marginPercentage": 0,
"priceCap": 0,
"costPercentage": 0
}
],
"restrictions": {
"startTime": "string",
"endTime": "string",
"startDate": "string",
"endDate": "string",
"minKwh": 0,
"maxKwh": 0,
"minCurrent": 0,
"maxCurrent": 0,
"minPower": 0,
"maxPower": 0,
"minDuration": 0,
"maxDuration": 0,
"dayOfWeek": [
"MONDAY"
],
"reservation": "RESERVATION"
}
}
],
"startDateTime": "2025-05-28T10:55:51.157Z",
"endDateTime": "2025-05-28T10:55:51.157Z",
"tariffEnergyMix": {
"isGreenEnergy": true,
"energySources": [
{
"source": "NUCLEAR",
"percentage": 0
}
],
"environImpact": [
{
"category": "NUCLEAR_WASTE",
"amount": 0
}
],
"supplierName": "string",
"energyProductName": "string"
},
"created": "2025-05-28T10:55:51.157Z",
"lastUpdated": "2025-05-28T10:55:51.157Z",
"tariffAltText": [
{
"language": "string",
"text": "string"
}
],
"tariffAltTextOffline": [
{
"language": "string",
"text": "string"
}
],
"tariffAltTextDuringCharging": [
{
"language": "string",
"text": "string"
}
],
"tariffAltTextStopTransaction": [
{
"language": "string",
"text": "string"
}
]
}
Validation or processing errors
Schema
{
"errorCode": "string",
"message": "string",
"errorNumber": 0,
"helpLink": "string"
}
No description