# Certn

> Order and track background check cases in Certn, download their reports, manage packages and tags, and watch for new, changed and completed cases.

App · 22 actions. Web page: https://docs.lodol.com/docs/integrations/certn

## Actions

### Activate a package

Activate a package so it can be ordered again.

**Inputs**

- Package (`package_id`, text, required): The package.

**Outputs**

- `data` (object): Unspecified response body

**Example output**

```json
{
  "data": {}
}
```

### Cancel a case

Cancel a case. Certn allows it only while none of its checks has started.

**Inputs**

- Case ID (`case_id`, text, required): The case.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {}
}
```

### Create a package

Create a package. A package can't be changed once made, only turned off and on.

**Inputs**

- Name (`name`, text, required): The package's name.
- Description (`description`, text): What the package is for.
- Checks (`check_types_with_arguments`, object, required): The checks in the package, each a versioned check type with its arguments, such as `{"IDENTITY_VERIFICATION_1": {}}`.
- Tag names (`tag_names`, list): Tags to put on cases ordered from the package.
- Applicant pays (`is_applicant_pay`, true/false): Have the applicant pay. Every check must allow it.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "package_id": "example"
  }
}
```

### Create a tag

Create a tag to put on cases.

**Inputs**

- Name (`name`, text, required): The tag's name, up to 100 characters.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "id": "example"
  }
}
```

### Deactivate a package

Deactivate a package so it can no longer be ordered.

**Inputs**

- Package (`package_id`, text, required): The package.

**Outputs**

- `data` (object): Unspecified response body

**Example output**

```json
{
  "data": {}
}
```

### Generate a case report

Start making a PDF report of a case. Use Get a report file with the returned ID to download it.

**Inputs**

- Case ID (`case_id`, text, required): The case.
- Language (`language`, text): The report's language. One of: `en-US`, `en-CA`, `en-GB`, `en-AU`, `fr-CA`.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "case_report_file_id": "example"
  }
}
```

### Get a case

Get a case with each of its checks, their statuses and results.

**Inputs**

- Case ID (`case_id`, text, required): The case.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "applicant_language": "example",
    "billing": {
      "currency": "example",
      "is_invoiceable": false,
      "num_billed_checks": 1,
      "subtotal_billed_amount": 1.0,
      "subtotal_passthrough_access_fees": 1.0,
      "subtotal_tax_amount": 1.0,
      "total_billed_case_amount": 1.0
    },
    "bundles": "example",
    "check_types_with_arguments": {},
    "checks": [],
    "completed_on": "example",
    "created": "example",
    "decision": {
      "label": "example",
      "name": "example"
    },
    "email_address": "example",
    "group": "example",
    "id": "example",
    "input_claims": {},
    "invite_link": "example",
    "linked_cases": "example",
    "ordered_by": "example",
    "overall_score": "example",
    "overall_status": "example",
    "primary_case": "example",
    "short_id": "example",
    "tags": []
  }
}
```

### Get a case's supplementary information

Get the extra information gathered for each check of a case.

**Inputs**

- Case ID (`case_id`, text, required): The case.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "checks": [],
    "id": "example"
  }
}
```

### Get a group

Get one group and its users.

**Inputs**

- Group (`group_id`, text, required): The group.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "applicant_facing_name": "example",
    "created": "example",
    "id": "example",
    "is_active": false,
    "legacy_id": "example",
    "modified": "example",
    "name": "example",
    "parent_id": "example",
    "permissible_purpose": "example",
    "short_id": "example",
    "users": []
  }
}
```

### Get a report file

Check whether a case report is ready and get a link to download it. The link expires after 3 hours.

**Inputs**

- Report file ID (`report_file_id`, text, required): The case report file ID from **Generate a case report**.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "pdf_url": "example",
    "status": "example"
  }
}
```

### Get a user

Get one user.

**Inputs**

- User (`user`, text, required): The user.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "created": "example",
    "email": "example",
    "full_name": "example",
    "groups": [],
    "id": "example",
    "is_active": false,
    "location_country": "example",
    "roles": []
  }
}
```

### Get the account

Get the Certn customer account the API key belongs to.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "account_manager": "example",
    "auth0_display_name": "example",
    "auth0_id": "example",
    "auth0_name": "example",
    "client_type": "example",
    "id": "example",
    "legacy_id": "example",
    "legacy_source": "example",
    "primary_region": "example",
    "subsidiary": "example"
  }
}
```

### List a group's bundles

List the bundles of checks a group can order, with the checks each one orders.

**Inputs**

- Group (`group_id`, text, required): The group.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "bundles": []
  }
}
```

### List cases

List your background check cases, with filters for status, applicant, group, tag and order date.

**Inputs**

- Overall status (`overall_status`, list): Only cases in these statuses. One or more of: `APPLICANT_ACTION_REQUIRED` (Applicant action required), `APPLICANT_DECLINED` (Applicant declined), `APPLICANT_EXPIRED` (Applicant expired), `APPLICANT_INVITED` (Applicant invited), `APPLICANT_OPENED` (Applicant opened), `APPLICANT_STARTED` (Applicant started), `APPLICANT_SUBMITTED` (Applicant submitted), `CANCELLED`, `CASE_ORDERED` (Case ordered), `CLIENT_ACTION_REQUIRED` (Client action required), and 5 more.
- Email address (`email_address`, text): Only cases for this applicant email address.
- Group (`group`, list): Only cases in these groups.
- Tag (`tag`, list): Only cases with these tags.
- Ordered by (`ordered_by`, list): Only cases ordered by these users.
- Ordered after (`order_timeframe_after`, date): Only cases ordered on or after this date.
- Ordered before (`order_timeframe_before`, date): Only cases ordered on or before this date.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "pagination": {
      "current_page": 1,
      "next_page": 1,
      "page_count": 1,
      "page_size": 1,
      "previous_page": 1,
      "result_count": 1
    },
    "results": []
  }
}
```

