v1
latestOpenAPI 3.0.12026-07-243686491.1 MBTariff
Update an existing Tariff.
Required scope: tariffs:write<br/><br/>Note: Once you are done with creating/updating tariffs and its components you have to call the create-prices endpoint to create the prices for the tariff.
put/api/v1/tariffs/{tariffId}
Path parameters
tariffIdinteger required
Request body
Example request
{
"externalId": "1",
"description": "Net tariff A high",
"countryId": 1,
"countryAreaId": 1,
"currencyId": 1,
"teamId": 1,
"pricesWithVat": true,
"zipCodes": [
"2200",
"2100"
],
"active": true,
"timeZone": "Europe/Copenhagen",
"area": "Fyn"
}Response
Updated Tariff
Example response
{
"id": 1,
"externalId": "3143",
"name": "Cerius",
"description": "TariffDescription",
"countryId": 194,
"countryAreaId": 1,
"currencyId": 1,
"teamId": 1,
"operatorId": 1,
"pricesWithVat": true,
"zipCodes": [
5610,
5960
],
"active": true,
"timeZone": "Europe/Copenhagen",
"area": "Jylland",
"createdAt": "2023-03-23T14:54:56Z",
"updatedAt": "2023-03-23T16:54:56Z"
}