# Simulator routes

Back to the [README](../README.md).

- `GET /_sim/requests`: recent requests and the responses sent, newest first
- `GET /_sim/otps`: OTPs issued by 4.38 and not yet validated by 4.39 (`txn_ref_no`, `proxy_number`, `otp`, `issued_at`), newest first, since the simulator sends no SMS
- `POST /_sim/reset`: restore seed cards and inventory, and forget purchased cards, txnRefNos, exchange rates, card orders, OTPs, registrations, queued failures and logged requests
- `POST /_sim/fail_next`: queue failures for testing QRMiddleLayer's retry logic, e.g.
  `{"endpoint": "notify_payment", "status": 503, "count": 2}` makes the next two
  notifications return 503. `count` defaults to 1.
