> For the complete documentation index, see [llms.txt](https://docs.idlayr.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.idlayr.com/products/risk/sim-swap/testing.md).

# Testing in sandbox

{% hint style="info" %}
**Backend API** · GA
{% endhint %}

Test SIM Swap without real MNO traffic by using a sandbox project. The last digits of the `phone_number` drive the simulated outcome — every response path can be exercised without contacting a real carrier.

See [Project modes](/get-started/concepts/project-modes.md) for the general sandbox model.

## How sandbox testing works

In sandbox mode, IDlayr intercepts the request and returns a simulated result based on the MSISDN suffix. The shape of the response is the same as production — same fields, same error codes — so your integration code doesn't need to branch on environment.

## MSISDN suffix map

| MSISDN ends with | `no_sim_change` | `status`    |
| ---------------- | --------------- | ----------- |
| `0`–`4`          | `true`          | `COMPLETED` |
| `5`–`9`          | `false`         | `COMPLETED` |
| `00`, `55`, `99` | —               | `ERROR`     |

For the cross-product overview of sandbox — what's simulated, what isn't, sandbox retention — see [Sandbox testing](/get-started/sandbox-testing.md).

## What sandbox doesn't simulate

* Real MNO query latency and variance.
* Operator-specific behaviour in SIM-change semantics (some operators only report changes within a fixed window; sandbox returns synthetic data not subject to that).
* Prepaid-line edge cases that some operators handle differently.

Run a small set of production checks against real numbers in your target markets before going live.


---

# 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://docs.idlayr.com/products/risk/sim-swap/testing.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.
