Update a tariff
Changes only the fields sent; currency and elements cannot be cleared. Sessions already started keep their price. Partner tariffs are read-only (409).
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
tariff_id
OCPI tariff id.
Headers
If-Match
Optional. The last_updated value you read; the write is refused with 412 if the object changed since.
Request
This endpoint expects an object.
currency
type
OCPI TariffType stored on ocpp.ocpp_tariffs.type.
Allowed values:
tariff_alt_text
tariff_alt_url
min_price
max_price
tax_included
OCPI tax flag stored on ocpp.ocpp_tariffs.tax_included.
Allowed values:
elements
start_date_time
end_date_time
energy_mix
ocpi_version
OCPI version string stored on the tariff row.
Allowed values:
expected_revision
Response
The object after the update.
id
organization_id
tariff_id
country_code
party_id
currency
elements
role
origin
ocpi_version
last_updated
revision
created_at
updated_at
type
tariff_alt_text
tariff_alt_url
min_price
max_price
tax_included
start_date_time
end_date_time
energy_mix
ocpp_version
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
409
Conflict Error
412
Precondition Failed Error
422
Unprocessable Entity Error
429
Too Many Requests Error
502
Bad Gateway Error
504
Gateway Timeout Error