---
title: "Create a test user which is an individual"
method: POST
path: "/create-test-user/individuals"
tags: ["create-test-user"]
---

# Create a test user which is an individual

`POST /create-test-user/individuals`

This resource creates and returns a test user which is an individual. The caller can specify the required service enrolments in the request body. If no request body is supplied, the test user is created with no service enrolments.  Test users that have not been tested against within a 3-month period will be automatically deleted.

## Request body

- object — Create Individual Request
  - `eoriNumber` string — Economic Operator Registration and Identification (EORI) number. Regular expressions:<br><code>^(GB|XI)[0-9]{12,15}$</code> A GB or XI EORI.<br><code>^[A-Z]{2}[0-9]{1,15}$</code> An EU EORI.
  - `nino` string — National Insurance number. Must be enrolled with 'national-insurance' or 'mtd-income-tax' services for this to be used.

## Response `201`

The individual test user resource has been created.

- object — Create Individual Response
  - `userId` string, required — Government Gateway ID.
  - `password` string, required — Government Gateway password.
  - `userFullName` string, required — Government Gateway user's full name.
  - `emailAddress` string, required — Government Gateway user's email address.
  - `individualDetails` object, required
    - `firstName` string, required — Individual's first name.
    - `lastName` string, required — Individual's last name.
    - `dateOfBirth` string, date, required — Individual's date of birth.
    - `address` object, required
      - `line1` string, required — Individual's first line of address.
      - `line2` string, required — Individual's second line of address.
      - `postcode` string, required — Individual's postcode.
  - `saUtr` string — Self Assessment UTR.
  - `nino` string — National Insurance number.
  - `mtdItId` string — Making Tax Digital Income Tax ID.
  - `eoriNumber` string — Economic Operator Registration and Identification (EORI) number.
  - `vrn` string — VAT Reference Number.
  - `vatRegistrationDate` string, date — Date of registration for VAT.

---

[API](https://skmtc.dev/hmrc/apis/api-platform-test-user.md) · [All operations](https://skmtc.dev/hmrc/apis/api-platform-test-user/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hmrc/api-platform-test-user/revisions/14d026fe1251/schema)
