Update Payor Contract
curl --request PATCH \
--url https://app.silnahealth.com/api/public/v1/payor-contracts/{contract_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clinician_id": null,
"provider_group_id": null,
"insurance_types": [],
"plans": [],
"excluded_plans": [],
"service_locations": null,
"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/{contract_id}"
payload = {
"clinician_id": None,
"provider_group_id": None,
"insurance_types": [],
"plans": [],
"excluded_plans": [],
"service_locations": None,
"billing_service_location_id": None,
"task_types": [],
"medicaid_id": None,
"ipa_required": 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({
clinician_id: null,
provider_group_id: null,
insurance_types: [],
plans: [],
excluded_plans: [],
service_locations: null,
billing_service_location_id: null,
task_types: [],
medicaid_id: null,
ipa_required: null
})
};
fetch('https://app.silnahealth.com/api/public/v1/payor-contracts/{contract_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/payor-contracts/{contract_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([
'clinician_id' => null,
'provider_group_id' => null,
'insurance_types' => [
],
'plans' => [
],
'excluded_plans' => [
],
'service_locations' => null,
'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/{contract_id}"
payload := strings.NewReader("{\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"service_locations\": null,\n \"billing_service_location_id\": null,\n \"task_types\": [],\n \"medicaid_id\": null,\n \"ipa_required\": 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/payor-contracts/{contract_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"service_locations\": null,\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/{contract_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 \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"service_locations\": null,\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{
"message": "<string>"
}{
"message": "<string>",
"type": "AUTH_INVALID_REQUEST_HEADER"
}{
"message": "<string>"
}{
"message": "<string>"
}Payor Contracts
Update Payor Contract
PATCH
/
public
/
v1
/
payor-contracts
/
{contract_id}
Update Payor Contract
curl --request PATCH \
--url https://app.silnahealth.com/api/public/v1/payor-contracts/{contract_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clinician_id": null,
"provider_group_id": null,
"insurance_types": [],
"plans": [],
"excluded_plans": [],
"service_locations": null,
"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/{contract_id}"
payload = {
"clinician_id": None,
"provider_group_id": None,
"insurance_types": [],
"plans": [],
"excluded_plans": [],
"service_locations": None,
"billing_service_location_id": None,
"task_types": [],
"medicaid_id": None,
"ipa_required": 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({
clinician_id: null,
provider_group_id: null,
insurance_types: [],
plans: [],
excluded_plans: [],
service_locations: null,
billing_service_location_id: null,
task_types: [],
medicaid_id: null,
ipa_required: null
})
};
fetch('https://app.silnahealth.com/api/public/v1/payor-contracts/{contract_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/payor-contracts/{contract_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([
'clinician_id' => null,
'provider_group_id' => null,
'insurance_types' => [
],
'plans' => [
],
'excluded_plans' => [
],
'service_locations' => null,
'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/{contract_id}"
payload := strings.NewReader("{\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"service_locations\": null,\n \"billing_service_location_id\": null,\n \"task_types\": [],\n \"medicaid_id\": null,\n \"ipa_required\": 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/payor-contracts/{contract_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"service_locations\": null,\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/{contract_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 \"clinician_id\": null,\n \"provider_group_id\": null,\n \"insurance_types\": [],\n \"plans\": [],\n \"excluded_plans\": [],\n \"service_locations\": null,\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{
"message": "<string>"
}{
"message": "<string>",
"type": "AUTH_INVALID_REQUEST_HEADER"
}{
"message": "<string>"
}{
"message": "<string>"
}Task types
task_types replaces the contract’s existing task types. The supported values are BENEFITS_CHECK and PRIOR_AUTHORIZATION; any other value returns a 400. Sending an empty list, or leaving task_types out, makes the contract apply to all task types. To keep the current task types, send them again from the Get Payor Contract API.
Eligibility checks and payor detections use the contracts that apply to BENEFITS_CHECK.Authorizations
Body
application/json
The Silna identifier of the service location to bill under for this contract. When set, it overrides the service location on benefits checks and prior authorizations that use this contract. Must belong to the provider. When omitted, the current billing service location is kept; pass null to remove it.
Response
OK