Create Payor Contract
curl --request POST \
--url https://app.silnahealth.com/api/public/v1/payor-contracts/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_locations": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"provider_id": null,
"mso_id": null,
"clinician_id": null,
"provider_group_id": null,
"insurance_types": [],
"plans": [],
"excluded_plans": [],
"billing_service_location_id": null,
"task_types": [],
"medicaid_id": null,
"ipa_required": null
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/payor-contracts/"
payload = {
"payor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_locations": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"provider_id": None,
"mso_id": None,
"clinician_id": None,
"provider_group_id": None,
"insurance_types": [],
"plans": [],
"excluded_plans": [],
"billing_service_location_id": None,
"task_types": [],
"medicaid_id": None,
"ipa_required": None
}
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({
payor_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
service_locations: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
provider_id: null,
mso_id: null,
clinician_id: null,
provider_group_id: null,
insurance_types: [],
plans: [],
excluded_plans: [],
billing_service_location_id: null,
task_types: [],
medicaid_id: null,
ipa_required: null
})
};
fetch('https://app.silnahealth.com/api/public/v1/payor-contracts/', 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/payor-contracts/",
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([
'payor_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'service_locations' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'provider_id' => null,
'mso_id' => null,
'clinician_id' => null,
'provider_group_id' => null,
'insurance_types' => [
],
'plans' => [
],
'excluded_plans' => [
],
'billing_service_location_id' => null,
'task_types' => [
],
'medicaid_id' => null,
'ipa_required' => 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/payor-contracts/"
payload := strings.NewReader("{\n \"payor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_locations\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"provider_id\": null,\n \"mso_id\": null,\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"billing_service_location_id\": null,\n \"task_types\": [],\n \"medicaid_id\": null,\n \"ipa_required\": null\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/payor-contracts/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_locations\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"provider_id\": null,\n \"mso_id\": null,\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"billing_service_location_id\": null,\n \"task_types\": [],\n \"medicaid_id\": null,\n \"ipa_required\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/payor-contracts/")
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 \"payor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_locations\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"provider_id\": null,\n \"mso_id\": null,\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"billing_service_location_id\": null,\n \"task_types\": [],\n \"medicaid_id\": null,\n \"ipa_required\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"message": "<string>"
}{
"message": "<string>",
"type": "AUTH_INVALID_REQUEST_HEADER"
}{
"message": "<string>"
}{
"message": "<string>"
}Payor Contracts
Create Payor Contract
POST
/
public
/
v1
/
payor-contracts
/
Create Payor Contract
curl --request POST \
--url https://app.silnahealth.com/api/public/v1/payor-contracts/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_locations": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"provider_id": null,
"mso_id": null,
"clinician_id": null,
"provider_group_id": null,
"insurance_types": [],
"plans": [],
"excluded_plans": [],
"billing_service_location_id": null,
"task_types": [],
"medicaid_id": null,
"ipa_required": null
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/payor-contracts/"
payload = {
"payor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_locations": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"provider_id": None,
"mso_id": None,
"clinician_id": None,
"provider_group_id": None,
"insurance_types": [],
"plans": [],
"excluded_plans": [],
"billing_service_location_id": None,
"task_types": [],
"medicaid_id": None,
"ipa_required": None
}
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({
payor_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
service_locations: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
provider_id: null,
mso_id: null,
clinician_id: null,
provider_group_id: null,
insurance_types: [],
plans: [],
excluded_plans: [],
billing_service_location_id: null,
task_types: [],
medicaid_id: null,
ipa_required: null
})
};
fetch('https://app.silnahealth.com/api/public/v1/payor-contracts/', 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/payor-contracts/",
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([
'payor_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'service_locations' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'provider_id' => null,
'mso_id' => null,
'clinician_id' => null,
'provider_group_id' => null,
'insurance_types' => [
],
'plans' => [
],
'excluded_plans' => [
],
'billing_service_location_id' => null,
'task_types' => [
],
'medicaid_id' => null,
'ipa_required' => 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/payor-contracts/"
payload := strings.NewReader("{\n \"payor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_locations\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"provider_id\": null,\n \"mso_id\": null,\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"billing_service_location_id\": null,\n \"task_types\": [],\n \"medicaid_id\": null,\n \"ipa_required\": null\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/payor-contracts/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_locations\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"provider_id\": null,\n \"mso_id\": null,\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"billing_service_location_id\": null,\n \"task_types\": [],\n \"medicaid_id\": null,\n \"ipa_required\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/payor-contracts/")
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 \"payor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"service_locations\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"provider_id\": null,\n \"mso_id\": null,\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"billing_service_location_id\": null,\n \"task_types\": [],\n \"medicaid_id\": null,\n \"ipa_required\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"message": "<string>"
}{
"message": "<string>",
"type": "AUTH_INVALID_REQUEST_HEADER"
}{
"message": "<string>"
}{
"message": "<string>"
}Task types
Usetask_types to limit a contract to benefits checks, prior authorizations, or both. The supported values are BENEFITS_CHECK and PRIOR_AUTHORIZATION; any other value returns a 400. If task_types is empty or omitted, the contract applies to all task types.
Eligibility checks and payor detections use the contracts that apply to BENEFITS_CHECK.
When Silna picks the contract for a task, it only considers contracts that include that task type or have no task types. If both match, the contract that lists the task type wins.
For example, to create a contract that only applies to prior authorizations, replace the example IDs with your own:
{
"provider_id": "0194a843-5821-70e2-bbe9-0f986c05984d",
"payor_id": "0194a843-5821-70e2-bbe9-0f986c05984e",
"provider_group_id": "0194a843-5821-70e2-bbe9-0f986c05984f",
"service_locations": ["0194a843-5821-70e2-bbe9-0f986c059850"],
"task_types": ["PRIOR_AUTHORIZATION"]
}
Authorizations
Body
application/json