Create Verification
curl --request POST \
--url https://api.soharhealth.com/v2/verifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"patient": {
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "09/20/2023",
"state": "CA",
"memberId": "00000000"
},
"payerId": "62308",
"placeOfServiceCode": "02",
"specialtyCode": "PSY",
"providerGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "123456",
"subscriber": {
"firstName": "<string>",
"lastName": "<string>",
"dateOfBirth": "09/20/2023"
}
}
'import requests
url = "https://api.soharhealth.com/v2/verifications"
payload = {
"patient": {
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "09/20/2023",
"state": "CA",
"memberId": "00000000"
},
"payerId": "62308",
"placeOfServiceCode": "02",
"specialtyCode": "PSY",
"providerGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "123456",
"subscriber": {
"firstName": "<string>",
"lastName": "<string>",
"dateOfBirth": "09/20/2023"
}
}
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({
patient: {
firstName: 'John',
lastName: 'Doe',
dateOfBirth: '09/20/2023',
state: 'CA',
memberId: '00000000'
},
payerId: '62308',
placeOfServiceCode: '02',
specialtyCode: 'PSY',
providerGroupId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
id: '123456',
subscriber: {firstName: '<string>', lastName: '<string>', dateOfBirth: '09/20/2023'}
})
};
fetch('https://api.soharhealth.com/v2/verifications', 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://api.soharhealth.com/v2/verifications",
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([
'patient' => [
'firstName' => 'John',
'lastName' => 'Doe',
'dateOfBirth' => '09/20/2023',
'state' => 'CA',
'memberId' => '00000000'
],
'payerId' => '62308',
'placeOfServiceCode' => '02',
'specialtyCode' => 'PSY',
'providerGroupId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'id' => '123456',
'subscriber' => [
'firstName' => '<string>',
'lastName' => '<string>',
'dateOfBirth' => '09/20/2023'
]
]),
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://api.soharhealth.com/v2/verifications"
payload := strings.NewReader("{\n \"patient\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"dateOfBirth\": \"09/20/2023\",\n \"state\": \"CA\",\n \"memberId\": \"00000000\"\n },\n \"payerId\": \"62308\",\n \"placeOfServiceCode\": \"02\",\n \"specialtyCode\": \"PSY\",\n \"providerGroupId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"id\": \"123456\",\n \"subscriber\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"09/20/2023\"\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://api.soharhealth.com/v2/verifications")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"patient\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"dateOfBirth\": \"09/20/2023\",\n \"state\": \"CA\",\n \"memberId\": \"00000000\"\n },\n \"payerId\": \"62308\",\n \"placeOfServiceCode\": \"02\",\n \"specialtyCode\": \"PSY\",\n \"providerGroupId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"id\": \"123456\",\n \"subscriber\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"09/20/2023\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.soharhealth.com/v2/verifications")
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 \"patient\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"dateOfBirth\": \"09/20/2023\",\n \"state\": \"CA\",\n \"memberId\": \"00000000\"\n },\n \"payerId\": \"62308\",\n \"placeOfServiceCode\": \"02\",\n \"specialtyCode\": \"PSY\",\n \"providerGroupId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"id\": \"123456\",\n \"subscriber\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"09/20/2023\"\n }\n}"
response = http.request(request)
puts response.read_body{
"verificationId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"id": "123456"
}{
"error": "invalid_request_error",
"param": "payerId",
"id": "12345"
}{
"error": "invalid_request_error"
}{
"error": "Too many requests"
}Verification
Create Verification
POST
/
v2
/
verifications
Create Verification
curl --request POST \
--url https://api.soharhealth.com/v2/verifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"patient": {
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "09/20/2023",
"state": "CA",
"memberId": "00000000"
},
"payerId": "62308",
"placeOfServiceCode": "02",
"specialtyCode": "PSY",
"providerGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "123456",
"subscriber": {
"firstName": "<string>",
"lastName": "<string>",
"dateOfBirth": "09/20/2023"
}
}
'import requests
url = "https://api.soharhealth.com/v2/verifications"
payload = {
"patient": {
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "09/20/2023",
"state": "CA",
"memberId": "00000000"
},
"payerId": "62308",
"placeOfServiceCode": "02",
"specialtyCode": "PSY",
"providerGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "123456",
"subscriber": {
"firstName": "<string>",
"lastName": "<string>",
"dateOfBirth": "09/20/2023"
}
}
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({
patient: {
firstName: 'John',
lastName: 'Doe',
dateOfBirth: '09/20/2023',
state: 'CA',
memberId: '00000000'
},
payerId: '62308',
placeOfServiceCode: '02',
specialtyCode: 'PSY',
providerGroupId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
id: '123456',
subscriber: {firstName: '<string>', lastName: '<string>', dateOfBirth: '09/20/2023'}
})
};
fetch('https://api.soharhealth.com/v2/verifications', 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://api.soharhealth.com/v2/verifications",
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([
'patient' => [
'firstName' => 'John',
'lastName' => 'Doe',
'dateOfBirth' => '09/20/2023',
'state' => 'CA',
'memberId' => '00000000'
],
'payerId' => '62308',
'placeOfServiceCode' => '02',
'specialtyCode' => 'PSY',
'providerGroupId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'id' => '123456',
'subscriber' => [
'firstName' => '<string>',
'lastName' => '<string>',
'dateOfBirth' => '09/20/2023'
]
]),
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://api.soharhealth.com/v2/verifications"
payload := strings.NewReader("{\n \"patient\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"dateOfBirth\": \"09/20/2023\",\n \"state\": \"CA\",\n \"memberId\": \"00000000\"\n },\n \"payerId\": \"62308\",\n \"placeOfServiceCode\": \"02\",\n \"specialtyCode\": \"PSY\",\n \"providerGroupId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"id\": \"123456\",\n \"subscriber\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"09/20/2023\"\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://api.soharhealth.com/v2/verifications")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"patient\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"dateOfBirth\": \"09/20/2023\",\n \"state\": \"CA\",\n \"memberId\": \"00000000\"\n },\n \"payerId\": \"62308\",\n \"placeOfServiceCode\": \"02\",\n \"specialtyCode\": \"PSY\",\n \"providerGroupId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"id\": \"123456\",\n \"subscriber\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"09/20/2023\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.soharhealth.com/v2/verifications")
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 \"patient\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"dateOfBirth\": \"09/20/2023\",\n \"state\": \"CA\",\n \"memberId\": \"00000000\"\n },\n \"payerId\": \"62308\",\n \"placeOfServiceCode\": \"02\",\n \"specialtyCode\": \"PSY\",\n \"providerGroupId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"id\": \"123456\",\n \"subscriber\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"09/20/2023\"\n }\n}"
response = http.request(request)
puts response.read_body{
"verificationId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"id": "123456"
}{
"error": "invalid_request_error",
"param": "payerId",
"id": "12345"
}{
"error": "invalid_request_error"
}{
"error": "Too many requests"
}Authorizations
Include an OAuth 2.0 bearer token in the Authorization header. See Authentication.
Headers
A UUID v4 used to safely retry this request without creating a duplicate. See Idempotency.
Example:
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
Body
application/json
The payer ID. See the Sohar payer list
Example:
"62308"
A two-digit code that describes the setting in which a service was provided
Example:
"02"
Specifies the specialty
ABA Applied Behavioral Analysis
IOP Intensive Outpatient Program
OCT Occupational Therapy
PHT Physical Therapy
PRC Primary Care
PCH Psychiatry
PSY Psychotherapy
SLP Speech-Language Pathology
SUD Substance Use Disorder
UGC Urgent Care
WMT Weight Management
Available options:
ABA, IOP, OCT, PHT, PRC, PCH, PSY, SLP, SUD, UGC, WMT Example:
"PSY"