Skip to main content
POST
/
v1
/
verifications
/
batch
Create Verifications V1
curl --request POST \
  --url https://api.soharhealth.com/v1/verifications/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "verifications": [
    {
      "firstName": "John",
      "lastName": "Doe",
      "dateOfBirth": "09/20/2023",
      "state": "CA",
      "memberId": "00000000",
      "payerId": "62308",
      "npi": "0123456789",
      "taxonomyCode": "2084P0800X",
      "placeOfService": "02",
      "id": "123456",
      "subscriber": {
        "firstName": "<string>",
        "lastName": "<string>",
        "dateOfBirth": "09/20/2023"
      }
    }
  ]
}
'
import requests

url = "https://api.soharhealth.com/v1/verifications/batch"

payload = { "verifications": [
{
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "09/20/2023",
"state": "CA",
"memberId": "00000000",
"payerId": "62308",
"npi": "0123456789",
"taxonomyCode": "2084P0800X",
"placeOfService": "02",
"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({
verifications: [
{
firstName: 'John',
lastName: 'Doe',
dateOfBirth: '09/20/2023',
state: 'CA',
memberId: '00000000',
payerId: '62308',
npi: '0123456789',
taxonomyCode: '2084P0800X',
placeOfService: '02',
id: '123456',
subscriber: {firstName: '<string>', lastName: '<string>', dateOfBirth: '09/20/2023'}
}
]
})
};

fetch('https://api.soharhealth.com/v1/verifications/batch', 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/v1/verifications/batch",
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([
'verifications' => [
[
'firstName' => 'John',
'lastName' => 'Doe',
'dateOfBirth' => '09/20/2023',
'state' => 'CA',
'memberId' => '00000000',
'payerId' => '62308',
'npi' => '0123456789',
'taxonomyCode' => '2084P0800X',
'placeOfService' => '02',
'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/v1/verifications/batch"

payload := strings.NewReader("{\n \"verifications\": [\n {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"dateOfBirth\": \"09/20/2023\",\n \"state\": \"CA\",\n \"memberId\": \"00000000\",\n \"payerId\": \"62308\",\n \"npi\": \"0123456789\",\n \"taxonomyCode\": \"2084P0800X\",\n \"placeOfService\": \"02\",\n \"id\": \"123456\",\n \"subscriber\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"09/20/2023\"\n }\n }\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/v1/verifications/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"verifications\": [\n {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"dateOfBirth\": \"09/20/2023\",\n \"state\": \"CA\",\n \"memberId\": \"00000000\",\n \"payerId\": \"62308\",\n \"npi\": \"0123456789\",\n \"taxonomyCode\": \"2084P0800X\",\n \"placeOfService\": \"02\",\n \"id\": \"123456\",\n \"subscriber\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"09/20/2023\"\n }\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.soharhealth.com/v1/verifications/batch")

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 \"verifications\": [\n {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"dateOfBirth\": \"09/20/2023\",\n \"state\": \"CA\",\n \"memberId\": \"00000000\",\n \"payerId\": \"62308\",\n \"npi\": \"0123456789\",\n \"taxonomyCode\": \"2084P0800X\",\n \"placeOfService\": \"02\",\n \"id\": \"123456\",\n \"subscriber\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"09/20/2023\"\n }\n }\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "results": [
    {
      "status": 201,
      "patientId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "verificationId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "error": "invalid_request_error",
      "param": "memberId",
      "id": "123456"
    }
  ]
}
{
"error": "invalid_request_error",
"param": "verifications"
}
{
"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
verifications
object[]
required

Response

An array of results

results
object[]