# Sandbox IRN + E-Way Bill — SUCCESS (API end-to-end) **Date:** 2026-07-31 **Executed by:** automated API test (no manual UI click) **GSP:** Adaequare sandbox ## Result: PASS | Step | Status | Value | |------|--------|--------| | Auth | PASS | `/gsp/authenticate` with sandbox app keys | | e-Invoice (IRN) | **PASS** | Doc `SB260731014440` | | E-Way Bill by IRN | **PASS** | Auto distance (Distance=0) | ### Generated documents - **IRN:** `03460a5e4a8c47b64c16821f3d571b98ad0faca9ca2ffa5ba4c4b523e8679be8` - **Ack No:** `112610255249631` - **Ack Dt:** `2026-07-31 01:45:00` - **E-Way Bill No:** `121012159640` - **EWB Dt:** `2026-07-31 01:45:00` - **Valid till:** `2026-08-02 23:59:00` - **Pin-pin distance (NIC):** `286 KM` (Hyderabad 500037 → Vijayawada 520001) ### Credentials used - Seller GSTIN / user: `36AMBPG7773M002` / `adqgsptsusr1` - Buyer GSTIN: `37AMBPG7773M002` (AP sandbox) - APIs: `/test/enriched/ei/api/invoice` and `/test/enriched/ei/api/ewaybill` ### Critical finding for the app EWB succeeds when **Distance = 0** (NIC auto-calculates). Wrong fixed distances (e.g. 100) return **4013**. Empty TransId with vehicle (Part B) is OK. ### Code fix applied (needs rebuild/publish) `InvoiceController.cs`: - Prefer form distance; allow **0** for auto pin-pin - Default transporter name for unregistered + vehicle - Omit empty `TransId` on EWB Part-B payload Source updated on: - `D:\ChampionErp_2026\...\InvoiceController.cs` - `Z:\ChampionErp_2026 (2)\...\InvoiceController.cs` **Your action:** Rebuild + Publish to `Z:\builds\ChampionERP_Build\`, then UI generate IRN/EWB will follow the same path. ### Evidence files `Z:\builds\UI_Test_Records\exports\` - `sandbox_irn_response_*.json` - `sandbox_ewb_SUCCESS.json` - `sandbox_ewb_retry_1.json`