Set currency
PUT
/config/currency
const url = 'https://demo.evcc.io/api/config/currency';const options = {method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '"EUR"'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://demo.evcc.io/api/config/currency \ --header 'Content-Type: application/json' \ --data '"EUR"'Set the currency used for prices, costs and savings.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
ISO 4217 currency code
string
Example
EURResponses
Section titled “ Responses ”Success - Blank response
Invalid currency code