Estimate Order Set Pricing
curl --request POST \
--url https://api.us.junction.com/v3/lab_test/estimate_order_set_pricing \
--header 'Content-Type: application/json' \
--header 'x-vital-api-key: <api-key>' \
--data '
{
"order_sets": [
{
"lab_test_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"add_on": {
"marker_ids": [
123
],
"provider_ids": [
"<string>"
]
},
"lab_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"us_state": "<string>",
"billing": "client_bill"
}
'import requests
url = "https://api.us.junction.com/v3/lab_test/estimate_order_set_pricing"
payload = {
"order_sets": [
{
"lab_test_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"add_on": {
"marker_ids": [123],
"provider_ids": ["<string>"]
},
"lab_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"us_state": "<string>",
"billing": "client_bill"
}
headers = {
"x-vital-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-vital-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
order_sets: [
{
lab_test_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
add_on: {marker_ids: [123], provider_ids: ['<string>']},
lab_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
us_state: '<string>',
billing: 'client_bill'
})
};
fetch('https://api.us.junction.com/v3/lab_test/estimate_order_set_pricing', 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.us.junction.com/v3/lab_test/estimate_order_set_pricing",
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([
'order_sets' => [
[
'lab_test_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'add_on' => [
'marker_ids' => [
123
],
'provider_ids' => [
'<string>'
]
],
'lab_account_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'us_state' => '<string>',
'billing' => 'client_bill'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-vital-api-key: <api-key>"
],
]);
$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.us.junction.com/v3/lab_test/estimate_order_set_pricing"
payload := strings.NewReader("{\n \"order_sets\": [\n {\n \"lab_test_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"add_on\": {\n \"marker_ids\": [\n 123\n ],\n \"provider_ids\": [\n \"<string>\"\n ]\n },\n \"lab_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"us_state\": \"<string>\",\n \"billing\": \"client_bill\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-vital-api-key", "<api-key>")
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.us.junction.com/v3/lab_test/estimate_order_set_pricing")
.header("x-vital-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"order_sets\": [\n {\n \"lab_test_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"add_on\": {\n \"marker_ids\": [\n 123\n ],\n \"provider_ids\": [\n \"<string>\"\n ]\n },\n \"lab_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"us_state\": \"<string>\",\n \"billing\": \"client_bill\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us.junction.com/v3/lab_test/estimate_order_set_pricing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-vital-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"order_sets\": [\n {\n \"lab_test_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"add_on\": {\n \"marker_ids\": [\n 123\n ],\n \"provider_ids\": [\n \"<string>\"\n ]\n },\n \"lab_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"us_state\": \"<string>\",\n \"billing\": \"client_bill\"\n}"
response = http.request(request)
puts response.read_body{
"currency": "USD",
"data": [
{
"aggregate_pricing": {
"base_amount_minor": 123,
"modifiers": [
{
"delta_amount_minor": 123,
"conditions": {
"us_state": {
"any_of": [
"<string>"
]
},
"reflex": {},
"critical_care": {}
},
"keys": [
"<string>"
]
}
]
},
"components": [
{
"id": "lab_charge",
"pricing": {
"base_amount_minor": 123,
"modifiers": [
{
"delta_amount_minor": 123,
"conditions": {
"us_state": {
"any_of": [
"<string>"
]
},
"reflex": {},
"critical_care": {}
},
"keys": [
"<string>"
]
}
]
},
"marker_breakdown": {}
}
]
}
]
}{
"detail": "<unknown>"
}Tests
Estimate order set pricing
Estimate the USD price of one or more lab testing order sets before creating an order.
POST
/
v3
/
lab_test
/
estimate_order_set_pricing
Estimate Order Set Pricing
curl --request POST \
--url https://api.us.junction.com/v3/lab_test/estimate_order_set_pricing \
--header 'Content-Type: application/json' \
--header 'x-vital-api-key: <api-key>' \
--data '
{
"order_sets": [
{
"lab_test_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"add_on": {
"marker_ids": [
123
],
"provider_ids": [
"<string>"
]
},
"lab_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"us_state": "<string>",
"billing": "client_bill"
}
'import requests
url = "https://api.us.junction.com/v3/lab_test/estimate_order_set_pricing"
payload = {
"order_sets": [
{
"lab_test_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"add_on": {
"marker_ids": [123],
"provider_ids": ["<string>"]
},
"lab_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"us_state": "<string>",
"billing": "client_bill"
}
headers = {
"x-vital-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-vital-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
order_sets: [
{
lab_test_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
add_on: {marker_ids: [123], provider_ids: ['<string>']},
lab_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
us_state: '<string>',
billing: 'client_bill'
})
};
fetch('https://api.us.junction.com/v3/lab_test/estimate_order_set_pricing', 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.us.junction.com/v3/lab_test/estimate_order_set_pricing",
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([
'order_sets' => [
[
'lab_test_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'add_on' => [
'marker_ids' => [
123
],
'provider_ids' => [
'<string>'
]
],
'lab_account_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'us_state' => '<string>',
'billing' => 'client_bill'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-vital-api-key: <api-key>"
],
]);
$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.us.junction.com/v3/lab_test/estimate_order_set_pricing"
payload := strings.NewReader("{\n \"order_sets\": [\n {\n \"lab_test_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"add_on\": {\n \"marker_ids\": [\n 123\n ],\n \"provider_ids\": [\n \"<string>\"\n ]\n },\n \"lab_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"us_state\": \"<string>\",\n \"billing\": \"client_bill\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-vital-api-key", "<api-key>")
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.us.junction.com/v3/lab_test/estimate_order_set_pricing")
.header("x-vital-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"order_sets\": [\n {\n \"lab_test_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"add_on\": {\n \"marker_ids\": [\n 123\n ],\n \"provider_ids\": [\n \"<string>\"\n ]\n },\n \"lab_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"us_state\": \"<string>\",\n \"billing\": \"client_bill\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us.junction.com/v3/lab_test/estimate_order_set_pricing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-vital-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"order_sets\": [\n {\n \"lab_test_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"add_on\": {\n \"marker_ids\": [\n 123\n ],\n \"provider_ids\": [\n \"<string>\"\n ]\n },\n \"lab_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"us_state\": \"<string>\",\n \"billing\": \"client_bill\"\n}"
response = http.request(request)
puts response.read_body{
"currency": "USD",
"data": [
{
"aggregate_pricing": {
"base_amount_minor": 123,
"modifiers": [
{
"delta_amount_minor": 123,
"conditions": {
"us_state": {
"any_of": [
"<string>"
]
},
"reflex": {},
"critical_care": {}
},
"keys": [
"<string>"
]
}
]
},
"components": [
{
"id": "lab_charge",
"pricing": {
"base_amount_minor": 123,
"modifiers": [
{
"delta_amount_minor": 123,
"conditions": {
"us_state": {
"any_of": [
"<string>"
]
},
"reflex": {},
"critical_care": {}
},
"keys": [
"<string>"
]
}
]
},
"marker_breakdown": {}
}
]
}
]
}{
"detail": "<unknown>"
}This feature is in closed beta.Interested in this feature? Get in touch with your Customer Success Manager.
data[0] contains the estimate for order_sets[0], and so on.
All amounts are in the smallest denomination of the response currency. For USD,
base_amount_minor: 1500 means $15.00. Estimates can change when conditional charges, such as reflex testing or critical care, apply.Authorizations
Vital Team API Key
Body
application/json
Minimum array length:
1Show child attributes
Show child attributes
ℹ️ This enum is non-exhaustive.
Available options:
testkit, walk_in_test, at_home_phlebotomy, on_site_collection ℹ️ This enum is non-exhaustive.
Available options:
client_bill, commercial_insurance, patient_bill_passthrough, patient_bill, upfront_payment Related topics
Order PricingGet Markers for Order SetTurnaround TimesGet Available TestsGet Markers for Lab TestWas this page helpful?