---
title: "Quote the price of an outbound call"
method: GET
path: "/api/v1/call_price"
tags: ["Calls"]
---

# Quote the price of an outbound call

`GET /api/v1/call_price`

## Request

- Base URL: `https://app.didlogic.com`
- URL: `https://app.didlogic.com/api/v1/call_price`
- Auth: HTTP bearer

What a call from one of your SIP accounts to `b_number`, presenting `a_number` as the caller ID,
will be billed: the destination name, the per-minute price and the billing increment.

The quote replays what the platform does to the call before it is billed: the SIP account's
destination rewrite, its caller-ID restrictions, routing rules and caller-ID overrides. It then
rates the call with the same code billing uses: exact prices, origin-based rates and markup
included.

**Not modelled:**
- the carrier (trunk) chosen for the call, which can change the increment and, through the
  caller ID it presents, the price;
- blocklists and allowlists: a destination that would be refused is still quoted;
- where the platform picks a caller ID at random, the first candidate is used.

Send `b_number` in E.164 (country code first). A national number is quoted only when the SIP
account has a rewrite rule that turns it into E.164.

## Query parameters

- `a_number` string, required
- `b_number` string, required
- `sipaccount` string, required

## Response `200`

The price and increment the call will be billed at

- object
  - `destination_name` string, nullable, required: Destination as listed in your price list; null for an exact price only
  - `price` number, float, required: Price per minute in USD
  - `increment` object, required
    - `initial` integer, required: Seconds billed for the first block
    - `unit` integer, required: Seconds per block after the first

## Other responses

- `404`: No SIP account of yours has that name
- `422`: The destination has no price for this SIP account

---

[API](https://skmtc.dev/didlogic/apis/get-started.md) · [All operations](https://skmtc.dev/didlogic/apis/get-started/llms.txt) · [OpenAPI document](https://skmtc.dev/didlogic/apis/get-started/revisions/dc972d592b34?raw)
