TIUI Simulator MX
REST mock of/api/AccountTiuiAmigo/login, POST /api/Guia, GuiaReport,
the detail, getGuia and guias-traking.
Tracking-aware: each guide accumulates its own movement timeline. State is in-memory and resets on restart.
Two things about TIUI surprise people, and both are reproduced faithfully here.
(1) A rejected credential is an HTTP 200 with
messageError and a null
accessToken, while an expired token is an HTTP 401 — only the second one is
renewable, and collapsing them gives either an infinite login loop or a token expiry reported as an admin problem.
(2) An unknown paqueteriaId answers HTTP 500 with the guide ALREADY CREATED —
that is the state the recovery of a lost creation exists for, so the guide really is minted before the 500.
The label is asynchronous: GuiaReport answers 404 until it exists.
Failure mode
current: none
Activate one failure mode at a time. /api/tiui/debug/failure-mode.
The create_then_* pair and folio_duplicate only affect the create;
webhook_drop only the push; the rest affect every request.
Account
Covered postal codes:
0100003100067001100044100640007600097000
(override with TIUI_SIM_COVERED_CPS)Valid paqueteriaId:
1
(override with TIUI_SIM_PAQUETERIA_IDS; anything else → 500 with the guide created)Guides 0
No guides yet. Use
POST /api/tiui/api/Guia from shipping-service or curl to create one.