Create Rates
curl --request POST \
--url https://app.silnahealth.com/api/public/v1/rates/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rate_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1,
"provider_id": null,
"mso_id": null,
"is_self_pay": false,
"payor_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"network_status": null,
"plan_type": null,
"states": null,
"service_location_ids": null,
"treatment_codes": [
[
"97110"
]
]
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/rates/"
payload = {
"rate_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1,
"provider_id": None,
"mso_id": None,
"is_self_pay": False,
"payor_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"network_status": None,
"plan_type": None,
"states": None,
"service_location_ids": None,
"treatment_codes": [["97110"]]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rate_type_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount: 1,
provider_id: null,
mso_id: null,
is_self_pay: false,
payor_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
network_status: null,
plan_type: null,
states: null,
service_location_ids: null,
treatment_codes: [['97110']]
})
};
fetch('https://app.silnahealth.com/api/public/v1/rates/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.silnahealth.com/api/public/v1/rates/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'rate_type_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount' => 1,
'provider_id' => null,
'mso_id' => null,
'is_self_pay' => false,
'payor_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'network_status' => null,
'plan_type' => null,
'states' => null,
'service_location_ids' => null,
'treatment_codes' => [
[
'97110'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.silnahealth.com/api/public/v1/rates/"
payload := strings.NewReader("{\n \"rate_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1,\n \"provider_id\": null,\n \"mso_id\": null,\n \"is_self_pay\": false,\n \"payor_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"network_status\": null,\n \"plan_type\": null,\n \"states\": null,\n \"service_location_ids\": null,\n \"treatment_codes\": [\n [\n \"97110\"\n ]\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.silnahealth.com/api/public/v1/rates/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rate_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1,\n \"provider_id\": null,\n \"mso_id\": null,\n \"is_self_pay\": false,\n \"payor_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"network_status\": null,\n \"plan_type\": null,\n \"states\": null,\n \"service_location_ids\": null,\n \"treatment_codes\": [\n [\n \"97110\"\n ]\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/rates/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rate_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1,\n \"provider_id\": null,\n \"mso_id\": null,\n \"is_self_pay\": false,\n \"payor_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"network_status\": null,\n \"plan_type\": null,\n \"states\": null,\n \"service_location_ids\": null,\n \"treatment_codes\": [\n [\n \"97110\"\n ]\n ]\n}"
response = http.request(request)
puts response.read_body{
"records": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rate_type": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "97110",
"duration": "PER_VISIT"
},
"amount": "150.00",
"specialty": "PHYSICAL_THERAPY",
"is_self_pay": true,
"treatment_codes": [
[
"97110"
]
],
"payor_id": null,
"network_status": null,
"plan_type": null,
"state": null,
"service_location_id": null
}
]
}{
"message": "<string>"
}{
"message": "<string>",
"type": "AUTH_INVALID_REQUEST_HEADER"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Rates
Create Rates
POST
/
public
/
v1
/
rates
/
Create Rates
curl --request POST \
--url https://app.silnahealth.com/api/public/v1/rates/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rate_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1,
"provider_id": null,
"mso_id": null,
"is_self_pay": false,
"payor_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"network_status": null,
"plan_type": null,
"states": null,
"service_location_ids": null,
"treatment_codes": [
[
"97110"
]
]
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/rates/"
payload = {
"rate_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1,
"provider_id": None,
"mso_id": None,
"is_self_pay": False,
"payor_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"network_status": None,
"plan_type": None,
"states": None,
"service_location_ids": None,
"treatment_codes": [["97110"]]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rate_type_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount: 1,
provider_id: null,
mso_id: null,
is_self_pay: false,
payor_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
network_status: null,
plan_type: null,
states: null,
service_location_ids: null,
treatment_codes: [['97110']]
})
};
fetch('https://app.silnahealth.com/api/public/v1/rates/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.silnahealth.com/api/public/v1/rates/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'rate_type_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount' => 1,
'provider_id' => null,
'mso_id' => null,
'is_self_pay' => false,
'payor_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'network_status' => null,
'plan_type' => null,
'states' => null,
'service_location_ids' => null,
'treatment_codes' => [
[
'97110'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.silnahealth.com/api/public/v1/rates/"
payload := strings.NewReader("{\n \"rate_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1,\n \"provider_id\": null,\n \"mso_id\": null,\n \"is_self_pay\": false,\n \"payor_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"network_status\": null,\n \"plan_type\": null,\n \"states\": null,\n \"service_location_ids\": null,\n \"treatment_codes\": [\n [\n \"97110\"\n ]\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.silnahealth.com/api/public/v1/rates/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rate_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1,\n \"provider_id\": null,\n \"mso_id\": null,\n \"is_self_pay\": false,\n \"payor_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"network_status\": null,\n \"plan_type\": null,\n \"states\": null,\n \"service_location_ids\": null,\n \"treatment_codes\": [\n [\n \"97110\"\n ]\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/rates/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rate_type_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1,\n \"provider_id\": null,\n \"mso_id\": null,\n \"is_self_pay\": false,\n \"payor_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"network_status\": null,\n \"plan_type\": null,\n \"states\": null,\n \"service_location_ids\": null,\n \"treatment_codes\": [\n [\n \"97110\"\n ]\n ]\n}"
response = http.request(request)
puts response.read_body{
"records": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rate_type": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "97110",
"duration": "PER_VISIT"
},
"amount": "150.00",
"specialty": "PHYSICAL_THERAPY",
"is_self_pay": true,
"treatment_codes": [
[
"97110"
]
],
"payor_id": null,
"network_status": null,
"plan_type": null,
"state": null,
"service_location_id": null
}
]
}{
"message": "<string>"
}{
"message": "<string>",
"type": "AUTH_INVALID_REQUEST_HEADER"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Send exactly one of
provider_id or mso_id, and a rate_type_id from the Get Rate Types API.
One request, many rates
This endpoint creates one rate for each combination ofpayor_ids, states, and service_location_ids. For example, 2 payors, 3 states, and 1 service location create 6 rates. Leave states or service_location_ids out to create rates that apply to all states or all service locations.
The response returns every rate that was created in records.
Existing rates
If a rate with the same details already exists, that combination is skipped and the rest are still created. If every combination already exists, the request returns a409.
Blue Card payors
If a payor inpayor_ids is a Blue Card payor, Silna also creates the same rates for the BCBS parent payor. Those rates are included in records.
Insurance and self-pay rates
- Insurance rates need at least one entry in
payor_idsand anetwork_status. - Self-pay rates (
is_self_pay: true) can’t havepayor_ids,network_status, orplan_type. They are only available when cost estimates for ineligible benefits checks are enabled for the provider; otherwise the request returns a400.
Treatment codes
Usetreatment_codes to restrict the rates to specific treatment codes, such as CPT or HCPCS codes. Leave it out to apply the rates to all codes. An unknown code returns a 400.
Rates with treatment codes are only used in benefits check cost estimates when advanced cost estimates are turned on. See When rates with treatment codes are used.
For example, to create an in-network rate for one payor in two states, replace the example IDs with your own:
{
"provider_id": "0194a843-5821-70e2-bbe9-0f986c05984d",
"rate_type_id": "0194a843-5821-70e2-bbe9-0f986c05984e",
"amount": "150.00",
"specialty": "PHYSICAL_THERAPY",
"payor_ids": ["0194a843-5821-70e2-bbe9-0f986c05984f"],
"network_status": "IN_NETWORK",
"states": ["CA", "NV"],
"treatment_codes": ["97110"]
}
Authorizations
Body
application/json
Specialty the rate applies to
Available options:
PHYSICAL_THERAPY, ABA_THERAPY, SPEECH_THERAPY, OCCUPATIONAL_THERAPY, PSYCHOLOGICAL_TESTING, HOME_HEALTH_CARE, HOSPICE, CARDIAC_REHABILITATION, INTENSIVE_CARDIAC_REHABILITATION, MENTAL_HEALTH, PRINCIPAL_ILLNESS_NAVIGATION, PRINCIPAL_CARE_MANAGEMENT, ADVANCED_PRIMARY_CARE_MODELS, PREVENTATIVE_HEALTH, PARTIAL_HOSPITALIZATION_PROGRAM, INTENSIVE_OUTPATIENT_PROGRAM, INTERVENTIONAL_RADIOLOGY, VASCULAR_SURGERY, INTERVENTIONAL_CARDIOLOGY, ORTHOPEDICS, CHIROPRACTIC, GYNECOLOGY, LONG_TERM_CARE, NUTRITIONAL_COUNSELING, PHYSICAL_MEDICINE, PULMONARY_REHABILITATION, INJECTABLE_SPECIALTY_MEDICATIONS, ALLERGY_TESTING, SKILLED_NURSING, RADIOLOGY, OTOLARYNGOLOGY, DURABLE_MEDICAL_EQUIPMENT, DERMATOLOGY, PROFESSIONAL_OFFICE_VISIT, PSYCHIATRY, PRIVATE_DUTY_NURSING, NEUROLOGY, PSYCHIATRIC_RESIDENTIAL_TREATMENT, INPATIENT_PSYCHIATRY, SLEEP_MEDICINE States to create the rate for. One rate is created per state. Omit to apply to all states
Available options:
AL, AK, AZ, AR, CA, CO, CT, DC, DE, FL, GA, HI, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UT, VT, VA, WA, WV, WI, WY, AA, AE, AP, AS, FM, GU, MH, MP, PW, VI