> ## Documentation Index
> Fetch the complete documentation index at: https://docs.silnahealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rates Overview

Rates tell Silna how much a service pays, for a payor or for self-pay patients. Silna uses them to estimate a patient's financial responsibility on benefits checks.

## Scoping requests to a provider or MSO

Every rate and rate type belongs to a provider or to an MSO. When you list or create rates and rate types, send exactly one of `provider_id` or `mso_id`. Sending both, or neither, returns a `400`.

If a provider shares its rate settings with its MSO, sending the `provider_id` reads and writes the MSO's rates.

## Rate types

Each rate has a rate type, such as `97110` or `Initial Evaluation`. A rate type has a `name` and a `duration`, which is the unit of time the rate amount applies to (for example `PER_VISIT` or `PER_HOUR`).

Before you create a rate, get a `rate_type_id` from the [Get Rate Types API](https://docs.silnahealth.com/api-reference/v1ratetypesresource/get-rate-types.md). If the rate type you need doesn't exist yet, create it with the [Create Rate Type API](https://docs.silnahealth.com/api-reference/v1ratetypesresource/create-rate-type.md). See [Create Rate Type](https://docs.silnahealth.com/api-reference/v1ratetypesresource/create-rate-type.md) for how to name rate types and pick a duration.

## How a rate matches a service

A rate always has a rate type, an amount, and a specialty. The other fields narrow down when the rate applies. Leave a field empty to apply the rate to every value:

| Field | Empty means |
| - | - |
| `plan_type` | All plan types |
| `state` | All states |
| `service_location_id` | All service locations |
| `treatment_codes` | All treatment codes |

Insurance rates (`is_self_pay: false`) also need a `payor_id` and a `network_status`. Self-pay rates (`is_self_pay: true`) can't have a payor, network status, or plan type.

## When rates with treatment codes are used

Setting `treatment_codes` on a rate changes where Silna uses it.

### Benefits check cost estimates

Rates with treatment codes are only used in benefits check cost estimates, including benefits check reports, when **advanced cost estimates** are turned on for the provider. Without advanced cost estimates, cost estimates only use rates that have no treatment codes. Contact the Silna team to turn on advanced cost estimates.

With advanced cost estimates on, Silna uses rates with treatment codes when:

* Every rate that applies to the benefits check has treatment codes. If any of them has no treatment codes, the estimate only uses the rates without treatment codes.
* The benefits check's copay and coinsurance are listed for specific treatment codes, or the benefits check has no copay or coinsurance.

Silna matches each rate to the copay or coinsurance for its treatment codes. If it can't find a single match, that rate's estimate shows `-`.

## Typical workflow

1. Use the [Get Rate Types API](https://docs.silnahealth.com/api-reference/v1ratetypesresource/get-rate-types.md) to find the rate type, or create it with the [Create Rate Type API](https://docs.silnahealth.com/api-reference/v1ratetypesresource/create-rate-type.md).
2. Use the [Create Rates API](https://docs.silnahealth.com/api-reference/v1ratesresource/create-rates.md) to add rates for one or more payors, states, and service locations in a single request.
3. Use the [Get Rates API](https://docs.silnahealth.com/api-reference/v1ratesresource/get-rates.md) to list rates, with filters.
4. Use the [Update Rate API](https://docs.silnahealth.com/api-reference/v1rateresource/update-rate.md) to change a rate, or the [Delete Rate API](https://docs.silnahealth.com/api-reference/v1rateresource/delete-rate.md) to remove it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.