Create case
Orders a background check report and opens a case for tracking. The new case includes references to the package. Depending on the values entered in the request, the case goes through one of two flows:
- Candidate onboarding flow: The new case will have an initial status of Pending and a secondary status of Waiting for Authorization. An invitation is emailed to the candidate, who is required to provide their personally identifiable information (PII) via the invitation email.
- Customer-provided PII flow: All PII for the candidate is provided in the request body. Setting
autoProcessto true initiates a case for the candidate and immediately begins processing.
API Integration - Attributing a case to a specific user
To provide additional insight for API integrations the Create Case API supports an optional header that allows an API customer to provide additional information about the end user that is initiating the API call through their integration.
This optional header is only ever used if the API call has a valid authentication token.
The optional header is karmacheck-on-behalf-of and the value that should be provided is an email address.
When the karmacheck-on-behalf-of header contains an email address, the server will validate the email address provided, and if valid, the user associated with the email address will be recorded in the KarmaCheck system as the user that created the associated case.
When validating the email address that is provided for this header:
- if there is no user in the KarmaCheck system, then the value will simply be ignored and the case creation will be attributed to the authenticated API token itself.
- if there is a user in the KarmaCheck system associated with the email address, but that user does not have the proper access to create a case for the package (or is not a user that is directly associated with the calling company) that is being requested then the API call will fail with a result that indicates that the user is not authorized to make that call. This error will occur even though the API token itself may be allowed to make the call but, because of the conflict, the call will be rejected.
Selecting the services to order
By default, a case orders every service that is configured on the package. Use the optional excludeServices array to list the ID of each service that you don’t want to run. For example, if the package includes five drug screenings and you want only one of them, exclude the other four. See the excludeServices property for details.
Restrictions
The following restrictions exist when creating a case. Be sure to adhere to these restrictions when selecting a package or excluding services from the order (via excludeServices).
Criminal and identity screening restrictions
- SSN Trace is required when a County, State, or Federal Criminal Search is being ordered.
- Cannot order Identity Verification and Identity And Liveliness Verification at the same time.
- International Identity Verification cannot be ordered without other international screenings.
- Must choose between US criminal screenings or international criminal screenings.
- Must include International Identity Verification if Canadian Criminal Record Check or International Criminal Record Check is included.
OHS and drug screening restrictions
- Cannot order more than one type of TB test.
- Cannot order DOT and non-DOT drug screenings in the same order.
- Cannot order more than one non-DOT drug screening.
- Only one urine drug screening can be selected for any order.
- Cannot order both vaccine and titer for the same immunization type. This applies for each of the following immunization types: Varicella, Hepatitis A, Hepatitis B, and MMR.
- OSHA Respirator/Fit to Wear Questionnaire is required when Respirator/Mask Fit Testing - Qualitative or Respirator/Mask Fit Testing - Quantitative is being ordered.
- OHS and drug screenings are US-only and cannot be ordered with Canadian or international screenings.
Authorizations
Headers
Optional. The email address of the end user who initiated this request through your integration. Only applied when the request is authenticated with an API User token. When the email matches a KarmaCheck user with the appropriate access, that user is recorded as the creator of the case instead of the API User. See the endpoint description for full validation behavior.
Body
An external identifier that you can use to help track this case in your own system.
KarmaCheck does not do anything with this field other than include it in webhooks and other API calls, so despite its name, you can put any value.
A common use case is for the value to be the email address of the user in your system who ordered the case.
An external identifier that you can use to help track this case in your own system.
KarmaCheck does not do anything with this field other than include it in webhooks and other API calls, so despite its name, you can put any value.
A common use case is for the value to be the identifier of the case in your system.
A parameter to control how KarmaCheck sends email notifications about the case. By default, KarmaCheck sends an email notifying the candidate when a background check is initiated. Email notifications are standard, as further communication with the candidate might be necessary. To prevent certain emails from being sent, use the following values to disable emails to the candidate or customer:
- 1: Prevents sending invite to the candidate
- 2: Prevents sending updates to the candidate
- 4: Prevents sending notifications to the customer
- 7: Disables all email notifications described above
Important: Every service that is configured on the package is ordered by default, unless its ID appears in this array. Although this property is optional, you must use it to get only the services you want. For example, if the package includes five drug screenings and you want a specific one, list the IDs of the other four.
Use this array to skip services that the package would normally run automatically. List the ID of each service to exclude. You can find service IDs in the Services reference. The IDs also appear as serviceId in the response of GET /package/id/{packageId}/services.
Not every service can be excluded. Legal authorizations and SSN Trace are required by other services in the order. For example, SSN Trace is required when you order a County, State, or Federal Criminal Search. Check the Restrictions section of this page before you exclude anything.
Indicates how to handle an active case that exists for the same candidate email:
- Use
addto create a new case anyway. - Use
replaceto archive the existing case and create a new case. Without this field, calling the API returns an error if a case already exists.
add, replace, null Options that describe how to run certain screenings for a case. See Order configuration [blocked] for details on all configuration options.
All properties are optional, but a configuration will be set for all applicable screenings on the package regardless of whether those screenings are ordered. Therefore, aside from the contacts object, the default configuration will be used if one is not set.