> For the complete documentation index, see [llms.txt](https://legacy-docs.usesmileid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-docs.usesmileid.com/supported-id-types/for-individuals-kyc/backed-by-id-authority/test-data.md).

# Test Data

{% hint style="danger" %}
Real ID numbers can only be used in the production environment. To gain access to the production environment please complete the steps outlined in the section [Submit Your Company KYC](/getting-started/complete-your-kyc.md). Then follow the simple steps outlined in the section [Go Live](/getting-started/go-live.md).
{% endhint %}

Below we also provide ID test data that allows you to run an unlimited number of tests in the sandbox environment. The test data will have the same JSON structure as the production environment.\
\
To test error conditions you can modify the final digit in the id number. All the id types follow the format in the table below, **but the final digit determines what response is received.**

{% hint style="danger" %}
**Test data is only available for use in the Sandbox. If test data is used in Production an error will be returned with ResultCode 1014 and the ResultText as "Unsupported ID number format".**
{% endhint %}

| Country      | Co**u**ntry Code | id\_type                | Format              |
| ------------ | ---------------- | ----------------------- | ------------------- |
|              |                  | :flag\_gh:              |                     |
| Ghana        | GH               | GHANA\_CARD             | GHA-000000000-0     |
| Ghana        | GH               | GHANA\_CARD\_NO\_PHOTO  | GHA-000000000-0     |
|              |                  | :flag\_ke:              |                     |
| Kenya        | KE               | ALIEN\_CARD             | 000000              |
| Kenya        | KE               | KRA\_PIN                | 00000000            |
| Kenya        | KE               | NATIONAL\_ID            | 00000000            |
| Kenya        | KE               | NATIONAL\_ID\_NO\_PHOTO | 00000000            |
| Kenya        | KE               | PASSPORT                | A00000000           |
|              |                  | :flag\_ng:              |                     |
| Nigeria      | NG               | BVN                     | 00000000000         |
| Nigeria      | NG               | NIN\_V2                 | 00000000000         |
| Nigeria      | NG               | NIN\_SLIP               | 00000000000         |
| Nigeria      | NG               | VOTER\_ID               | 0000000000000000000 |
| Nigeria      | NG               | PHONE\_NUMBER           | 00000000000         |
|              |                  | :flag\_za:              |                     |
| South Africa | ZA               | NATIONAL\_ID            | 0000000000000       |
| South Africa | ZA               | NATIONAL\_ID\_NO\_PHOTO | 0000000000000       |
| South Africa | ZA               | PHONE\_NUMBER           | 0000000000          |
|              |                  | :flag\_ug:              |                     |
| Uganda       | UG               | NATIONAL\_ID\_NO\_PHOTO | 00000000000000      |
|              |                  | :flag\_zm:              |                     |
| Zambia       | ZM               | BANK\_ACCOUNT           | 0000000000000       |
| Zambia       | ZM               | TPIN                    | 0000000000          |

## How to use the test data

To test various outcomes, change the final digit of the `id_number` to attain the desired outcome.

You may also prepend a two-character alphanumeric prefix (00-99 or 00-ZZ) immediately before the final digit — e.g., 0000000xxY where xx = 00-99 or 00-ZZ and Y = 0-4 — to generate many unique sandbox test IDs while preserving the same outcome logic.

Example formats:

* `000000000Y` (where Y = 0-4)
* `0000000xxY` (where xx = any two alphanumeric characters 0-9 or A-Z, and Y = 0-4)

The two-character prefix does not affect the result — only the last digit Y determines the simulated outcome.

There are four simulated results to test your integration:

<table data-header-hidden><thead><tr><th width="184.33333333333331">Final Digit</th><th>Simulated Result</th><th>Result Code</th></tr></thead><tbody><tr><td>Final Digit</td><td>Simulated Result</td><td>Result Code</td></tr><tr><td>0</td><td>Success with user's information return</td><td>1012</td></tr><tr><td>1</td><td>Failure, no record found</td><td>1013</td></tr><tr><td>2</td><td>Invalid ID number format</td><td>1014</td></tr><tr><td>3</td><td>Database unavailable/unknown network issue</td><td>1015</td></tr><tr><td>4</td><td><a href="/pages/2hvprIvnS9XbKizdeOJv">Success with custom user information return</a></td><td>1012</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://legacy-docs.usesmileid.com/supported-id-types/for-individuals-kyc/backed-by-id-authority/test-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
