---
title: "Returns the number of rates for a specific rate plan within the specifed time range."
method: GET
path: "/rateplan/v1/rate-plans/{id}/rates/$count"
tags: ["Rate"]
---

# Returns the number of rates for a specific rate plan within the specifed time range.

`GET /rateplan/v1/rate-plans/{id}/rates/$count`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/rateplan/v1/rate-plans/{id}/rates/$count`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `rates.read`, `rates.manage`, `admin`

To be able to count rates for a corporate rate plan a client must additionaly have
the 'rateplans.read-corporate' scope.<br>You must have at least one of these scopes: 'rates.read, rates.manage'.<br>For fine-grained clients, you must have this permission: 'core.rates.read'.

## Path parameters

- `id` string, required

## Query parameters

- `from` string, required
- `to` string, required

## Response `200`

Success

- CountModel
  - `count` integer, required

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api/revisions/9c4f5fec8ed5?raw)
