---
title: "Delete dynamic prices in a time window."
method: DELETE
path: "/api/v1/tariffs/{tariffId}/dynamic-prices"
tags: ["Tariff"]
---

# Delete dynamic prices in a time window.

`DELETE /api/v1/tariffs/{tariffId}/dynamic-prices`

Deletes all dynamic-price entries on a `DYNAMIC` tariff whose `timeStart` falls within `[timeStartFrom, timeStartTo)`. The window must span between 1 and 90 days inclusive; outside that range the request is rejected with `400 BAD_REQUEST` and nothing is deleted.<br/><br/>Returns `204 No Content` on success regardless of whether any rows actually matched the window (idempotent per HTTP semantics).<br/><br/>Required scope: `tariffs:delete`

## Path parameters

- `tariffId` integer, required

## Query parameters

- `timeStartFrom` string, date-time, required
- `timeStartTo` union, required
  - string, date-time
  - string, date-time

## Response `204`

Window deleted (or already empty)

## Other responses

- `400` — The tariff is not DYNAMIC, or the window is outside the 1..90 day range
- `401` — Consumer with provided credentials was not found
- `403` — Operator doesn't have access to resource
- `404` — Tariff not found or not visible to this consumer

---

[API](https://skmtc.net/monta/apis/monta-partner-api.md) · [All operations](https://skmtc.net/monta/apis/monta-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monta/monta-partner-api/versions/517e18f11015/schema)
