MIB v2 history, cards, contacts, transfers, contact edit
This commit is contained in:
+55
-18
@@ -25,13 +25,31 @@ This document tracks all MIB API calls used by thijooree and their upgrade statu
|
||||
| `sfunc=n` + `A41` | Main Login | Submit username/password credentials | `MibLoginFlow.kt` | ✅ |
|
||||
| `sfunc=n` + `A44` | Get User Salt | Retrieve user salt for password hashing | `MibLoginFlow.kt` | ✅ |
|
||||
| `sfunc=n` + `P47` | Switch Profile | Activate different user profile | `MibLoginFlow.kt` | ✅ |
|
||||
| `sfunc=n` + `A80` | Accounts | Refresh account list/balances for active profile (same shape as P47 `accountBalance`) | — (not used yet) | ℹ️ |
|
||||
| `sfunc=n` + `A83` | GIA Accounts | `{start:1,end:30,statusType:0,includeCount:0}` | — (not used) | ℹ️ |
|
||||
| `sfunc=n` + `A47` | Pending approvals | `{status:"P",start:0,end:30,includeCount:1}` (business profiles) | — (not used) | ℹ️ |
|
||||
| `sfunc=n` + `P41` | Profile image | `{imageHash}` → base64 JPEG in `profileImage` | — (not used yet) | ℹ️ |
|
||||
| `sfunc=n` + `B46` | Beneficiary image | `{imageHash}` → base64 JPEG in `profileImage` | — (not used yet) | ℹ️ |
|
||||
| `sfunc=i` + `P80` | Promo banners | Encrypted with **key1**, not session key | — (not used) | ℹ️ |
|
||||
|
||||
---
|
||||
|
||||
### 2. Beneficiary & Contact Management
|
||||
|
||||
| Endpoint | Purpose | Used By | Status |
|
||||
|----------|---------|---------|--------|
|
||||
v2 moved all contact calls to the encrypted API (`sfunc=n`). Bank IDs/names/SWIFT come from `B49` (login).
|
||||
|
||||
| v1 endpoint | v2 route | Request | Used By | Status |
|
||||
|-------------|----------|---------|---------|--------|
|
||||
| `/ajaxBeneficiary/getCategories` | `B41` | Categories come back in every `B41` response as `categories[]` — no separate call | `MibContactsClient.kt`, `HomeActivity.kt` | 🔧 implemented — needs device test |
|
||||
| `/ajaxBeneficiary/main` | `B41` | `{start,end,benefType:"A",search:"",includeCount:1,searchCategoryId:0,sortBenef:""}` — selects 1-based `rnum` between start/end inclusive; last row has `last:"1"` | `MibContactsClient.kt`, `AddContactSheetFragment.kt` | 🔧 implemented — needs device test |
|
||||
| `/ajaxBeneficiary/createLocalBeneficiary` | `B43` | `{benefName,benefAccount,bankNo,nickName,transferCy,categoryId,image?,bankName,bankSwift}` — nickname > ~20 chars → `invalid nick name` | `MibContactsClient.kt`, `AddContactSheetFragment.kt` | 🔧 implemented (BML captured; MIB-internal bankName/swift from B49, not captured) |
|
||||
| — (new) | `B52` | Update: B43 fields + `benefNo`, `imageChanged:"0"/"1"`, `image` when changed | `MibContactsClient.kt`, `AddContactSheetFragment.kt` (edit mode), `ContactDetailsSheetFragment.kt` | 🔧 implemented — needs device test |
|
||||
| `/ajaxBeneficiary/deleteBeneficiary` | `B48` | `{benefNo}` | `MibContactsClient.kt`, `ContactManager.kt` | 🔧 implemented — needs device test |
|
||||
| `/ajaxBeneficiary/getProfileImage` | `B46` | `{imageHash}` → `profileImage` base64 JPEG | `MibContactsClient.kt` + image loaders | 🔧 implemented — needs device test |
|
||||
| — | `B40` | Account name lookup `{search}` → `[{benefName,benefAccount,bankCode,benefBankName}]` | — (check against transfer lookups) | ℹ️ |
|
||||
| — | `T63` | Currencies + rates | — (not used) | ℹ️ |
|
||||
|
||||
----------|---------|---------|--------|
|
||||
| `/ajaxBeneficiary/getCategories` | Fetch beneficiary category list | `MibContactsClient.kt` | ☐ |
|
||||
| `/ajaxBeneficiary/main` | List all contacts (paginated) | `MibContactsClient.kt`, `AddContactSheetFragment.kt` | ☐ |
|
||||
| `/ajaxBeneficiary/createLocalBeneficiary` | Add new beneficiary | `MibContactsClient.kt`, `AddContactSheetFragment.kt` | ☐ |
|
||||
@@ -42,8 +60,22 @@ This document tracks all MIB API calls used by thijooree and their upgrade statu
|
||||
|
||||
### 3. Fund Transfers
|
||||
|
||||
| Endpoint | Purpose | Used By | Status |
|
||||
|----------|---------|---------|--------|
|
||||
v2 moved transfers and all destination lookups to the encrypted API (`sfunc=n`). Failures come back as HTTP 400 with an encrypted body.
|
||||
|
||||
| v1 endpoint | v2 route | Request / notes | Used By | Status |
|
||||
|-------------|----------|-----------------|---------|--------|
|
||||
| `/ajaxTransfer/transferInternal` | `T50` | `{benefName,benefNo:"0",fromAccountNo,benefAccountNo,transferCy,benefCurrencyCode,amount,bankNo:"2",purpose,otp,otpType:"3"}` → `data[0].{date,trxId,availableBalance}` + `accountBalance[]` | `MibTransferClient.kt`, `MibTransferHandler.kt` | 🔧 implemented — needs device test |
|
||||
| `/ajaxTransfer/transferLocal` | `T51` | Same as T50 with `bankNo:"3"` → `data[0].{date,trxId}` ("Local transfer completed successfully via Favara") | `MibTransferClient.kt`, `MibTransferHandler.kt` | 🔧 implemented — needs device test |
|
||||
| `/ajaxBeneficiary/getAccountName` | `B40` | `{search}` → `data[0].{benefName,benefAccount,bankCode,benefBankName,transferCy?,transferCyDesc?}`; `bankCode` is `"MIB"` or a BIC (`MADVMVMV`, `MALBMVMV`); empty `data` = not found | `MibTransferClient.kt` | 🔧 implemented — needs device test |
|
||||
| `/AjaxAlias/getIPSAccount` | `B40` | as above | `MibTransferClient.kt` | 🔧 implemented — needs device test |
|
||||
| `/AjaxAlias/getAlias` | `B40` | as above; phone must be bare 7 digits (`+960 …` returns empty); Favara ID needs uppercase `A` (`a239225` fails) | `MibTransferClient.kt` | 🔧 implemented — needs device test |
|
||||
| — | `T71` / `T66` / `T63` / `T70` | AML limits / USD sell rate / currencies / upload settings | — (not used) | ℹ️ |
|
||||
|
||||
**Transfer errors seen:**
|
||||
- `reasonCode 213` "Invalid OTP" (`data[0].otpId`) and `reasonCode 707` "That OTP is already used!" → thijooree waits for the next TOTP window and retries once, then shows the error.
|
||||
- `reasonCode 201` "Transaction currency does not match From Account currency!"
|
||||
|
||||
----------|---------|---------|--------|
|
||||
| `/ajaxTransfer/transferInternal` | MIB-to-MIB internal transfer (Bank code 2) | `MibTransferClient.kt`, `TransferFragment.kt` | ☐ |
|
||||
| `/ajaxTransfer/transferLocal` | Transfer to BML account (Bank code 3) | `MibTransferClient.kt`, `TransferFragment.kt` | ☐ |
|
||||
| `/ajaxBeneficiary/getAccountName` | Lookup MIB account (17-digit format) | `MibTransferClient.kt`, `MibTransferHandler.kt` | ☐ |
|
||||
@@ -56,9 +88,9 @@ This document tracks all MIB API calls used by thijooree and their upgrade statu
|
||||
|
||||
| Endpoint | Purpose | Used By | Status |
|
||||
|----------|---------|---------|--------|
|
||||
| `/ajaxDebitCard/fetchCardInfos` | Retrieve list of debit cards | `MibCardsClient.kt`, `PayWithCardFragment.kt` | ☐ |
|
||||
| `/ajaxDebitCard/freeze` | Freeze/block debit card | `MibCardsClient.kt` | ☐ |
|
||||
| `/ajaxDebitCard/unfreeze` | Unfreeze/unblock debit card | `MibCardsClient.kt` | ☐ |
|
||||
| `/ajaxDebitCard/fetchCardInfos` | Retrieve list of debit cards | `MibCardsClient.kt`, `PayWithCardFragment.kt` | ✅ host switched, tested |
|
||||
| `/ajaxDebitCard/freeze` | Freeze/block debit card | `MibCardsClient.kt` | ✅ host switched, tested |
|
||||
| `/ajaxDebitCard/unfreeze` | Unfreeze/unblock debit card | `MibCardsClient.kt` | ✅ host switched, tested |
|
||||
|
||||
---
|
||||
|
||||
@@ -66,7 +98,7 @@ This document tracks all MIB API calls used by thijooree and their upgrade statu
|
||||
|
||||
| Endpoint | Purpose | Used By | Status |
|
||||
|----------|---------|---------|--------|
|
||||
| `/ajaxAccounts/trxHistory` | Fetch account transaction history (paginated) | `MibHistoryClient.kt`, `AccountHistoryFragment.kt`, `TransferHistoryFragment.kt` | ☐ |
|
||||
| ~~`/ajaxAccounts/trxHistory`~~ → `sfunc=n` + `A84` | Fetch account transaction history (paginated). v2 moved this to the encrypted API: `{accountNo,start:0,end:19,includeCount:true,trxType:0,sortTrx:"date",sortDir:"desc"}` (0-based inclusive), response fields unchanged, `total_count` present | `MibHistoryClient.kt`, `HistoryFetcher.kt`, `TransferHistoryFragment.kt` | ✅ implemented, tested incl. paging |
|
||||
|
||||
---
|
||||
|
||||
@@ -90,7 +122,7 @@ This document tracks all MIB API calls used by thijooree and their upgrade statu
|
||||
|
||||
| Endpoint | Purpose | Used By | Status |
|
||||
|----------|---------|---------|--------|
|
||||
| `GET /financing?dashurl=1` | Fetch financing/loan deals (HTML parsing) | `MibFinancingClient.kt` | ☐ |
|
||||
| `GET /financing?dashurl=1` | Fetch financing/loan deals (HTML parsing) | `MibFinancingClient.kt` | ✅ works on `-wv-v2` |
|
||||
|
||||
---
|
||||
|
||||
@@ -98,7 +130,7 @@ This document tracks all MIB API calls used by thijooree and their upgrade statu
|
||||
|
||||
| Endpoint | Purpose | Used By | Status |
|
||||
|----------|---------|---------|--------|
|
||||
| `POST /aProfile/keepAlive` | Periodic session keep-alive (empty body) | `HomeActivity.kt` | ☐ |
|
||||
| `POST /aProfile/keepAlive` | Periodic session keep-alive (empty body) | `HomeActivity.kt` | 🔧 host switched (seen on `-wv-v2` in HAR, 419 after expiry) — needs device test |
|
||||
|
||||
---
|
||||
|
||||
@@ -133,7 +165,7 @@ This document tracks all MIB API calls used by thijooree and their upgrade statu
|
||||
| Type | URL |
|
||||
|------|-----|
|
||||
| **Encrypted API** | `https://faisamobilex-smvc-v2.mib.com.mv/index/` |
|
||||
| **WebView/Data** | `https://faisamobilex-wv.mib.com.mv` |
|
||||
| **WebView/Data** | `https://faisamobilex-wv-v2.mib.com.mv` (v1: `faisamobilex-wv`) |
|
||||
|
||||
---
|
||||
|
||||
@@ -141,10 +173,10 @@ This document tracks all MIB API calls used by thijooree and their upgrade statu
|
||||
|
||||
### Session Headers
|
||||
```
|
||||
Cookie: mbmodel=IOS-1.0; xxid=<session_id>; IBSID=<session_id>; mbnonce=<nonce>; time-tracker=597
|
||||
Cookie: mbmodel=AND-1.0; xxid=<session_id>; IBSID=<session_id>; mbnonce=<nonce>; time-tracker=597
|
||||
X-Requested-With: XMLHttpRequest
|
||||
Accept: */*
|
||||
Origin: https://faisamobilex-wv.mib.com.mv
|
||||
Origin: https://faisamobilex-wv-v2.mib.com.mv
|
||||
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
|
||||
```
|
||||
|
||||
@@ -173,13 +205,18 @@ pgf03 = SHA256(clientSalt + SHA256(SHA256(password) + userSalt))
|
||||
- [x] Test profile switching
|
||||
|
||||
### WebView Endpoints (Pending)
|
||||
- [ ] Test beneficiary management (`/ajaxBeneficiary/*`)
|
||||
- [ ] Test transfer endpoints (`/ajaxTransfer/*`, `/AjaxAlias/*`)
|
||||
- [ ] Test debit card endpoints (`/ajaxDebitCard/*`)
|
||||
- [ ] Test transaction history (`/ajaxAccounts/trxHistory`)
|
||||
- [x] Switch all WebView clients to `faisamobilex-wv-v2` host and `mbmodel=AND-1.0` cookie
|
||||
- [x] Capture beneficiary management — moved to encrypted `B4x`/`B52`, implemented
|
||||
- [ ] Test contacts on device (list, add with/without photo, edit, delete, images)
|
||||
- [x] Capture transfer endpoints — moved to encrypted `T50`/`T51`/`B40`, implemented with OTP retry
|
||||
- [ ] Test transfers on device (MIB→MIB, MIB→BML, lookups incl. Favara alias)
|
||||
- [x] Capture debit card endpoints (`/ajaxDebitCard/*`) — unchanged apart from host
|
||||
- [x] Test debit card endpoints on device
|
||||
- [x] Capture transaction history — moved to encrypted `A84`, implemented
|
||||
- [x] Test transaction history on device (incl. page 2)
|
||||
- [ ] Test activity history (`/aProfile/getPagedActivityHistory`)
|
||||
- [ ] Test user profile scraping (`/personalProfile`)
|
||||
- [ ] Test financing (`/financing?dashurl=1`)
|
||||
- [x] Test financing (`/financing?dashurl=1`) — works on `-wv-v2`
|
||||
- [ ] Test session keep-alive (`/aProfile/keepAlive`)
|
||||
|
||||
### Validation
|
||||
|
||||
Reference in New Issue
Block a user