SetDefaultTariff OCPP 2.1
Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.
Request
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
evseId | integer | Pflicht | minimum 0.0 EVSE that tariff applies to. When _evseId_ = 0, then tarriff applies to all EVSEs. |
tariff | object | Pflicht | A tariff is described by fields with prices for: energy, charging time, idle time, fixed fee, reservation time, reservation fixed fee. + Each of these fields may have (optional) conditions that specify when a price is applicable. + The _description_ contains a human-readable explanation of the tariff to be shown to the user. + The other fields are parameters that define the tariff. These are used by the charging station to calculate the price. |
tariff.tariffId | string | Pflicht | maxLength 60 Unique id of tariff |
tariff.description | array<object> | minItems 1; maxItems 10 | |
tariff.description[].format | string | Pflicht | enum: ASCII, HTML, URI, UTF8, QRCODE Format of the message. |
tariff.description[].language | string | maxLength 8 Message language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>. | |
tariff.description[].content | string | Pflicht | maxLength 1024 *(2.1)* Required. Message contents. + Maximum length supported by Charging Station is given in OCPPCommCtrlr.FieldLength["MessageContentType.content"]. Maximum length defaults to 1024. |
tariff.currency | string | Pflicht | maxLength 3 Currency code according to ISO 4217 |
tariff.energy | object | Price elements and tax for energy | |
tariff.energy.prices | array<object> | Pflicht | minItems 1 |
tariff.energy.prices[].priceKwh | number | Pflicht | Price per kWh (excl. tax) for this element. |
tariff.energy.prices[].conditions | object | These conditions describe if and when a TariffEnergyType or TariffTimeType applies during a transaction. When more than one restriction is set, they are to be treated as a logical AND. All need to be valid before this price is active. For reverse energy flow (discharging) negative values of energy, power and current are used. NOTE: _minXXX_ (where XXX = Kwh/A/Kw) must be read as "closest to zero", and _maxXXX_ as "furthest from zero". For example, a *charging* power range from 10 kW to 50 kWh is given by _minPower_ = 10000 and _maxPower_ = 50000, and a *discharging* power range from -10 kW to -50 kW is given by _minPower_ = -10 and _maxPower_ = -50. NOTE: _startTimeOfDay_ and _endTimeOfDay_ are in local time, because it is the time in the tariff as it is shown to the EV driver at the Charging Station. A Charging Station will convert this to the internal time zone that it uses (which is recommended to be UTC, see section Generic chapter 3.1) when performing cost calculation. | |
tariff.energy.prices[].conditions.startTimeOfDay | string | Start time of day in local time. + Format as per RFC 3339: time-hour ":" time-minute + Must be in 24h format with leading zeros. Hour/Minute separator: ":" Regex: ([0-1][0-9]\|2[0-3]):[0-5][0-9] | |
tariff.energy.prices[].conditions.endTimeOfDay | string | End time of day in local time. Same syntax as _startTimeOfDay_. + If end time < start time then the period wraps around to the next day. + To stop at end of the day use: 00:00. | |
tariff.energy.prices[].conditions.dayOfWeek | array<string> | minItems 1; maxItems 7; enum: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday Day(s) of the week this is tariff applies. | |
tariff.energy.prices[].conditions.validFromDate | string | Start date in local time, for example: 2015-12-24. Valid from this day (inclusive). + Format as per RFC 3339: full-date + Regex: ([12][0-9]{3})-(0[1-9]\|1[0-2])-(0[1-9]\|[12][0-9]\|3[01]) | |
tariff.energy.prices[].conditions.validToDate | string | End date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_. | |
tariff.energy.prices[].conditions.evseKind | string | enum: AC, DC Type of EVSE (AC, DC) this tariff applies to. | |
tariff.energy.prices[].conditions.minEnergy | number | Minimum consumed energy in Wh, for example 20000 Wh. Valid from this amount of energy (inclusive) being used. | |
tariff.energy.prices[].conditions.maxEnergy | number | Maximum consumed energy in Wh, for example 50000 Wh. Valid until this amount of energy (exclusive) being used. | |
tariff.energy.prices[].conditions.minCurrent | number | Sum of the minimum current (in Amperes) over all phases, for example 5 A. When the EV is charging with more than, or equal to, the defined amount of current, this price is/becomes active. If the charging current is or becomes lower, this price is not or no longer valid and becomes inactive. + This is NOT about the minimum current over the entire transaction. | |
tariff.energy.prices[].conditions.maxCurrent | number | Sum of the maximum current (in Amperes) over all phases, for example 20 A. When the EV is charging with less than the defined amount of current, this price becomes/is active. If the charging current is or becomes higher, this price is not or no longer valid and becomes inactive. This is NOT about the maximum current over the entire transaction. | |
tariff.energy.prices[].conditions.minPower | number | Minimum power in W, for example 5000 W. When the EV is charging with more than, or equal to, the defined amount of power, this price is/becomes active. If the charging power is or becomes lower, this price is not or no longer valid and becomes inactive. This is NOT about the minimum power over the entire transaction. | |
tariff.energy.prices[].conditions.maxPower | number | Maximum power in W, for example 20000 W. When the EV is charging with less than the defined amount of power, this price becomes/is active. If the charging power is or becomes higher, this price is not or no longer valid and becomes inactive. This is NOT about the maximum power over the entire transaction. | |
tariff.energy.prices[].conditions.minTime | integer | Minimum duration in seconds the transaction (charging & idle) MUST last (inclusive). When the duration of a transaction is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.energy.prices[].conditions.maxTime | integer | Maximum duration in seconds the transaction (charging & idle) MUST last (exclusive). When the duration of a transaction is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.energy.prices[].conditions.minChargingTime | integer | Minimum duration in seconds the charging MUST last (inclusive). When the duration of a charging is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.energy.prices[].conditions.maxChargingTime | integer | Maximum duration in seconds the charging MUST last (exclusive). When the duration of a charging is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.energy.prices[].conditions.minIdleTime | integer | Minimum duration in seconds the idle period (i.e. not charging) MUST last (inclusive). When the duration of the idle time is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.energy.prices[].conditions.maxIdleTime | integer | Maximum duration in seconds the idle period (i.e. not charging) MUST last (exclusive). When the duration of idle time is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.energy.taxRates | array<object> | minItems 1; maxItems 5 | |
tariff.energy.taxRates[].type | string | Pflicht | maxLength 20 Type of this tax, e.g. "Federal ", "State", for information on receipt. |
tariff.energy.taxRates[].tax | number | Pflicht | Tax percentage |
tariff.energy.taxRates[].stack | integer | minimum 0.0 Stack level for this type of tax. Default value, when absent, is 0. + _stack_ = 0: tax on net price; + _stack_ = 1: tax added on top of _stack_ 0; + _stack_ = 2: tax added on top of _stack_ 1, etc. | |
tariff.validFrom | string | format date-time Time when this tariff becomes active. When absent, it is immediately active. | |
tariff.chargingTime | object | Price elements and tax for time | |
tariff.chargingTime.prices | array<object> | Pflicht | minItems 1 |
tariff.chargingTime.prices[].priceMinute | number | Pflicht | Price per minute (excl. tax) for this element. |
tariff.chargingTime.prices[].conditions | object | These conditions describe if and when a TariffEnergyType or TariffTimeType applies during a transaction. When more than one restriction is set, they are to be treated as a logical AND. All need to be valid before this price is active. For reverse energy flow (discharging) negative values of energy, power and current are used. NOTE: _minXXX_ (where XXX = Kwh/A/Kw) must be read as "closest to zero", and _maxXXX_ as "furthest from zero". For example, a *charging* power range from 10 kW to 50 kWh is given by _minPower_ = 10000 and _maxPower_ = 50000, and a *discharging* power range from -10 kW to -50 kW is given by _minPower_ = -10 and _maxPower_ = -50. NOTE: _startTimeOfDay_ and _endTimeOfDay_ are in local time, because it is the time in the tariff as it is shown to the EV driver at the Charging Station. A Charging Station will convert this to the internal time zone that it uses (which is recommended to be UTC, see section Generic chapter 3.1) when performing cost calculation. | |
tariff.chargingTime.prices[].conditions.startTimeOfDay | string | Start time of day in local time. + Format as per RFC 3339: time-hour ":" time-minute + Must be in 24h format with leading zeros. Hour/Minute separator: ":" Regex: ([0-1][0-9]\|2[0-3]):[0-5][0-9] | |
tariff.chargingTime.prices[].conditions.endTimeOfDay | string | End time of day in local time. Same syntax as _startTimeOfDay_. + If end time < start time then the period wraps around to the next day. + To stop at end of the day use: 00:00. | |
tariff.chargingTime.prices[].conditions.dayOfWeek | array<string> | minItems 1; maxItems 7; enum: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday Day(s) of the week this is tariff applies. | |
tariff.chargingTime.prices[].conditions.validFromDate | string | Start date in local time, for example: 2015-12-24. Valid from this day (inclusive). + Format as per RFC 3339: full-date + Regex: ([12][0-9]{3})-(0[1-9]\|1[0-2])-(0[1-9]\|[12][0-9]\|3[01]) | |
tariff.chargingTime.prices[].conditions.validToDate | string | End date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_. | |
tariff.chargingTime.prices[].conditions.evseKind | string | enum: AC, DC Type of EVSE (AC, DC) this tariff applies to. | |
tariff.chargingTime.prices[].conditions.minEnergy | number | Minimum consumed energy in Wh, for example 20000 Wh. Valid from this amount of energy (inclusive) being used. | |
tariff.chargingTime.prices[].conditions.maxEnergy | number | Maximum consumed energy in Wh, for example 50000 Wh. Valid until this amount of energy (exclusive) being used. | |
tariff.chargingTime.prices[].conditions.minCurrent | number | Sum of the minimum current (in Amperes) over all phases, for example 5 A. When the EV is charging with more than, or equal to, the defined amount of current, this price is/becomes active. If the charging current is or becomes lower, this price is not or no longer valid and becomes inactive. + This is NOT about the minimum current over the entire transaction. | |
tariff.chargingTime.prices[].conditions.maxCurrent | number | Sum of the maximum current (in Amperes) over all phases, for example 20 A. When the EV is charging with less than the defined amount of current, this price becomes/is active. If the charging current is or becomes higher, this price is not or no longer valid and becomes inactive. This is NOT about the maximum current over the entire transaction. | |
tariff.chargingTime.prices[].conditions.minPower | number | Minimum power in W, for example 5000 W. When the EV is charging with more than, or equal to, the defined amount of power, this price is/becomes active. If the charging power is or becomes lower, this price is not or no longer valid and becomes inactive. This is NOT about the minimum power over the entire transaction. | |
tariff.chargingTime.prices[].conditions.maxPower | number | Maximum power in W, for example 20000 W. When the EV is charging with less than the defined amount of power, this price becomes/is active. If the charging power is or becomes higher, this price is not or no longer valid and becomes inactive. This is NOT about the maximum power over the entire transaction. | |
tariff.chargingTime.prices[].conditions.minTime | integer | Minimum duration in seconds the transaction (charging & idle) MUST last (inclusive). When the duration of a transaction is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.chargingTime.prices[].conditions.maxTime | integer | Maximum duration in seconds the transaction (charging & idle) MUST last (exclusive). When the duration of a transaction is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.chargingTime.prices[].conditions.minChargingTime | integer | Minimum duration in seconds the charging MUST last (inclusive). When the duration of a charging is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.chargingTime.prices[].conditions.maxChargingTime | integer | Maximum duration in seconds the charging MUST last (exclusive). When the duration of a charging is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.chargingTime.prices[].conditions.minIdleTime | integer | Minimum duration in seconds the idle period (i.e. not charging) MUST last (inclusive). When the duration of the idle time is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.chargingTime.prices[].conditions.maxIdleTime | integer | Maximum duration in seconds the idle period (i.e. not charging) MUST last (exclusive). When the duration of idle time is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.chargingTime.taxRates | array<object> | minItems 1; maxItems 5 | |
tariff.chargingTime.taxRates[].type | string | Pflicht | maxLength 20 Type of this tax, e.g. "Federal ", "State", for information on receipt. |
tariff.chargingTime.taxRates[].tax | number | Pflicht | Tax percentage |
tariff.chargingTime.taxRates[].stack | integer | minimum 0.0 Stack level for this type of tax. Default value, when absent, is 0. + _stack_ = 0: tax on net price; + _stack_ = 1: tax added on top of _stack_ 0; + _stack_ = 2: tax added on top of _stack_ 1, etc. | |
tariff.idleTime | object | Price elements and tax for time | |
tariff.idleTime.prices | array<object> | Pflicht | minItems 1 |
tariff.idleTime.prices[].priceMinute | number | Pflicht | Price per minute (excl. tax) for this element. |
tariff.idleTime.prices[].conditions | object | These conditions describe if and when a TariffEnergyType or TariffTimeType applies during a transaction. When more than one restriction is set, they are to be treated as a logical AND. All need to be valid before this price is active. For reverse energy flow (discharging) negative values of energy, power and current are used. NOTE: _minXXX_ (where XXX = Kwh/A/Kw) must be read as "closest to zero", and _maxXXX_ as "furthest from zero". For example, a *charging* power range from 10 kW to 50 kWh is given by _minPower_ = 10000 and _maxPower_ = 50000, and a *discharging* power range from -10 kW to -50 kW is given by _minPower_ = -10 and _maxPower_ = -50. NOTE: _startTimeOfDay_ and _endTimeOfDay_ are in local time, because it is the time in the tariff as it is shown to the EV driver at the Charging Station. A Charging Station will convert this to the internal time zone that it uses (which is recommended to be UTC, see section Generic chapter 3.1) when performing cost calculation. | |
tariff.idleTime.prices[].conditions.startTimeOfDay | string | Start time of day in local time. + Format as per RFC 3339: time-hour ":" time-minute + Must be in 24h format with leading zeros. Hour/Minute separator: ":" Regex: ([0-1][0-9]\|2[0-3]):[0-5][0-9] | |
tariff.idleTime.prices[].conditions.endTimeOfDay | string | End time of day in local time. Same syntax as _startTimeOfDay_. + If end time < start time then the period wraps around to the next day. + To stop at end of the day use: 00:00. | |
tariff.idleTime.prices[].conditions.dayOfWeek | array<string> | minItems 1; maxItems 7; enum: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday Day(s) of the week this is tariff applies. | |
tariff.idleTime.prices[].conditions.validFromDate | string | Start date in local time, for example: 2015-12-24. Valid from this day (inclusive). + Format as per RFC 3339: full-date + Regex: ([12][0-9]{3})-(0[1-9]\|1[0-2])-(0[1-9]\|[12][0-9]\|3[01]) | |
tariff.idleTime.prices[].conditions.validToDate | string | End date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_. | |
tariff.idleTime.prices[].conditions.evseKind | string | enum: AC, DC Type of EVSE (AC, DC) this tariff applies to. | |
tariff.idleTime.prices[].conditions.minEnergy | number | Minimum consumed energy in Wh, for example 20000 Wh. Valid from this amount of energy (inclusive) being used. | |
tariff.idleTime.prices[].conditions.maxEnergy | number | Maximum consumed energy in Wh, for example 50000 Wh. Valid until this amount of energy (exclusive) being used. | |
tariff.idleTime.prices[].conditions.minCurrent | number | Sum of the minimum current (in Amperes) over all phases, for example 5 A. When the EV is charging with more than, or equal to, the defined amount of current, this price is/becomes active. If the charging current is or becomes lower, this price is not or no longer valid and becomes inactive. + This is NOT about the minimum current over the entire transaction. | |
tariff.idleTime.prices[].conditions.maxCurrent | number | Sum of the maximum current (in Amperes) over all phases, for example 20 A. When the EV is charging with less than the defined amount of current, this price becomes/is active. If the charging current is or becomes higher, this price is not or no longer valid and becomes inactive. This is NOT about the maximum current over the entire transaction. | |
tariff.idleTime.prices[].conditions.minPower | number | Minimum power in W, for example 5000 W. When the EV is charging with more than, or equal to, the defined amount of power, this price is/becomes active. If the charging power is or becomes lower, this price is not or no longer valid and becomes inactive. This is NOT about the minimum power over the entire transaction. | |
tariff.idleTime.prices[].conditions.maxPower | number | Maximum power in W, for example 20000 W. When the EV is charging with less than the defined amount of power, this price becomes/is active. If the charging power is or becomes higher, this price is not or no longer valid and becomes inactive. This is NOT about the maximum power over the entire transaction. | |
tariff.idleTime.prices[].conditions.minTime | integer | Minimum duration in seconds the transaction (charging & idle) MUST last (inclusive). When the duration of a transaction is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.idleTime.prices[].conditions.maxTime | integer | Maximum duration in seconds the transaction (charging & idle) MUST last (exclusive). When the duration of a transaction is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.idleTime.prices[].conditions.minChargingTime | integer | Minimum duration in seconds the charging MUST last (inclusive). When the duration of a charging is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.idleTime.prices[].conditions.maxChargingTime | integer | Maximum duration in seconds the charging MUST last (exclusive). When the duration of a charging is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.idleTime.prices[].conditions.minIdleTime | integer | Minimum duration in seconds the idle period (i.e. not charging) MUST last (inclusive). When the duration of the idle time is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.idleTime.prices[].conditions.maxIdleTime | integer | Maximum duration in seconds the idle period (i.e. not charging) MUST last (exclusive). When the duration of idle time is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.idleTime.taxRates | array<object> | minItems 1; maxItems 5 | |
tariff.idleTime.taxRates[].type | string | Pflicht | maxLength 20 Type of this tax, e.g. "Federal ", "State", for information on receipt. |
tariff.idleTime.taxRates[].tax | number | Pflicht | Tax percentage |
tariff.idleTime.taxRates[].stack | integer | minimum 0.0 Stack level for this type of tax. Default value, when absent, is 0. + _stack_ = 0: tax on net price; + _stack_ = 1: tax added on top of _stack_ 0; + _stack_ = 2: tax added on top of _stack_ 1, etc. | |
tariff.fixedFee | object | ||
tariff.fixedFee.prices | array<object> | Pflicht | minItems 1 |
tariff.fixedFee.prices[].conditions | object | These conditions describe if a FixedPrice applies at start of the transaction. When more than one restriction is set, they are to be treated as a logical AND. All need to be valid before this price is active. NOTE: _startTimeOfDay_ and _endTimeOfDay_ are in local time, because it is the time in the tariff as it is shown to the EV driver at the Charging Station. A Charging Station will convert this to the internal time zone that it uses (which is recommended to be UTC, see section Generic chapter 3.1) when performing cost calculation. | |
tariff.fixedFee.prices[].conditions.startTimeOfDay | string | Start time of day in local time. + Format as per RFC 3339: time-hour ":" time-minute + Must be in 24h format with leading zeros. Hour/Minute separator: ":" Regex: ([0-1][0-9]\|2[0-3]):[0-5][0-9] | |
tariff.fixedFee.prices[].conditions.endTimeOfDay | string | End time of day in local time. Same syntax as _startTimeOfDay_. + If end time < start time then the period wraps around to the next day. + To stop at end of the day use: 00:00. | |
tariff.fixedFee.prices[].conditions.dayOfWeek | array<string> | minItems 1; maxItems 7; enum: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday Day(s) of the week this is tariff applies. | |
tariff.fixedFee.prices[].conditions.validFromDate | string | Start date in local time, for example: 2015-12-24. Valid from this day (inclusive). + Format as per RFC 3339: full-date + Regex: ([12][0-9]{3})-(0[1-9]\|1[0-2])-(0[1-9]\|[12][0-9]\|3[01]) | |
tariff.fixedFee.prices[].conditions.validToDate | string | End date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_. | |
tariff.fixedFee.prices[].conditions.evseKind | string | enum: AC, DC Type of EVSE (AC, DC) this tariff applies to. | |
tariff.fixedFee.prices[].conditions.paymentBrand | string | maxLength 20 For which payment brand this (adhoc) tariff applies. Can be used to add a surcharge for certain payment brands. Based on value of _additionalIdToken_ from _idToken.additionalInfo.type_ = "PaymentBrand". | |
tariff.fixedFee.prices[].conditions.paymentRecognition | string | maxLength 20 Type of adhoc payment, e.g. CC, Debit. Based on value of _additionalIdToken_ from _idToken.additionalInfo.type_ = "PaymentRecognition". | |
tariff.fixedFee.prices[].priceFixed | number | Pflicht | Fixed price for this element e.g. a start fee. |
tariff.fixedFee.taxRates | array<object> | minItems 1; maxItems 5 | |
tariff.fixedFee.taxRates[].type | string | Pflicht | maxLength 20 Type of this tax, e.g. "Federal ", "State", for information on receipt. |
tariff.fixedFee.taxRates[].tax | number | Pflicht | Tax percentage |
tariff.fixedFee.taxRates[].stack | integer | minimum 0.0 Stack level for this type of tax. Default value, when absent, is 0. + _stack_ = 0: tax on net price; + _stack_ = 1: tax added on top of _stack_ 0; + _stack_ = 2: tax added on top of _stack_ 1, etc. | |
tariff.reservationTime | object | Price elements and tax for time | |
tariff.reservationTime.prices | array<object> | Pflicht | minItems 1 |
tariff.reservationTime.prices[].priceMinute | number | Pflicht | Price per minute (excl. tax) for this element. |
tariff.reservationTime.prices[].conditions | object | These conditions describe if and when a TariffEnergyType or TariffTimeType applies during a transaction. When more than one restriction is set, they are to be treated as a logical AND. All need to be valid before this price is active. For reverse energy flow (discharging) negative values of energy, power and current are used. NOTE: _minXXX_ (where XXX = Kwh/A/Kw) must be read as "closest to zero", and _maxXXX_ as "furthest from zero". For example, a *charging* power range from 10 kW to 50 kWh is given by _minPower_ = 10000 and _maxPower_ = 50000, and a *discharging* power range from -10 kW to -50 kW is given by _minPower_ = -10 and _maxPower_ = -50. NOTE: _startTimeOfDay_ and _endTimeOfDay_ are in local time, because it is the time in the tariff as it is shown to the EV driver at the Charging Station. A Charging Station will convert this to the internal time zone that it uses (which is recommended to be UTC, see section Generic chapter 3.1) when performing cost calculation. | |
tariff.reservationTime.prices[].conditions.startTimeOfDay | string | Start time of day in local time. + Format as per RFC 3339: time-hour ":" time-minute + Must be in 24h format with leading zeros. Hour/Minute separator: ":" Regex: ([0-1][0-9]\|2[0-3]):[0-5][0-9] | |
tariff.reservationTime.prices[].conditions.endTimeOfDay | string | End time of day in local time. Same syntax as _startTimeOfDay_. + If end time < start time then the period wraps around to the next day. + To stop at end of the day use: 00:00. | |
tariff.reservationTime.prices[].conditions.dayOfWeek | array<string> | minItems 1; maxItems 7; enum: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday Day(s) of the week this is tariff applies. | |
tariff.reservationTime.prices[].conditions.validFromDate | string | Start date in local time, for example: 2015-12-24. Valid from this day (inclusive). + Format as per RFC 3339: full-date + Regex: ([12][0-9]{3})-(0[1-9]\|1[0-2])-(0[1-9]\|[12][0-9]\|3[01]) | |
tariff.reservationTime.prices[].conditions.validToDate | string | End date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_. | |
tariff.reservationTime.prices[].conditions.evseKind | string | enum: AC, DC Type of EVSE (AC, DC) this tariff applies to. | |
tariff.reservationTime.prices[].conditions.minEnergy | number | Minimum consumed energy in Wh, for example 20000 Wh. Valid from this amount of energy (inclusive) being used. | |
tariff.reservationTime.prices[].conditions.maxEnergy | number | Maximum consumed energy in Wh, for example 50000 Wh. Valid until this amount of energy (exclusive) being used. | |
tariff.reservationTime.prices[].conditions.minCurrent | number | Sum of the minimum current (in Amperes) over all phases, for example 5 A. When the EV is charging with more than, or equal to, the defined amount of current, this price is/becomes active. If the charging current is or becomes lower, this price is not or no longer valid and becomes inactive. + This is NOT about the minimum current over the entire transaction. | |
tariff.reservationTime.prices[].conditions.maxCurrent | number | Sum of the maximum current (in Amperes) over all phases, for example 20 A. When the EV is charging with less than the defined amount of current, this price becomes/is active. If the charging current is or becomes higher, this price is not or no longer valid and becomes inactive. This is NOT about the maximum current over the entire transaction. | |
tariff.reservationTime.prices[].conditions.minPower | number | Minimum power in W, for example 5000 W. When the EV is charging with more than, or equal to, the defined amount of power, this price is/becomes active. If the charging power is or becomes lower, this price is not or no longer valid and becomes inactive. This is NOT about the minimum power over the entire transaction. | |
tariff.reservationTime.prices[].conditions.maxPower | number | Maximum power in W, for example 20000 W. When the EV is charging with less than the defined amount of power, this price becomes/is active. If the charging power is or becomes higher, this price is not or no longer valid and becomes inactive. This is NOT about the maximum power over the entire transaction. | |
tariff.reservationTime.prices[].conditions.minTime | integer | Minimum duration in seconds the transaction (charging & idle) MUST last (inclusive). When the duration of a transaction is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.reservationTime.prices[].conditions.maxTime | integer | Maximum duration in seconds the transaction (charging & idle) MUST last (exclusive). When the duration of a transaction is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.reservationTime.prices[].conditions.minChargingTime | integer | Minimum duration in seconds the charging MUST last (inclusive). When the duration of a charging is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.reservationTime.prices[].conditions.maxChargingTime | integer | Maximum duration in seconds the charging MUST last (exclusive). When the duration of a charging is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.reservationTime.prices[].conditions.minIdleTime | integer | Minimum duration in seconds the idle period (i.e. not charging) MUST last (inclusive). When the duration of the idle time is longer than the defined value, this price is or becomes active. Before that moment, this price is not yet active. | |
tariff.reservationTime.prices[].conditions.maxIdleTime | integer | Maximum duration in seconds the idle period (i.e. not charging) MUST last (exclusive). When the duration of idle time is shorter than the defined value, this price is or becomes active. After that moment, this price is no longer active. | |
tariff.reservationTime.taxRates | array<object> | minItems 1; maxItems 5 | |
tariff.reservationTime.taxRates[].type | string | Pflicht | maxLength 20 Type of this tax, e.g. "Federal ", "State", for information on receipt. |
tariff.reservationTime.taxRates[].tax | number | Pflicht | Tax percentage |
tariff.reservationTime.taxRates[].stack | integer | minimum 0.0 Stack level for this type of tax. Default value, when absent, is 0. + _stack_ = 0: tax on net price; + _stack_ = 1: tax added on top of _stack_ 0; + _stack_ = 2: tax added on top of _stack_ 1, etc. | |
tariff.reservationFixed | object | ||
tariff.reservationFixed.prices | array<object> | Pflicht | minItems 1 |
tariff.reservationFixed.prices[].conditions | object | These conditions describe if a FixedPrice applies at start of the transaction. When more than one restriction is set, they are to be treated as a logical AND. All need to be valid before this price is active. NOTE: _startTimeOfDay_ and _endTimeOfDay_ are in local time, because it is the time in the tariff as it is shown to the EV driver at the Charging Station. A Charging Station will convert this to the internal time zone that it uses (which is recommended to be UTC, see section Generic chapter 3.1) when performing cost calculation. | |
tariff.reservationFixed.prices[].conditions.startTimeOfDay | string | Start time of day in local time. + Format as per RFC 3339: time-hour ":" time-minute + Must be in 24h format with leading zeros. Hour/Minute separator: ":" Regex: ([0-1][0-9]\|2[0-3]):[0-5][0-9] | |
tariff.reservationFixed.prices[].conditions.endTimeOfDay | string | End time of day in local time. Same syntax as _startTimeOfDay_. + If end time < start time then the period wraps around to the next day. + To stop at end of the day use: 00:00. | |
tariff.reservationFixed.prices[].conditions.dayOfWeek | array<string> | minItems 1; maxItems 7; enum: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday Day(s) of the week this is tariff applies. | |
tariff.reservationFixed.prices[].conditions.validFromDate | string | Start date in local time, for example: 2015-12-24. Valid from this day (inclusive). + Format as per RFC 3339: full-date + Regex: ([12][0-9]{3})-(0[1-9]\|1[0-2])-(0[1-9]\|[12][0-9]\|3[01]) | |
tariff.reservationFixed.prices[].conditions.validToDate | string | End date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_. | |
tariff.reservationFixed.prices[].conditions.evseKind | string | enum: AC, DC Type of EVSE (AC, DC) this tariff applies to. | |
tariff.reservationFixed.prices[].conditions.paymentBrand | string | maxLength 20 For which payment brand this (adhoc) tariff applies. Can be used to add a surcharge for certain payment brands. Based on value of _additionalIdToken_ from _idToken.additionalInfo.type_ = "PaymentBrand". | |
tariff.reservationFixed.prices[].conditions.paymentRecognition | string | maxLength 20 Type of adhoc payment, e.g. CC, Debit. Based on value of _additionalIdToken_ from _idToken.additionalInfo.type_ = "PaymentRecognition". | |
tariff.reservationFixed.prices[].priceFixed | number | Pflicht | Fixed price for this element e.g. a start fee. |
tariff.reservationFixed.taxRates | array<object> | minItems 1; maxItems 5 | |
tariff.reservationFixed.taxRates[].type | string | Pflicht | maxLength 20 Type of this tax, e.g. "Federal ", "State", for information on receipt. |
tariff.reservationFixed.taxRates[].tax | number | Pflicht | Tax percentage |
tariff.reservationFixed.taxRates[].stack | integer | minimum 0.0 Stack level for this type of tax. Default value, when absent, is 0. + _stack_ = 0: tax on net price; + _stack_ = 1: tax added on top of _stack_ 0; + _stack_ = 2: tax added on top of _stack_ 1, etc. | |
tariff.minCost | object | Price with and without tax. At least one of _exclTax_, _inclTax_ must be present. | |
tariff.minCost.exclTax | number | Price/cost excluding tax. Can be absent if _inclTax_ is present. | |
tariff.minCost.inclTax | number | Price/cost including tax. Can be absent if _exclTax_ is present. | |
tariff.minCost.taxRates | array<object> | minItems 1; maxItems 5 | |
tariff.minCost.taxRates[].type | string | Pflicht | maxLength 20 Type of this tax, e.g. "Federal ", "State", for information on receipt. |
tariff.minCost.taxRates[].tax | number | Pflicht | Tax percentage |
tariff.minCost.taxRates[].stack | integer | minimum 0.0 Stack level for this type of tax. Default value, when absent, is 0. + _stack_ = 0: tax on net price; + _stack_ = 1: tax added on top of _stack_ 0; + _stack_ = 2: tax added on top of _stack_ 1, etc. | |
tariff.maxCost | object | Price with and without tax. At least one of _exclTax_, _inclTax_ must be present. | |
tariff.maxCost.exclTax | number | Price/cost excluding tax. Can be absent if _inclTax_ is present. | |
tariff.maxCost.inclTax | number | Price/cost including tax. Can be absent if _exclTax_ is present. | |
tariff.maxCost.taxRates | array<object> | minItems 1; maxItems 5 | |
tariff.maxCost.taxRates[].type | string | Pflicht | maxLength 20 Type of this tax, e.g. "Federal ", "State", for information on receipt. |
tariff.maxCost.taxRates[].tax | number | Pflicht | Tax percentage |
tariff.maxCost.taxRates[].stack | integer | minimum 0.0 Stack level for this type of tax. Default value, when absent, is 0. + _stack_ = 0: tax on net price; + _stack_ = 1: tax added on top of _stack_ 0; + _stack_ = 2: tax added on top of _stack_ 1, etc. |
JSON-Schema (Request)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:SetDefaultTariffRequest",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"DayOfWeekEnumType": {
"javaType": "DayOfWeekEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
]
},
"EvseKindEnumType": {
"description": "Type of EVSE (AC, DC) this tariff applies to.\r\n",
"javaType": "EvseKindEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"AC",
"DC"
]
},
"MessageFormatEnumType": {
"description": "Format of the message.\r\n",
"javaType": "MessageFormatEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"ASCII",
"HTML",
"URI",
"UTF8",
"QRCODE"
]
},
"MessageContentType": {
"description": "Contains message details, for a message to be displayed on a Charging Station.\r\n\r\n",
"javaType": "MessageContent",
"type": "object",
"additionalProperties": false,
"properties": {
"format": {
"$ref": "#/definitions/MessageFormatEnumType"
},
"language": {
"description": "Message language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
"type": "string",
"maxLength": 8
},
"content": {
"description": "*(2.1)* Required. Message contents. +\r\nMaximum length supported by Charging Station is given in OCPPCommCtrlr.FieldLength[\"MessageContentType.content\"].\r\n Maximum length defaults to 1024.\r\n\r\n",
"type": "string",
"maxLength": 1024
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"format",
"content"
]
},
"PriceType": {
"description": "Price with and without tax. At least one of _exclTax_, _inclTax_ must be present.\r\n",
"javaType": "Price",
"type": "object",
"additionalProperties": false,
"properties": {
"exclTax": {
"description": "Price/cost excluding tax. Can be absent if _inclTax_ is present.\r\n",
"type": "number"
},
"inclTax": {
"description": "Price/cost including tax. Can be absent if _exclTax_ is present.\r\n",
"type": "number"
},
"taxRates": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/TaxRateType"
},
"minItems": 1,
"maxItems": 5
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
}
},
"TariffConditionsFixedType": {
"description": "These conditions describe if a FixedPrice applies at start of the transaction.\r\n\r\nWhen more than one restriction is set, they are to be treated as a logical AND. All need to be valid before this price is active.\r\n\r\nNOTE: _startTimeOfDay_ and _endTimeOfDay_ are in local time, because it is the time in the tariff as it is shown to the EV driver at the Charging Station.\r\nA Charging Station will convert this to the internal time zone that it uses (which is recommended to be UTC, see section Generic chapter 3.1) when performing cost calculation.\r\n\r\n",
"javaType": "TariffConditionsFixed",
"type": "object",
"additionalProperties": false,
"properties": {
"startTimeOfDay": {
"description": "Start time of day in local time. +\r\nFormat as per RFC 3339: time-hour \":\" time-minute +\r\nMust be in 24h format with leading zeros. Hour/Minute separator: \":\"\r\nRegex: ([0-1][0-9]\\|2[0-3]):[0-5][0-9]\r\n",
"type": "string"
},
"endTimeOfDay": {
"description": "End time of day in local time. Same syntax as _startTimeOfDay_. +\r\n If end time < start time then the period wraps around to the next day. +\r\n To stop at end of the day use: 00:00.\r\n",
"type": "string"
},
"dayOfWeek": {
"description": "Day(s) of the week this is tariff applies.\r\n",
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/DayOfWeekEnumType"
},
"minItems": 1,
"maxItems": 7
},
"validFromDate": {
"description": "Start date in local time, for example: 2015-12-24.\r\nValid from this day (inclusive). +\r\nFormat as per RFC 3339: full-date + \r\n\r\nRegex: ([12][0-9]{3})-(0[1-9]\\|1[0-2])-(0[1-9]\\|[12][0-9]\\|3[01])\r\n",
"type": "string"
},
"validToDate": {
"description": "End date in local time, for example: 2015-12-27.\r\n Valid until this day (exclusive). Same syntax as _validFromDate_.\r\n",
"type": "string"
},
"evseKind": {
"$ref": "#/definitions/EvseKindEnumType"
},
"paymentBrand": {
"description": "For which payment brand this (adhoc) tariff applies. Can be used to add a surcharge for certain payment brands.\r\n Based on value of _additionalIdToken_ from _idToken.additionalInfo.type_ = \"PaymentBrand\".\r\n",
"type": "string",
"maxLength": 20
},
"paymentRecognition": {
"description": "Type of adhoc payment, e.g. CC, Debit.\r\n Based on value of _additionalIdToken_ from _idToken.additionalInfo.type_ = \"PaymentRecognition\".\r\n",
"type": "string",
"maxLength": 20
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
}
},
"TariffConditionsType": {
"description": "These conditions describe if and when a TariffEnergyType or TariffTimeType applies during a transaction.\r\n\r\nWhen more than one restriction is set, they are to be treated as a logical AND. All need to be valid before this price is active.\r\n\r\nFor reverse energy flow (discharging) negative values of energy, power and current are used.\r\n\r\nNOTE: _minXXX_ (where XXX = Kwh/A/Kw) must be read as \"closest to zero\", and _maxXXX_ as \"furthest from zero\". For example, a *charging* power range from 10 kW to 50 kWh is given by _minPower_ = 10000 and _maxPower_ = 50000, and a *discharging* power range from -10 kW to -50 kW is given by _minPower_ = -10 and _maxPower_ = -50.\r\n\r\nNOTE: _startTimeOfDay_ and _endTimeOfDay_ are in local time, because it is the time in the tariff as it is shown to the EV driver at the Charging Station.\r\nA Charging Station will convert this to the internal time zone that it uses (which is recommended to be UTC, see section Generic chapter 3.1) when performing cost calculation.\r\n\r\n",
"javaType": "TariffConditions",
"type": "object",
"additionalProperties": false,
"properties": {
"startTimeOfDay": {
"description": "Start time of day in local time. +\r\nFormat as per RFC 3339: time-hour \":\" time-minute +\r\nMust be in 24h format with leading zeros. Hour/Minute separator: \":\"\r\nRegex: ([0-1][0-9]\\|2[0-3]):[0-5][0-9]\r\n",
"type": "string"
},
"endTimeOfDay": {
"description": "End time of day in local time. Same syntax as _startTimeOfDay_. +\r\n If end time < start time then the period wraps around to the next day. +\r\n To stop at end of the day use: 00:00.\r\n",
"type": "string"
},
"dayOfWeek": {
"description": "Day(s) of the week this is tariff applies.\r\n",
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/DayOfWeekEnumType"
},
"minItems": 1,
"maxItems": 7
},
"validFromDate": {
"description": "Start date in local time, for example: 2015-12-24.\r\nValid from this day (inclusive). +\r\nFormat as per RFC 3339: full-date + \r\n\r\nRegex: ([12][0-9]{3})-(0[1-9]\\|1[0-2])-(0[1-9]\\|[12][0-9]\\|3[01])\r\n",
"type": "string"
},
"validToDate": {
"description": "End date in local time, for example: 2015-12-27.\r\n Valid until this day (exclusive). Same syntax as _validFromDate_.\r\n",
"type": "string"
},
"evseKind": {
"$ref": "#/definitions/EvseKindEnumType"
},
"minEnergy": {
"description": "Minimum consumed energy in Wh, for example 20000 Wh.\r\n Valid from this amount of energy (inclusive) being used.\r\n",
"type": "number"
},
"maxEnergy": {
"description": "Maximum consumed energy in Wh, for example 50000 Wh.\r\n Valid until this amount of energy (exclusive) being used.\r\n",
"type": "number"
},
"minCurrent": {
"description": "Sum of the minimum current (in Amperes) over all phases, for example 5 A.\r\n When the EV is charging with more than, or equal to, the defined amount of current, this price is/becomes active. If the charging current is or becomes lower, this price is not or no longer valid and becomes inactive. +\r\n This is NOT about the minimum current over the entire transaction.\r\n",
"type": "number"
},
"maxCurrent": {
"description": "Sum of the maximum current (in Amperes) over all phases, for example 20 A.\r\n When the EV is charging with less than the defined amount of current, this price becomes/is active. If the charging current is or becomes higher, this price is not or no longer valid and becomes inactive.\r\n This is NOT about the maximum current over the entire transaction.\r\n",
"type": "number"
},
"minPower": {
"description": "Minimum power in W, for example 5000 W.\r\n When the EV is charging with more than, or equal to, the defined amount of power, this price is/becomes active.\r\n If the charging power is or becomes lower, this price is not or no longer valid and becomes inactive.\r\n This is NOT about the minimum power over the entire transaction.\r\n",
"type": "number"
},
"maxPower": {
"description": "Maximum power in W, for example 20000 W.\r\n When the EV is charging with less than the defined amount of power, this price becomes/is active.\r\n If the charging power is or becomes higher, this price is not or no longer valid and becomes inactive.\r\n This is NOT about the maximum power over the entire transaction.\r\n",
"type": "number"
},
"minTime": {
"description": "Minimum duration in seconds the transaction (charging & idle) MUST last (inclusive).\r\n When the duration of a transaction is longer than the defined value, this price is or becomes active.\r\n Before that moment, this price is not yet active.\r\n",
"type": "integer"
},
"maxTime": {
"description": "Maximum duration in seconds the transaction (charging & idle) MUST last (exclusive).\r\n When the duration of a transaction is shorter than the defined value, this price is or becomes active.\r\n After that moment, this price is no longer active.\r\n",
"type": "integer"
},
"minChargingTime": {
"description": "Minimum duration in seconds the charging MUST last (inclusive).\r\n When the duration of a charging is longer than the defined value, this price is or becomes active.\r\n Before that moment, this price is not yet active.\r\n",
"type": "integer"
},
"maxChargingTime": {
"description": "Maximum duration in seconds the charging MUST last (exclusive).\r\n When the duration of a charging is shorter than the defined value, this price is or becomes active.\r\n After that moment, this price is no longer active.\r\n",
"type": "integer"
},
"minIdleTime": {
"description": "Minimum duration in seconds the idle period (i.e. not charging) MUST last (inclusive).\r\n When the duration of the idle time is longer than the defined value, this price is or becomes active.\r\n Before that moment, this price is not yet active.\r\n",
"type": "integer"
},
"maxIdleTime": {
"description": "Maximum duration in seconds the idle period (i.e. not charging) MUST last (exclusive).\r\n When the duration of idle time is shorter than the defined value, this price is or becomes active.\r\n After that moment, this price is no longer active.\r\n",
"type": "integer"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
}
},
"TariffEnergyPriceType": {
"description": "Tariff with optional conditions for an energy price.\r\n",
"javaType": "TariffEnergyPrice",
"type": "object",
"additionalProperties": false,
"properties": {
"priceKwh": {
"description": "Price per kWh (excl. tax) for this element.\r\n",
"type": "number"
},
"conditions": {
"$ref": "#/definitions/TariffConditionsType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"priceKwh"
]
},
"TariffEnergyType": {
"description": "Price elements and tax for energy\r\n",
"javaType": "TariffEnergy",
"type": "object",
"additionalProperties": false,
"properties": {
"prices": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/TariffEnergyPriceType"
},
"minItems": 1
},
"taxRates": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/TaxRateType"
},
"minItems": 1,
"maxItems": 5
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"prices"
]
},
"TariffFixedPriceType": {
"description": "Tariff with optional conditions for a fixed price.\r\n",
"javaType": "TariffFixedPrice",
"type": "object",
"additionalProperties": false,
"properties": {
"conditions": {
"$ref": "#/definitions/TariffConditionsFixedType"
},
"priceFixed": {
"description": "Fixed price for this element e.g. a start fee.\r\n",
"type": "number"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"priceFixed"
]
},
"TariffFixedType": {
"javaType": "TariffFixed",
"type": "object",
"additionalProperties": false,
"properties": {
"prices": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/TariffFixedPriceType"
},
"minItems": 1
},
"taxRates": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/TaxRateType"
},
"minItems": 1,
"maxItems": 5
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"prices"
]
},
"TariffTimePriceType": {
"description": "Tariff with optional conditions for a time duration price.\r\n",
"javaType": "TariffTimePrice",
"type": "object",
"additionalProperties": false,
"properties": {
"priceMinute": {
"description": "Price per minute (excl. tax) for this element.\r\n",
"type": "number"
},
"conditions": {
"$ref": "#/definitions/TariffConditionsType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"priceMinute"
]
},
"TariffTimeType": {
"description": "Price elements and tax for time\r\n\r\n",
"javaType": "TariffTime",
"type": "object",
"additionalProperties": false,
"properties": {
"prices": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/TariffTimePriceType"
},
"minItems": 1
},
"taxRates": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/TaxRateType"
},
"minItems": 1,
"maxItems": 5
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"prices"
]
},
"TariffType": {
"description": "A tariff is described by fields with prices for:\r\nenergy,\r\ncharging time,\r\nidle time,\r\nfixed fee,\r\nreservation time,\r\nreservation fixed fee. +\r\nEach of these fields may have (optional) conditions that specify when a price is applicable. +\r\nThe _description_ contains a human-readable explanation of the tariff to be shown to the user. +\r\nThe other fields are parameters that define the tariff. These are used by the charging station to calculate the price.\r\n",
"javaType": "Tariff",
"type": "object",
"additionalProperties": false,
"properties": {
"tariffId": {
"description": "Unique id of tariff\r\n",
"type": "string",
"maxLength": 60
},
"description": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/MessageContentType"
},
"minItems": 1,
"maxItems": 10
},
"currency": {
"description": "Currency code according to ISO 4217\r\n",
"type": "string",
"maxLength": 3
},
"energy": {
"$ref": "#/definitions/TariffEnergyType"
},
"validFrom": {
"description": "Time when this tariff becomes active. When absent, it is immediately active.\r\n",
"type": "string",
"format": "date-time"
},
"chargingTime": {
"$ref": "#/definitions/TariffTimeType"
},
"idleTime": {
"$ref": "#/definitions/TariffTimeType"
},
"fixedFee": {
"$ref": "#/definitions/TariffFixedType"
},
"reservationTime": {
"$ref": "#/definitions/TariffTimeType"
},
"reservationFixed": {
"$ref": "#/definitions/TariffFixedType"
},
"minCost": {
"$ref": "#/definitions/PriceType"
},
"maxCost": {
"$ref": "#/definitions/PriceType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"tariffId",
"currency"
]
},
"TaxRateType": {
"description": "Tax percentage\r\n",
"javaType": "TaxRate",
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"description": "Type of this tax, e.g. \"Federal \", \"State\", for information on receipt.\r\n",
"type": "string",
"maxLength": 20
},
"tax": {
"description": "Tax percentage\r\n",
"type": "number"
},
"stack": {
"description": "Stack level for this type of tax. Default value, when absent, is 0. +\r\n_stack_ = 0: tax on net price; +\r\n_stack_ = 1: tax added on top of _stack_ 0; +\r\n_stack_ = 2: tax added on top of _stack_ 1, etc. \r\n",
"type": "integer",
"minimum": 0.0
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"type",
"tax"
]
},
"CustomDataType": {
"description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
"javaType": "CustomData",
"type": "object",
"properties": {
"vendorId": {
"type": "string",
"maxLength": 255
}
},
"required": [
"vendorId"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"evseId": {
"description": "EVSE that tariff applies to. When _evseId_ = 0, then tarriff applies to all EVSEs.\r\n\r\n",
"type": "integer",
"minimum": 0.0
},
"tariff": {
"$ref": "#/definitions/TariffType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"evseId",
"tariff"
]
}Response
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
status | string | Pflicht | enum: Accepted, Rejected, TooManyElements, ConditionNotSupported, DuplicateTariffId |
statusInfo | object | Element providing more information about the status. | |
statusInfo.reasonCode | string | Pflicht | maxLength 20 A predefined code for the reason why the status is returned in this response. The string is case-insensitive. |
statusInfo.additionalInfo | string | maxLength 1024 Additional text to provide detailed information. |
JSON-Schema (Response)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:SetDefaultTariffResponse",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"TariffSetStatusEnumType": {
"javaType": "TariffSetStatusEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected",
"TooManyElements",
"ConditionNotSupported",
"DuplicateTariffId"
]
},
"StatusInfoType": {
"description": "Element providing more information about the status.\r\n",
"javaType": "StatusInfo",
"type": "object",
"additionalProperties": false,
"properties": {
"reasonCode": {
"description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
"type": "string",
"maxLength": 20
},
"additionalInfo": {
"description": "Additional text to provide detailed information.\r\n",
"type": "string",
"maxLength": 1024
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"reasonCode"
]
},
"CustomDataType": {
"description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
"javaType": "CustomData",
"type": "object",
"properties": {
"vendorId": {
"type": "string",
"maxLength": 255
}
},
"required": [
"vendorId"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/definitions/TariffSetStatusEnumType"
},
"statusInfo": {
"$ref": "#/definitions/StatusInfoType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"status"
]
}Quelle: Open Charge Alliance, OCPP 2.1 – JSON-Schemas, unverändert wiedergegeben. © Open Charge Alliance. Lizenz: CC BY-ND 4.0. Die vollständige Spezifikation gibt es bei der Open Charge Alliance. ocpp-sim ist nicht mit der OCA verbunden.