v1

latestOpenAPI 3.0.12026-07-243686491.1 MB
Tariff

Create the prices for a given tariff within a given period of time.

Required scope: tariffs:write<br/>Note: Once you are done with creating/updating tariffs and its components you have to call this endpoint to create the prices for the tariff.

post/api/v1/tariffs/{tariffId}/create-prices

Path parameters

tariffIdinteger required

Request body

startstring date required

Start date that marks when prices should be created for a tariff (yyyy-MM-dd)

endstring date required

End date that marks when prices should be created for a tariff (yyyy-MM-dd)

Example request

{
  "start": "2023-01-01",
  "end": "2023-01-31"
}

Response

Tariff prices created

Example response

{
  "tariff": {
    "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"
  }
}