Tariff Recurring Periods

Update existing recurring period.

Changed on

Required scope: tariffs:write<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.

patch/api/v1/tariff-recurring-periods/{id}

Request

  • Base URL
    https://partner-api.monta.com
  • URL
    https://partner-api.monta.com/api/v1/tariff-recurring-periods/{id}
  • Auth
    HTTP bearer

Path parameters

idinteger required

Request body

dayOfWeek'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
endDayOfWeek'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
startHourinteger nullable

hour that the period starts at

endHourinteger nullable

hour that the period ends at

startMinuteinteger nullable

minute within startHour that the period starts at: 0, 15, 30 or 45

endMinuteinteger nullable

minute within endHour that the period ends at: 0, 15, 30 or 45

pricenumber nullable

price during the period

Example request

{
  "endHour": 23,
  "startMinute": 30,
  "price": 2.54
}

Response

Tariff recurring period that was updated

idinteger

id of the period

tariffIdinteger

id of the tariff

dayOfWeek'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY' required
endDayOfWeek'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
startinteger

starting hour of the period

endinteger

ending hour of the period

startMinuteinteger

minute within the starting hour when the period starts (0, 15, 30 or 45)

endMinuteinteger

minute within the ending hour when the period ends (0, 15, 30 or 45)

pricenumber required

price during the period

Example response

{
  "startMinute": 30
}

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status