Update Rate
curl --request PATCH \
--url https://app.silnahealth.com/api/public/v1/rates/{rate_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1,
"specialty": null,
"network_status": null,
"plan_type": null,
"state": null,
"service_location_id": null,
"treatment_codes": null
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/rates/{rate_id}"
payload = {
"amount": 1,
"specialty": None,
"network_status": None,
"plan_type": None,
"state": None,
"service_location_id": None,
"treatment_codes": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 1,
specialty: null,
network_status: null,
plan_type: null,
state: null,
service_location_id: null,
treatment_codes: null
})
};
fetch('https://app.silnahealth.com/api/public/v1/rates/{rate_id}', 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/{rate_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 1,
'specialty' => null,
'network_status' => null,
'plan_type' => null,
'state' => null,
'service_location_id' => null,
'treatment_codes' => null
]),
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/{rate_id}"
payload := strings.NewReader("{\n \"amount\": 1,\n \"specialty\": null,\n \"network_status\": null,\n \"plan_type\": null,\n \"state\": null,\n \"service_location_id\": null,\n \"treatment_codes\": null\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.silnahealth.com/api/public/v1/rates/{rate_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1,\n \"specialty\": null,\n \"network_status\": null,\n \"plan_type\": null,\n \"state\": null,\n \"service_location_id\": null,\n \"treatment_codes\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/rates/{rate_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 1,\n \"specialty\": null,\n \"network_status\": null,\n \"plan_type\": null,\n \"state\": null,\n \"service_location_id\": null,\n \"treatment_codes\": null\n}"
response = http.request(request)
puts response.read_body{
"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
Update Rate
PATCH
/
public
/
v1
/
rates
/
{rate_id}
Update Rate
curl --request PATCH \
--url https://app.silnahealth.com/api/public/v1/rates/{rate_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1,
"specialty": null,
"network_status": null,
"plan_type": null,
"state": null,
"service_location_id": null,
"treatment_codes": null
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/rates/{rate_id}"
payload = {
"amount": 1,
"specialty": None,
"network_status": None,
"plan_type": None,
"state": None,
"service_location_id": None,
"treatment_codes": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 1,
specialty: null,
network_status: null,
plan_type: null,
state: null,
service_location_id: null,
treatment_codes: null
})
};
fetch('https://app.silnahealth.com/api/public/v1/rates/{rate_id}', 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/{rate_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 1,
'specialty' => null,
'network_status' => null,
'plan_type' => null,
'state' => null,
'service_location_id' => null,
'treatment_codes' => null
]),
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/{rate_id}"
payload := strings.NewReader("{\n \"amount\": 1,\n \"specialty\": null,\n \"network_status\": null,\n \"plan_type\": null,\n \"state\": null,\n \"service_location_id\": null,\n \"treatment_codes\": null\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.silnahealth.com/api/public/v1/rates/{rate_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1,\n \"specialty\": null,\n \"network_status\": null,\n \"plan_type\": null,\n \"state\": null,\n \"service_location_id\": null,\n \"treatment_codes\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/rates/{rate_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 1,\n \"specialty\": null,\n \"network_status\": null,\n \"plan_type\": null,\n \"state\": null,\n \"service_location_id\": null,\n \"treatment_codes\": null\n}"
response = http.request(request)
puts response.read_body{
"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>"
}Only the fields you send are changed. Fields you leave out keep their current values.
To make a rate apply to everything again, clear the field:
- Send
nullforplan_type,state, orservice_location_id. - Send
[]fortreatment_codes.
treatment_codes replaces the rate’s existing treatment codes. To keep the current codes, leave it out.
You can’t change a rate’s payor, rate type, or self-pay status. To change those, delete the rate and create a new one.
If the update would make the rate match another existing rate, the request returns a 409.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 State. Set to null 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 Response
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 State the rate applies to. Null applies to all
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