Create a test user

A test user is a dummy Government Gateway user ID used for testing in the sandbox. This includes granting authority to your software to interact with our user-restricted endpoints.

A test user ID has:

  • a type - individual, organisation or agent
  • a password
  • a set of service enrolments and related tax identifiers needed for different APIs

You must use the Create Test User API to:

  • create a test user which is an agent
  • create a test user for use in automated testing
  • select individual service enrollments

Test users and other test data are no longer cleared down every two weeks.

Choose a type of test user

What dummy data is generated?

Creates a test user with a:

  • User ID
  • Password
  • Self Assessment UTR
  • National Insurance Number (NINO)
  • VAT Registration Number
  • Economic Operator Registration and Identification (EORI) number
  • Full Name
  • Email Address
  • Making Tax Digital Income Tax ID
  • VAT Registration Date

Enrols them for all services available through the relevant Create Test User API endpoint.

What dummy data is generated?

Creates a test user with a:

  • User ID
  • Password
  • Self Assessment UTR
  • National Insurance Number (NINO)
  • VAT Registration Number
  • Employer Reference
  • Corporation Tax UTR
  • Economic Operator Registration and Identification (EORI) number
  • Full Name
  • Email Address
  • Making Tax Digital Income Tax ID
  • VAT Registration Date
  • LISA Manager Reference Number
  • Secure Electronic Transfer reference number
  • Pension Scheme Administrator Identifier

Enrols them for all services available through the relevant Create Test User API endpoint.

Get help with this page. Get help with this page.