Skip to main content
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",
  "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",
"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',
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',
'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 \"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 \"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 \"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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
patient
object
required

An object to describe the patient

payerId
string<uuid>
required

The payer ID. See the Sohar payer list

Example:

"62308"

placeOfServiceCode
string
required

A two-digit code that describes the setting in which a service was provided

Example:

"02"

specialtyCode
enum<string>
required

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"

id
string

An optional identifier for the verification

Maximum string length: 45
Example:

"123456"

subscriber
object

An optional object to describe the subscriber related to the insurance member ID. Used when the patient is a dependent - the subscriber is typically a parent or spouse

Response

A verification ID

verificationId
string<uuid>

The Sohar ID for the verification

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

id
string | null

An optional identifier for the verification. This is a user-defined value that can be used when creating the verification

Example:

"123456"