> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goteal.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Direct Connection: matched after the applicant enters their NI number

> Income verified. Replay it in sandbox with a test persona.

> [!NOTE]
>
> Draft, needs review: the step text is a first draft. The test personas come from the `staging-lucho` catalogue; personas added to it since are not listed yet. Snapshot of 2026-12-02.

The first lookup finds nothing. The client collects NI numbers, so the NI number form shows on the same screen; the applicant enters it, the second lookup matches and the journey ends on the summary.

**Outcome:** Income verified. **Shown for:** Essentials, Standard, Full evidence.

## Setup needed

* Ask for the National Insurance number if there's no match: on

Set these in the Console under **Settings**, then **Configuration**. Direct Connections is always on.

## Test persona

Test persona:

## Start the journey

> [tab] Console
>
> 0. In the Console, open **Settings**, then **Configuration**, and turn on the sources above. Click **Publish changes**.
>
>    ![Console: choose the sources: Settings, then Configuration: the income sources the applicant is offered.](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/_console/configuration--products-with-refusal--06-settingsConfig-empty.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=787c55ea8b68ea4680120e8c689755f9)
>
>    choose the sources (Console)
>
> 1. In the Console, open **Users** and click **Create new user**.
>
> 2. Enter the persona's **Forename**, **Surname**, **Date of birth**, **Postcodes** and, if it has one, **NI number**. Leave the user's source switches matching the setup above. Click **Create user**.
>
>    ![Console: create the user: Users, then Create new user: the applicant's details and their sources.](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/_console/applicant-create--user-connection-only--08-userCreate-filled.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=f45c2bd7b42a979b61068c4a6dee5f2e)
>
>    create the user (Console)
>
> 3. The Console shows the link for the new user. Click **Copy link** (later, open the user and click **Share links**).
>
>    ![Console: copy the link: The link for the new user. Send it to the applicant.](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/_console/applicant-create--user-connection-only--09-shareLink-empty.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=964141e160a89e96c0135dbbcc98f51a)
>
>    copy the link (Console)
>
> 4. Open the link in a private browser window. You're now the applicant.

> [tab] API
>
> Create the user with the persona's details, then create a link for it. Replace `<your-sandbox-api-key>` with your own sandbox key.
>
> ```bash Create the user theme={null}
> curl --request POST \
>   --url https://api.sandbox.goteal.co/users \
>   --header 'Content-Type: application/json' \
>   --header 'X-API-KEY: <your-sandbox-api-key>' \
>   --data '{
>   "forename": "Noor",
>   "surname": "Haddad",
>   "date_of_birth": "1992-07-19T00:00:00.000Z",
>   "post_codes": [
>     "LS6 2QT"
>   ],
>   "payroll_period_months": 12,
>   "ni_number": "QQ100004A"
> }'
> ```
>
> ```bash Create a link for the user theme={null}
> curl --request POST \
>   --url https://api.sandbox.goteal.co/user-tokens \
>   --header 'Content-Type: application/json' \
>   --header 'X-API-KEY: <your-sandbox-api-key>' \
>   --data '{"user_id": "<user_id from the first response>"}'
> ```
>
> Open the `webapp_link` from the response in a private browser window. The applicant gives consent on the first screen, which records the authorisation (`POST /authorisations`).

## Steps

**1. Consent**

![Consent: What will be shared, who sees it, for how long, and that the applicant can withdraw their authorisation. Continuing gives consent.](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/direct-match-nin/most-common--01-consent-empty.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=b241cad0124238101fd623d1581eec92)

What will be shared, who sees it, for how long, and that the applicant can withdraw their authorisation. Continuing gives consent.

**Do:** Click "Continue".

**Next:** Payroll search.

**2. Payroll search**

![Payroll search: Teal searches payroll records using the details you sent (Direct Connections); while it searches the applicant sees "Loading.". When there's no match and the NI number question is on, the applicant is asked for their National Insurance number. When there's still no match, they see "We couldn't find your payroll records" and the other ways to share income.](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/direct-match-nin/most-common--02-ninCapture-transient.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=0a176d61363ccf15d1bd1b19f0b7e3e3)

Teal searches payroll records using the details you sent (Direct Connections); while it searches the applicant sees "Loading.". When there's no match and the NI number question is on, the applicant is asked for their National Insurance number. When there's still no match, they see "We couldn't find your payroll records" and the other ways to share income.

**Do:** The search finds the persona's payroll. If you're asked for an NI number, enter the persona's.

**Next:** Result.

**3. Result**

![Result: Teal reads the connection or upload ("Collecting your payslips. This can take a minute.", then "Signed in. Done.") and moves on by itself. If it fails, it says so ("Problems connecting your account").](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/direct-match-nin/most-common--03-result-transient.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=5aa5086228d15f1cedd34d8e754aec47)

Teal reads the connection or upload ("Collecting your payslips. This can take a minute.", then "Signed in. Done.") and moves on by itself. If it fails, it says so ("Problems connecting your account").

**Do:** Wait. The next screen opens by itself.

**Next:** Check what you'll share.

**4. Check what you'll share**

![Check what you'll share: Everything that will be shared with you (income sources, documents, any months still missing), with "Add another income source".](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/direct-match-nin/most-common--04-summary-empty.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=9767b37a5ebc8038c0abacc35ebe8126)

Everything that will be shared with you (income sources, documents, any months still missing), with "Add another income source".

**Do:** Click "Confirm and share".

**Next:** Done.

**5. Done**

![Done: "Done. Your income has been shared with \<your company>." With a return address the applicant goes back to your app instead.](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/direct-match-nin/most-common--05-done-empty.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=ba53ce801e8fdd25fd9ffa910ba5f500)

"Done. Your income has been shared with \<your company>." With a return address the applicant goes back to your app instead.

**Do:** Click "Close", or "Back to" your app.

## Check the result

Expected outcome: **Income verified**.

* **Console:** open **Users**, find the persona and open the user to see what was shared.

  ![Console: see the result: The user's page: who they are, their employer and the income they shared.](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/_console/applicant-review--download-payslip-report--08-userDetail-empty.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=a9217b2ff46da213fb5c6e63864b749f)

  An example user page (Console). Yours shows this persona and this journey's outcome.

* **API:**

```bash theme={null}
curl --request GET \
  --url https://api.sandbox.goteal.co/payroll/<user_id> \
  --header 'X-API-KEY: <your-sandbox-api-key>'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.