---
title: "Retrieve a call rate"
method: GET
path: "/call_rates/{id}"
tags: ["Billing"]
---

# Retrieve a call rate

`GET /call_rates/{id}`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/call_rates/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/call_rates/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve call rate by it's unique ID.

## Path parameters

- `id` string, required: The unique ID of the resource.

## Response `200`

OK

- object
  - `id` string: The unique ID of the resource.
  - `prefix` string: The call prefix of the rating.
  - `type` 'LOCAL' | 'NATIONAL' | 'INTERNATIONAL' | 'MOBILE': The type of the rating: Can be either: - `LOCAL`: - `NATIONAL`: - `INTERNATIONAL`: - `MOBILE`:
  - `free_seconds` integer: Free seconds of the rating.
  - `grace_period` integer: Grace period of the rating.
  - `interval_1` integer: The first interval of the rating.
  - `interval_n` integer: The subsequent interval of the rating after the first one.
  - `connect_fee` number, double: Connect fee of the rating. Precision is five digits.
  - `postcall_surcharge` number, double: Postcall surcharge of the rating. Precision is five digits.
  - `price_1` number, double: The price of the first interval. Precision is five digits.
  - `price_n` number, double: The price of the subsequent interval after the first one. Precision is five digits.
  - `description` string: The description text for this rule.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
