Run discovery process
curl --request POST \
--url https://api.example.com/api/v2/clearinghouse/discovery \
--header 'Content-Type: application/json' \
--data '
{
"person": {
"firstName": "<string>",
"lastName": "<string>",
"dateOfBirth": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"dateOfService": "<string>",
"accountNumber": "<string>",
"serviceCode": "<string>",
"checkDemographics": true,
"checkCredit": true,
"runBusinessRules": true
}
'import requests
url = "https://api.example.com/api/v2/clearinghouse/discovery"
payload = {
"person": {
"firstName": "<string>",
"lastName": "<string>",
"dateOfBirth": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"dateOfService": "<string>",
"accountNumber": "<string>",
"serviceCode": "<string>",
"checkDemographics": True,
"checkCredit": True,
"runBusinessRules": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
person: {
firstName: '<string>',
lastName: '<string>',
dateOfBirth: '<string>',
addressLine1: '<string>',
addressLine2: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
},
dateOfService: '<string>',
accountNumber: '<string>',
serviceCode: '<string>',
checkDemographics: true,
checkCredit: true,
runBusinessRules: true
})
};
fetch('https://api.example.com/api/v2/clearinghouse/discovery', 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.example.com/api/v2/clearinghouse/discovery",
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([
'person' => [
'firstName' => '<string>',
'lastName' => '<string>',
'dateOfBirth' => '<string>',
'addressLine1' => '<string>',
'addressLine2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip' => '<string>'
],
'dateOfService' => '<string>',
'accountNumber' => '<string>',
'serviceCode' => '<string>',
'checkDemographics' => true,
'checkCredit' => true,
'runBusinessRules' => true
]),
CURLOPT_HTTPHEADER => [
"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.example.com/api/v2/clearinghouse/discovery"
payload := strings.NewReader("{\n \"person\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"addressLine1\": \"<string>\",\n \"addressLine2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"dateOfService\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"serviceCode\": \"<string>\",\n \"checkDemographics\": true,\n \"checkCredit\": true,\n \"runBusinessRules\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/api/v2/clearinghouse/discovery")
.header("Content-Type", "application/json")
.body("{\n \"person\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"addressLine1\": \"<string>\",\n \"addressLine2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"dateOfService\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"serviceCode\": \"<string>\",\n \"checkDemographics\": true,\n \"checkCredit\": true,\n \"runBusinessRules\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/clearinghouse/discovery")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"person\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"addressLine1\": \"<string>\",\n \"addressLine2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"dateOfService\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"serviceCode\": \"<string>\",\n \"checkDemographics\": true,\n \"checkCredit\": true,\n \"runBusinessRules\": true\n}"
response = http.request(request)
puts response.read_body{
"result": "<unknown>"
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}{
"error": "<string>"
}Clearinghouse
Run discovery process
Initiates a discovery process to find insurance coverage for a patient using Front Runner integration.
POST
/
api
/
v2
/
clearinghouse
/
discovery
Run discovery process
curl --request POST \
--url https://api.example.com/api/v2/clearinghouse/discovery \
--header 'Content-Type: application/json' \
--data '
{
"person": {
"firstName": "<string>",
"lastName": "<string>",
"dateOfBirth": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"dateOfService": "<string>",
"accountNumber": "<string>",
"serviceCode": "<string>",
"checkDemographics": true,
"checkCredit": true,
"runBusinessRules": true
}
'import requests
url = "https://api.example.com/api/v2/clearinghouse/discovery"
payload = {
"person": {
"firstName": "<string>",
"lastName": "<string>",
"dateOfBirth": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"dateOfService": "<string>",
"accountNumber": "<string>",
"serviceCode": "<string>",
"checkDemographics": True,
"checkCredit": True,
"runBusinessRules": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
person: {
firstName: '<string>',
lastName: '<string>',
dateOfBirth: '<string>',
addressLine1: '<string>',
addressLine2: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
},
dateOfService: '<string>',
accountNumber: '<string>',
serviceCode: '<string>',
checkDemographics: true,
checkCredit: true,
runBusinessRules: true
})
};
fetch('https://api.example.com/api/v2/clearinghouse/discovery', 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.example.com/api/v2/clearinghouse/discovery",
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([
'person' => [
'firstName' => '<string>',
'lastName' => '<string>',
'dateOfBirth' => '<string>',
'addressLine1' => '<string>',
'addressLine2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip' => '<string>'
],
'dateOfService' => '<string>',
'accountNumber' => '<string>',
'serviceCode' => '<string>',
'checkDemographics' => true,
'checkCredit' => true,
'runBusinessRules' => true
]),
CURLOPT_HTTPHEADER => [
"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.example.com/api/v2/clearinghouse/discovery"
payload := strings.NewReader("{\n \"person\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"addressLine1\": \"<string>\",\n \"addressLine2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"dateOfService\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"serviceCode\": \"<string>\",\n \"checkDemographics\": true,\n \"checkCredit\": true,\n \"runBusinessRules\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/api/v2/clearinghouse/discovery")
.header("Content-Type", "application/json")
.body("{\n \"person\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"addressLine1\": \"<string>\",\n \"addressLine2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"dateOfService\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"serviceCode\": \"<string>\",\n \"checkDemographics\": true,\n \"checkCredit\": true,\n \"runBusinessRules\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/clearinghouse/discovery")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"person\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"addressLine1\": \"<string>\",\n \"addressLine2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"dateOfService\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"serviceCode\": \"<string>\",\n \"checkDemographics\": true,\n \"checkCredit\": true,\n \"runBusinessRules\": true\n}"
response = http.request(request)
puts response.read_body{
"result": "<unknown>"
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}{
"error": "<string>"
}Headers
A unique identifier for the event. If the same event is sent with the same idempotency key, the event will be ignored.
Body
application/json
Show child attributes
Show child attributes
Date of service (YYYY-MM-DD)
Account number
Service code
Whether to check demographics
Whether to check credit
Whether to run business rules
Response
Discovery process completed successfully.
⌘I