### List events

List past events, such as case and check status changes.

**Inputs**

- After event ID (`last_processed_event_id`, text): Only events after the one with this ID.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": []
  }
}
```

### List groups

List the groups that organize your cases and users.

**Inputs**

- Name (`name`, text): Only groups with this name.
- Active (`is_active`, true/false): Only active, or only inactive, groups.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "pagination": {
      "current_page": 1,
      "next_page": 1,
      "page_count": 1,
      "page_size": 1,
      "previous_page": 1,
      "result_count": 1
    },
    "results": []
  }
}
```

### List packages

List your packages: saved sets of checks and tags to order together.

**Inputs**

- Active (`is_active`, true/false): Only active, or only inactive, packages.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "pagination": {
      "current_page": 1,
      "next_page": 1,
      "page_count": 1,
      "page_size": 1,
      "previous_page": 1,
      "result_count": 1
    },
    "results": []
  }
}
```

### List questionnaires

List the questionnaires your checks can use.

**Inputs**

- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "pagination": {
      "current_page": 1,
      "next_page": 1,
      "page_count": 1,
      "page_size": 1,
      "previous_page": 1,
      "result_count": 1
    },
    "results": []
  }
}
```

### List tags

List the tags you can put on cases.

**Inputs**

- Name (`name`, text): Only the tag with this name.
- Active (`is_active`, true/false): Only active, or only inactive, tags.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "pagination": {
      "current_page": 1,
      "next_page": 1,
      "page_count": 1,
      "page_size": 1,
      "previous_page": 1,
      "result_count": 1
    },
    "results": []
  }
}
```

### List users

List the people in your Certn account, admins included.

**Inputs**

- Email (`email`, text): Only the user with this email address.
- Full name (`full_name`, text): Only users with this name.
- Role (`role`, list): Only users with these Client Portal roles. One or more of: `ADMIN`, `BILLING`, `CONTRIBUTOR`, `MANAGER`, `REQUESTOR`.
- Active (`is_active`, true/false): Only active, or only inactive, users.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "pagination": {
      "current_page": 1,
      "next_page": 1,
      "page_count": 1,
      "page_size": 1,
      "previous_page": 1,
      "result_count": 1
    },
    "results": []
  }
}
```

### Order a case

Order background checks on an applicant. Certn bills each check ordered.

**Inputs**

- Email address (`email_address`, text, required): The applicant's email address.
- Send invite email (`send_invite_email`, true/false): Email the applicant an invitation to fill in their details. Turn it off, with **Return invite link** off too, for a quickscreen where you give their details yourself.
- Return invite link (`return_invite_link`, true/false): Return the invitation link so you can send it to the applicant yourself.
- Message (`message`, text): A custom message to add to the invitation.
- Input claims (`input_claims`, object): The applicant's details for a quickscreen, such as `name`, `date_of_birth` and `residences`, in the shape each check documents.
- Group (`group`, text): The group the case belongs to.
- Ordered by (`ordered_by`, text): The user ordering the case.
- Applicant language (`applicant_language`, text): The applicant's language. One of: `en-US`, `en-CA`, `en-GB`, `en-AU`, `fr-CA`.
- Checks (`check_types_with_arguments`, object, required): The checks to order, each a versioned check type with its arguments, such as `{"IDENTITY_VERIFICATION_1": {}}`.
- Send report email (`send_report_email`, true/false): Email the applicant their report when it's done. Quickscreen orders only.
- Tags (`tags`, list): Tags to put on the case.
- Bundles (`bundles`, list): The IDs of bundles to order with the case.
- Mobile number (`mobile_number`, text): The applicant's mobile number, in international format such as `+16045550123`, for text or WhatsApp notices.
- Notification channels (`notification_channels`, list): How to message the mobile number. Text messages are used when this is empty. One or more of: `SMS`, `WHATSAPP`.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "id": "example",
    "invite_link": "example"
  }
}
```

### Order a case from a package

Order a case with the checks and tags of a package you set up. Certn bills each check ordered.

**Inputs**

- Email address (`email_address`, text, required): The applicant's email address.
- Send invite email (`send_invite_email`, true/false): Email the applicant an invitation to fill in their details. Turn it off, with **Return invite link** off too, for a quickscreen where you give their details yourself.
- Return invite link (`return_invite_link`, true/false): Return the invitation link so you can send it to the applicant yourself.
- Message (`message`, text): A custom message to add to the invitation.
- Input claims (`input_claims`, object): The applicant's details for a quickscreen, such as `name`, `date_of_birth` and `residences`, in the shape each check documents.
- Group (`group`, text): The group the case belongs to.
- Ordered by (`ordered_by`, text): The user ordering the case.
- Applicant language (`applicant_language`, text): The applicant's language. One of: `en-US`, `en-CA`, `en-GB`, `en-AU`, `fr-CA`.
- Package (`package`, text, required): The active package whose checks to order.

**Outputs**

- `data` (object): The response from Certn.

**Example output**

```json
{
  "data": {
    "id": "example",
    "invite_link": "example"
  }
}
```
