Docs › OCPP 2.1 › ChangeTransactionTariff

ChangeTransactionTariff OCPP 2.1

Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.

Request

FeldTypEinschränkungen / Beschreibung
tariffobjectPflichtA 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.tariffIdstringPflichtmaxLength 60
Unique id of tariff
tariff.descriptionarray<object>minItems 1; maxItems 10
tariff.description[].formatstringPflichtenum: ASCII, HTML, URI, UTF8, QRCODE
Format of the message.
tariff.description[].languagestringmaxLength 8
Message language identifier. Contains a language code as defined in &lt;&lt;ref-RFC5646,[RFC5646]&gt;&gt;.
tariff.description[].contentstringPflichtmaxLength 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.currencystringPflichtmaxLength 3
Currency code according to ISO 4217
tariff.energyobjectPrice elements and tax for energy
tariff.energy.pricesarray<object>PflichtminItems 1
tariff.energy.prices[].priceKwhnumberPflichtPrice per kWh (excl. tax) for this element.
tariff.energy.prices[].conditionsobjectThese 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.startTimeOfDaystringStart 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.endTimeOfDaystringEnd time of day in local time. Same syntax as _startTimeOfDay_. + If end time &lt; 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.dayOfWeekarray<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.validFromDatestringStart 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.validToDatestringEnd date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_.
tariff.energy.prices[].conditions.evseKindstringenum: AC, DC
Type of EVSE (AC, DC) this tariff applies to.
tariff.energy.prices[].conditions.minEnergynumberMinimum consumed energy in Wh, for example 20000 Wh. Valid from this amount of energy (inclusive) being used.
tariff.energy.prices[].conditions.maxEnergynumberMaximum consumed energy in Wh, for example 50000 Wh. Valid until this amount of energy (exclusive) being used.
tariff.energy.prices[].conditions.minCurrentnumberSum 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.maxCurrentnumberSum 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.minPowernumberMinimum 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.maxPowernumberMaximum 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.minTimeintegerMinimum duration in seconds the transaction (charging &amp; 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.maxTimeintegerMaximum duration in seconds the transaction (charging &amp; 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.minChargingTimeintegerMinimum 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.maxChargingTimeintegerMaximum 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.minIdleTimeintegerMinimum 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.maxIdleTimeintegerMaximum 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.taxRatesarray<object>minItems 1; maxItems 5
tariff.energy.taxRates[].typestringPflichtmaxLength 20
Type of this tax, e.g. "Federal ", "State", for information on receipt.
tariff.energy.taxRates[].taxnumberPflichtTax percentage
tariff.energy.taxRates[].stackintegerminimum 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.validFromstringformat date-time
Time when this tariff becomes active. When absent, it is immediately active.
tariff.chargingTimeobjectPrice elements and tax for time
tariff.chargingTime.pricesarray<object>PflichtminItems 1
tariff.chargingTime.prices[].priceMinutenumberPflichtPrice per minute (excl. tax) for this element.
tariff.chargingTime.prices[].conditionsobjectThese 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.startTimeOfDaystringStart 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.endTimeOfDaystringEnd time of day in local time. Same syntax as _startTimeOfDay_. + If end time &lt; 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.dayOfWeekarray<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.validFromDatestringStart 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.validToDatestringEnd date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_.
tariff.chargingTime.prices[].conditions.evseKindstringenum: AC, DC
Type of EVSE (AC, DC) this tariff applies to.
tariff.chargingTime.prices[].conditions.minEnergynumberMinimum consumed energy in Wh, for example 20000 Wh. Valid from this amount of energy (inclusive) being used.
tariff.chargingTime.prices[].conditions.maxEnergynumberMaximum consumed energy in Wh, for example 50000 Wh. Valid until this amount of energy (exclusive) being used.
tariff.chargingTime.prices[].conditions.minCurrentnumberSum 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.maxCurrentnumberSum 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.minPowernumberMinimum 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.maxPowernumberMaximum 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.minTimeintegerMinimum duration in seconds the transaction (charging &amp; 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.maxTimeintegerMaximum duration in seconds the transaction (charging &amp; 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.minChargingTimeintegerMinimum 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.maxChargingTimeintegerMaximum 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.minIdleTimeintegerMinimum 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.maxIdleTimeintegerMaximum 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.taxRatesarray<object>minItems 1; maxItems 5
tariff.chargingTime.taxRates[].typestringPflichtmaxLength 20
Type of this tax, e.g. "Federal ", "State", for information on receipt.
tariff.chargingTime.taxRates[].taxnumberPflichtTax percentage
tariff.chargingTime.taxRates[].stackintegerminimum 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.idleTimeobjectPrice elements and tax for time
tariff.idleTime.pricesarray<object>PflichtminItems 1
tariff.idleTime.prices[].priceMinutenumberPflichtPrice per minute (excl. tax) for this element.
tariff.idleTime.prices[].conditionsobjectThese 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.startTimeOfDaystringStart 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.endTimeOfDaystringEnd time of day in local time. Same syntax as _startTimeOfDay_. + If end time &lt; 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.dayOfWeekarray<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.validFromDatestringStart 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.validToDatestringEnd date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_.
tariff.idleTime.prices[].conditions.evseKindstringenum: AC, DC
Type of EVSE (AC, DC) this tariff applies to.
tariff.idleTime.prices[].conditions.minEnergynumberMinimum consumed energy in Wh, for example 20000 Wh. Valid from this amount of energy (inclusive) being used.
tariff.idleTime.prices[].conditions.maxEnergynumberMaximum consumed energy in Wh, for example 50000 Wh. Valid until this amount of energy (exclusive) being used.
tariff.idleTime.prices[].conditions.minCurrentnumberSum 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.maxCurrentnumberSum 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.minPowernumberMinimum 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.maxPowernumberMaximum 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.minTimeintegerMinimum duration in seconds the transaction (charging &amp; 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.maxTimeintegerMaximum duration in seconds the transaction (charging &amp; 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.minChargingTimeintegerMinimum 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.maxChargingTimeintegerMaximum 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.minIdleTimeintegerMinimum 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.maxIdleTimeintegerMaximum 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.taxRatesarray<object>minItems 1; maxItems 5
tariff.idleTime.taxRates[].typestringPflichtmaxLength 20
Type of this tax, e.g. "Federal ", "State", for information on receipt.
tariff.idleTime.taxRates[].taxnumberPflichtTax percentage
tariff.idleTime.taxRates[].stackintegerminimum 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.fixedFeeobject
tariff.fixedFee.pricesarray<object>PflichtminItems 1
tariff.fixedFee.prices[].conditionsobjectThese 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.startTimeOfDaystringStart 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.endTimeOfDaystringEnd time of day in local time. Same syntax as _startTimeOfDay_. + If end time &lt; 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.dayOfWeekarray<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.validFromDatestringStart 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.validToDatestringEnd date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_.
tariff.fixedFee.prices[].conditions.evseKindstringenum: AC, DC
Type of EVSE (AC, DC) this tariff applies to.
tariff.fixedFee.prices[].conditions.paymentBrandstringmaxLength 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.paymentRecognitionstringmaxLength 20
Type of adhoc payment, e.g. CC, Debit. Based on value of _additionalIdToken_ from _idToken.additionalInfo.type_ = "PaymentRecognition".
tariff.fixedFee.prices[].priceFixednumberPflichtFixed price for this element e.g. a start fee.
tariff.fixedFee.taxRatesarray<object>minItems 1; maxItems 5
tariff.fixedFee.taxRates[].typestringPflichtmaxLength 20
Type of this tax, e.g. "Federal ", "State", for information on receipt.
tariff.fixedFee.taxRates[].taxnumberPflichtTax percentage
tariff.fixedFee.taxRates[].stackintegerminimum 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.reservationTimeobjectPrice elements and tax for time
tariff.reservationTime.pricesarray<object>PflichtminItems 1
tariff.reservationTime.prices[].priceMinutenumberPflichtPrice per minute (excl. tax) for this element.
tariff.reservationTime.prices[].conditionsobjectThese 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.startTimeOfDaystringStart 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.endTimeOfDaystringEnd time of day in local time. Same syntax as _startTimeOfDay_. + If end time &lt; 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.dayOfWeekarray<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.validFromDatestringStart 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.validToDatestringEnd date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_.
tariff.reservationTime.prices[].conditions.evseKindstringenum: AC, DC
Type of EVSE (AC, DC) this tariff applies to.
tariff.reservationTime.prices[].conditions.minEnergynumberMinimum consumed energy in Wh, for example 20000 Wh. Valid from this amount of energy (inclusive) being used.
tariff.reservationTime.prices[].conditions.maxEnergynumberMaximum consumed energy in Wh, for example 50000 Wh. Valid until this amount of energy (exclusive) being used.
tariff.reservationTime.prices[].conditions.minCurrentnumberSum 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.maxCurrentnumberSum 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.minPowernumberMinimum 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.maxPowernumberMaximum 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.minTimeintegerMinimum duration in seconds the transaction (charging &amp; 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.maxTimeintegerMaximum duration in seconds the transaction (charging &amp; 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.minChargingTimeintegerMinimum 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.maxChargingTimeintegerMaximum 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.minIdleTimeintegerMinimum 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.maxIdleTimeintegerMaximum 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.taxRatesarray<object>minItems 1; maxItems 5
tariff.reservationTime.taxRates[].typestringPflichtmaxLength 20
Type of this tax, e.g. "Federal ", "State", for information on receipt.
tariff.reservationTime.taxRates[].taxnumberPflichtTax percentage
tariff.reservationTime.taxRates[].stackintegerminimum 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.reservationFixedobject
tariff.reservationFixed.pricesarray<object>PflichtminItems 1
tariff.reservationFixed.prices[].conditionsobjectThese 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.startTimeOfDaystringStart 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.endTimeOfDaystringEnd time of day in local time. Same syntax as _startTimeOfDay_. + If end time &lt; 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.dayOfWeekarray<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.validFromDatestringStart 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.validToDatestringEnd date in local time, for example: 2015-12-27. Valid until this day (exclusive). Same syntax as _validFromDate_.
tariff.reservationFixed.prices[].conditions.evseKindstringenum: AC, DC
Type of EVSE (AC, DC) this tariff applies to.
tariff.reservationFixed.prices[].conditions.paymentBrandstringmaxLength 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.paymentRecognitionstringmaxLength 20
Type of adhoc payment, e.g. CC, Debit. Based on value of _additionalIdToken_ from _idToken.additionalInfo.type_ = "PaymentRecognition".
tariff.reservationFixed.prices[].priceFixednumberPflichtFixed price for this element e.g. a start fee.
tariff.reservationFixed.taxRatesarray<object>minItems 1; maxItems 5
tariff.reservationFixed.taxRates[].typestringPflichtmaxLength 20
Type of this tax, e.g. "Federal ", "State", for information on receipt.
tariff.reservationFixed.taxRates[].taxnumberPflichtTax percentage
tariff.reservationFixed.taxRates[].stackintegerminimum 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.minCostobjectPrice with and without tax. At least one of _exclTax_, _inclTax_ must be present.
tariff.minCost.exclTaxnumberPrice/cost excluding tax. Can be absent if _inclTax_ is present.
tariff.minCost.inclTaxnumberPrice/cost including tax. Can be absent if _exclTax_ is present.
tariff.minCost.taxRatesarray<object>minItems 1; maxItems 5
tariff.minCost.taxRates[].typestringPflichtmaxLength 20
Type of this tax, e.g. "Federal ", "State", for information on receipt.
tariff.minCost.taxRates[].taxnumberPflichtTax percentage
tariff.minCost.taxRates[].stackintegerminimum 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.maxCostobjectPrice with and without tax. At least one of _exclTax_, _inclTax_ must be present.
tariff.maxCost.exclTaxnumberPrice/cost excluding tax. Can be absent if _inclTax_ is present.
tariff.maxCost.inclTaxnumberPrice/cost including tax. Can be absent if _exclTax_ is present.
tariff.maxCost.taxRatesarray<object>minItems 1; maxItems 5
tariff.maxCost.taxRates[].typestringPflichtmaxLength 20
Type of this tax, e.g. "Federal ", "State", for information on receipt.
tariff.maxCost.taxRates[].taxnumberPflichtTax percentage
tariff.maxCost.taxRates[].stackintegerminimum 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.
transactionIdstringPflichtmaxLength 36
Transaction id for new tariff.
JSON-Schema (Request)
{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "urn:OCPP:Cp:2:2025:1:ChangeTransactionTariffRequest",
  "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 &lt;&lt;ref-RFC5646,[RFC5646]&gt;&gt;.\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 &lt; 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 &lt; 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 &amp; 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 &amp; 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": {
    "tariff": {
      "$ref": "#/definitions/TariffType"
    },
    "transactionId": {
      "description": "Transaction id for new tariff.\r\n",
      "type": "string",
      "maxLength": 36
    },
    "customData": {
      "$ref": "#/definitions/CustomDataType"
    }
  },
  "required": [
    "transactionId",
    "tariff"
  ]
}

Response

FeldTypEinschränkungen / Beschreibung
statusstringPflichtenum: Accepted, Rejected, TooManyElements, ConditionNotSupported, TxNotFound, NoCurrencyChange
Status of the operation
statusInfoobjectElement providing more information about the status.
statusInfo.reasonCodestringPflichtmaxLength 20
A predefined code for the reason why the status is returned in this response. The string is case-insensitive.
statusInfo.additionalInfostringmaxLength 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:ChangeTransactionTariffResponse",
  "comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
  "definitions": {
    "TariffChangeStatusEnumType": {
      "description": "Status of the operation\r\n",
      "javaType": "TariffChangeStatusEnum",
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "Accepted",
        "Rejected",
        "TooManyElements",
        "ConditionNotSupported",
        "TxNotFound",
        "NoCurrencyChange"
      ]
    },
    "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/TariffChangeStatusEnumType"
    },
    "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.