Get case configuration
curl --request GET \
--url https://api-stage.karmacheck.io/config/case/id/{caseId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-stage.karmacheck.io/config/case/id/{caseId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-stage.karmacheck.io/config/case/id/{caseId}', 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-stage.karmacheck.io/config/case/id/{caseId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-stage.karmacheck.io/config/case/id/{caseId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-stage.karmacheck.io/config/case/id/{caseId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stage.karmacheck.io/config/case/id/{caseId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"contacts": [
{
"name": "Dana R.",
"type": "default",
"email": "defaultcontact@example.com",
"phone": "800-555-0150"
}
],
"serviceConfigs": {
"85307784-1f84-471a-8596-c8ea088c3a62": {
"verificationMethod": {
"rawValue": "docs-acceptable",
"pillLabel": "${value}",
"valueDescription": "Documents acceptable.",
"configDescription": "Specifies the verification method used for this service.",
"valueDisplayLabel": "Documents Acceptable",
"configDisplayLabel": "Verification Method"
}
},
"9ac65633-b4c4-4062-875c-3556db9d2a08": {
"verificationMethod": {
"rawValue": "docs-acceptable",
"pillLabel": "${value}",
"valueDescription": "Documents acceptable.",
"configDescription": "Specifies the verification method used for this service.",
"valueDisplayLabel": "Documents Acceptable",
"configDisplayLabel": "Verification Method"
}
},
"service-employment-income": {
"verificationMethod": {
"rawValue": "docs-acceptable",
"pillLabel": "${value}",
"valueDescription": "Documents acceptable.",
"configDescription": "Specifies the verification method used for this service.",
"valueDisplayLabel": "Documents Acceptable",
"configDisplayLabel": "Verification Method"
}
},
"service-ohs-tb-quantiferon-gold": {
"substitutionPolicy": {
"rawValue": "company-default",
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies if T-Spot can be ordered in place of Quantiferon Gold when Quantiferon Gold is unavailable.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "Substitution Policy"
}
},
"service-ohs-tb-tspot-test": {
"substitutionPolicy": {
"rawValue": "company-default",
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies if Quantiferon Gold can be ordered in place of T-Spot when T-Spot is unavailable.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "Substitution Policy"
}
}
},
"diluteDrugPolicy": {
"rawValue": "company-default",
"appliesTo": {
"serviceIds": [],
"serviceCategoryIds": [],
"serviceSubCategoryIds": [
"service-subcat-drug"
]
},
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies next steps when a Drug sample is dilute.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "Dilute Drug Policy"
},
"aliasNameConfiguration": {
"rawValue": "no-alias",
"appliesTo": {
"serviceIds": [],
"serviceCategoryIds": [
"service-cat-criminal"
],
"serviceSubCategoryIds": []
},
"pillLabel": "${value}",
"valueDescription": "No aliases.",
"configDescription": "Specifies the method used to select aliases.",
"valueDisplayLabel": "No Aliases",
"configDisplayLabel": "Alias Name Configuration"
},
"lostOrIncompleteOHSDrugPolicy": {
"rawValue": "company-default",
"appliesTo": {
"serviceIds": [],
"serviceCategoryIds": [
"service-cat-ohs"
],
"serviceSubCategoryIds": []
},
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies next steps when an OHS/Drug sample is lost or incomplete.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "Lost or Incomplete OHS/Drug Policy"
},
"ohsDrugPassportExpirationPolicy": {
"rawValue": "company-default",
"appliesTo": {
"serviceIds": [],
"serviceCategoryIds": [
"service-cat-ohs"
],
"serviceSubCategoryIds": []
},
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies next steps when an OHS/Drug ePassport expires.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "OHS/Drug Passport Expiration Policy"
}
}Cases
Get case configuration
Returns the service configurations and contact information for a case. For information on how to create or update configuration options for a case, see Create case or Add to order.
GET
/
config
/
case
/
id
/
{caseId}
Get case configuration
curl --request GET \
--url https://api-stage.karmacheck.io/config/case/id/{caseId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-stage.karmacheck.io/config/case/id/{caseId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-stage.karmacheck.io/config/case/id/{caseId}', 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-stage.karmacheck.io/config/case/id/{caseId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-stage.karmacheck.io/config/case/id/{caseId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-stage.karmacheck.io/config/case/id/{caseId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stage.karmacheck.io/config/case/id/{caseId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"contacts": [
{
"name": "Dana R.",
"type": "default",
"email": "defaultcontact@example.com",
"phone": "800-555-0150"
}
],
"serviceConfigs": {
"85307784-1f84-471a-8596-c8ea088c3a62": {
"verificationMethod": {
"rawValue": "docs-acceptable",
"pillLabel": "${value}",
"valueDescription": "Documents acceptable.",
"configDescription": "Specifies the verification method used for this service.",
"valueDisplayLabel": "Documents Acceptable",
"configDisplayLabel": "Verification Method"
}
},
"9ac65633-b4c4-4062-875c-3556db9d2a08": {
"verificationMethod": {
"rawValue": "docs-acceptable",
"pillLabel": "${value}",
"valueDescription": "Documents acceptable.",
"configDescription": "Specifies the verification method used for this service.",
"valueDisplayLabel": "Documents Acceptable",
"configDisplayLabel": "Verification Method"
}
},
"service-employment-income": {
"verificationMethod": {
"rawValue": "docs-acceptable",
"pillLabel": "${value}",
"valueDescription": "Documents acceptable.",
"configDescription": "Specifies the verification method used for this service.",
"valueDisplayLabel": "Documents Acceptable",
"configDisplayLabel": "Verification Method"
}
},
"service-ohs-tb-quantiferon-gold": {
"substitutionPolicy": {
"rawValue": "company-default",
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies if T-Spot can be ordered in place of Quantiferon Gold when Quantiferon Gold is unavailable.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "Substitution Policy"
}
},
"service-ohs-tb-tspot-test": {
"substitutionPolicy": {
"rawValue": "company-default",
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies if Quantiferon Gold can be ordered in place of T-Spot when T-Spot is unavailable.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "Substitution Policy"
}
}
},
"diluteDrugPolicy": {
"rawValue": "company-default",
"appliesTo": {
"serviceIds": [],
"serviceCategoryIds": [],
"serviceSubCategoryIds": [
"service-subcat-drug"
]
},
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies next steps when a Drug sample is dilute.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "Dilute Drug Policy"
},
"aliasNameConfiguration": {
"rawValue": "no-alias",
"appliesTo": {
"serviceIds": [],
"serviceCategoryIds": [
"service-cat-criminal"
],
"serviceSubCategoryIds": []
},
"pillLabel": "${value}",
"valueDescription": "No aliases.",
"configDescription": "Specifies the method used to select aliases.",
"valueDisplayLabel": "No Aliases",
"configDisplayLabel": "Alias Name Configuration"
},
"lostOrIncompleteOHSDrugPolicy": {
"rawValue": "company-default",
"appliesTo": {
"serviceIds": [],
"serviceCategoryIds": [
"service-cat-ohs"
],
"serviceSubCategoryIds": []
},
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies next steps when an OHS/Drug sample is lost or incomplete.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "Lost or Incomplete OHS/Drug Policy"
},
"ohsDrugPassportExpirationPolicy": {
"rawValue": "company-default",
"appliesTo": {
"serviceIds": [],
"serviceCategoryIds": [
"service-cat-ohs"
],
"serviceSubCategoryIds": []
},
"pillLabel": "${value}",
"valueDescription": "Refer to company settings.",
"configDescription": "Specifies next steps when an OHS/Drug ePassport expires.",
"valueDisplayLabel": "Refer To Company Settings",
"configDisplayLabel": "OHS/Drug Passport Expiration Policy"
}
}Authorizations
Response
The response can include any combination of the objects described below. The structure of the response is determined by:
- Any points of contact that were added to the case.
- All screenings from the package that was used to create the case, regardless of whether those screenings were ordered for the case.
The configuration [blocked] for a case or package.