> ## 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.

# The next step fails to load: the applicant tries again

> Other outcome. 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.

Asking payroll-api for the next screen fails. The journey error screen offers "Try again", which asks again and continues where the applicant was.

**Outcome:** Other outcome. **Shown for:** Essentials, Standard, Full evidence.

## Setup needed

* Any setup: this journey doesn't depend on a switch.

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

## Test persona

> [!NOTE]
>
> This path needs no particular 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": "<forename>",
>   "surname": "<surname>",
>   "date_of_birth": "<date of birth>",
>   "post_codes": [
>     "<postcode>"
>   ],
>   "payroll_period_months": 12
> }'
> ```
>
> ```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/journey-error-retry/most-common--01-consent-empty.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=f69d77f8326b1ef37df732f8310de963)

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:** Something went wrong.

**2. Something went wrong**

![Something went wrong: "Something went wrong. We couldn't load the next step."](https://mintcdn.com/teal/H4CEKzca7hRtbHOe/images/journeys/journey-error-retry/most-common--02-journeyError-empty.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=98fed0215a02b8bb832f30ed19545294)

"Something went wrong. We couldn't load the next step."

**Do:** Click "Try again".

**Next:** Payroll search.

**3. 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/journey-error-retry/most-common--03-ninCapture-empty.webp?fit=max\&auto=format\&n=H4CEKzca7hRtbHOe\&q=85\&s=c27b62822dcd4677286b2d91c71d4f49)

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:** Wait for the search. If you're asked for an NI number, enter the persona's NI number.

## Check the result

Expected outcome: **Other outcome**.

* **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.