Create a tariff
Creates a tariff for the OCPI party in the body. Assign it to connectors with POST /cpo/tariffs/{tariff_id}/assign so it prices new sessions.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
tariff_id
currency
country_code
party_id
elements
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:
start_date_time
end_date_time
energy_mix
ocpi_version
OCPI version string stored on the tariff row.
Allowed values:
Response
The created object.
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
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
502
Bad Gateway Error
504
Gateway Timeout Error