Create Rate Type
curl --request POST \
--url https://app.silnahealth.com/api/public/v1/rate-types/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "97110",
"provider_id": null,
"mso_id": null,
"duration": "PER_VISIT"
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/rate-types/"
payload = {
"name": "97110",
"provider_id": None,
"mso_id": None,
"duration": "PER_VISIT"
}
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({name: '97110', provider_id: null, mso_id: null, duration: 'PER_VISIT'})
};
fetch('https://app.silnahealth.com/api/public/v1/rate-types/', 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/rate-types/",
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([
'name' => '97110',
'provider_id' => null,
'mso_id' => null,
'duration' => 'PER_VISIT'
]),
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/rate-types/"
payload := strings.NewReader("{\n \"name\": \"97110\",\n \"provider_id\": null,\n \"mso_id\": null,\n \"duration\": \"PER_VISIT\"\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/rate-types/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"97110\",\n \"provider_id\": null,\n \"mso_id\": null,\n \"duration\": \"PER_VISIT\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/rate-types/")
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 \"name\": \"97110\",\n \"provider_id\": null,\n \"mso_id\": null,\n \"duration\": \"PER_VISIT\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "97110",
"duration": "PER_VISIT"
}{
"message": "<string>"
}{
"message": "<string>",
"type": "AUTH_INVALID_REQUEST_HEADER"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Rates
Create Rate Type
POST
/
public
/
v1
/
rate-types
/
Create Rate Type
curl --request POST \
--url https://app.silnahealth.com/api/public/v1/rate-types/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "97110",
"provider_id": null,
"mso_id": null,
"duration": "PER_VISIT"
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/rate-types/"
payload = {
"name": "97110",
"provider_id": None,
"mso_id": None,
"duration": "PER_VISIT"
}
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({name: '97110', provider_id: null, mso_id: null, duration: 'PER_VISIT'})
};
fetch('https://app.silnahealth.com/api/public/v1/rate-types/', 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/rate-types/",
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([
'name' => '97110',
'provider_id' => null,
'mso_id' => null,
'duration' => 'PER_VISIT'
]),
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/rate-types/"
payload := strings.NewReader("{\n \"name\": \"97110\",\n \"provider_id\": null,\n \"mso_id\": null,\n \"duration\": \"PER_VISIT\"\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/rate-types/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"97110\",\n \"provider_id\": null,\n \"mso_id\": null,\n \"duration\": \"PER_VISIT\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/rate-types/")
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 \"name\": \"97110\",\n \"provider_id\": null,\n \"mso_id\": null,\n \"duration\": \"PER_VISIT\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "97110",
"duration": "PER_VISIT"
}{
"message": "<string>"
}{
"message": "<string>",
"type": "AUTH_INVALID_REQUEST_HEADER"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}A rate type is the service a rate is for, such as
When a patient’s copay applies, the cost estimate shows that service as Per Visit, whatever the rate type’s duration is.
The response returns the new rate type. Use its
97110 or Initial Evaluation. Rate types belong to a provider or MSO, and every rate references one. Create a rate type once, then reuse its id as the rate_type_id for as many rates as you need, across payors, specialties, and states.
Send exactly one of provider_id or mso_id.
Name
name is what patients see as the service name on benefits check cost estimates, including benefits check reports. Use a name they will recognize. It must be 1 to 50 characters, and leading and trailing spaces are removed.
Duration
duration is the unit of time the rate amount is for. If you leave it out, it defaults to PER_VISIT.
| Value | Shown on cost estimates as |
|---|---|
PER_VISIT | Per Visit |
PER_HOUR | Per Hour |
PER_DAY | Per Day |
PER_WEEK | Per Week |
PER_MONTH | Per Month |
PER_SESSION | Per Session |
PER_PHASE | Per Phase |
NONE_HIDDEN | Nothing. The duration is hidden |
Duplicates
A provider or MSO can’t have two rate types with the samename and duration. Creating one returns a 409; use the Get Rate Types API to find the existing one. The same name with a different duration is allowed, for example 97110 with PER_VISIT and 97110 with PER_HOUR.
Changing a rate type
Use the Update Rate Type API to rename a rate type or change its duration, and the Delete Rate Type API to remove one that no rates use.Example
To create an hourly rate type for a provider, replace the example ID with your own:{
"provider_id": "0194a843-5821-70e2-bbe9-0f986c05984d",
"name": "97110",
"duration": "PER_HOUR"
}
id as the rate_type_id when you create rates.Authorizations
Body
application/json