Admin Auth [x] Login form loads for an unauthenticated visitor [x] Dashboard redirects to login when not authenticated [x] Valid login redirects to dashboard [x] Wrong password is rejected [x] Fifth consecutive failure locks the account for fifteen minutes [x] Authenticated session persists across subsequent calls [x] Disabled admin cannot log in Admin Role Filter [x] Support cannot reach provider configuration [x] Super admin can reach provider configuration [x] Accounts can reach the ledger but not sender id approval [x] Disabled admin account loses access on the very next request Authentication [x] Valid bearer auth succeeds [x] Missing auth returns 401 auth required [x] Malformed bearer scheme returns 401 [x] Wrong bearer secret returns 401 invalid credentials [x] Unknown api key returns 401 invalid credentials [x] Revoked credential returns 401 credential revoked [x] Suspended tenant returns 403 tenant suspended [x] Valid hmac auth succeeds [x] Wrong hmac signature returns 401 sig invalid [x] Replayed nonce returns 401 nonce replay [x] Skewed timestamp returns 401 timestamp skew [x] Non whitelisted ip returns 403 [x] Missing scope returns 403 scope forbidden Balance Auditor [x] Find drifted returns only the mismatched tenant Bulk [x] Personalized messages each get their own encoding and cost [x] Allow partial queues as many as fit and rejects the rest [x] Fully affordable bulk queues everything [x] Invalid message item returns 400 validation error Bulk Sms Bd Provider [x] Send posts personalized messages to smsapimany [x] Known error code maps to human message [x] Unknown error code still surfaces the raw code [x] Connection failure throws provider unavailable [x] Check balance parses numeric field [x] Base url is overridable Credit Service [x] Reserve debits balance and writes ledger row [x] Reserve throws insufficient balance and writes nothing [x] Reserve respects credit limit [x] Reserve throws tenant not found [x] Reserve is idempotent per idempotency key [x] Charge finalizes reserve with zero net balance change [x] Charge is idempotent per reference [x] Refund reverses reserve [x] Refund is idempotent per reference [x] Topup credits balance without sufficiency check [x] Adjust negative respects sufficiency [x] Adjust positive does not check sufficiency [x] Ledger rows cannot be updated or deleted [x] Concurrent reserves only one succeeds when balance covers only one Cross Tenant Isolation [x] Tenant only sees its own sender ids [x] Other tenant sees only its own rows too Csv Recipient Parser [x] Parses rows and skips a recognized header row [x] Works without a header row too [x] Skips rows missing to or message instead of erroring [x] Missing file returns empty rather than throwing Daily Stats Recorder [x] Record created inserts a bucket row [x] Record created twice accumulates in the same bucket [x] Record transition moves count and cost out of the old bucket into the new [x] Record transition is a no op when status is unchanged [x] Bucket date crosses midnight into the next dhaka day Dispatcher [x] Dispatch accepts queued message via null provider [x] Dispatch with no route is retryable and does not refund yet [x] No route failure refunds once retries are exhausted [x] Business rejection is never retried and refunds immediately [x] Dispatch is a no op when nothing is queued Dlr Processor [x] Delivered dlr enqueues a message delivered webhook for a subscribed endpoint [x] Failed dlr enqueues a message failed webhook [x] Unrecognized dlr status never enqueues a webhook [x] Matched dlr updates message status and delivered at [x] Unmatched dlr is logged not lost [x] Unknown provider slug is logged not lost [x] Failed dlr does not refund by default [x] Failed dlr refunds when platform setting overrides to true [x] Unknown dlr status leaves message status untouched Dlr Webhook [x] Valid dlr updates message status [x] Malformed json body does not crash and still logs [x] Empty body does not crash [x] Unknown provider slug still returns 200 and logs Encoding Detector [x] Empty body is zero chars zero parts [x] Pure english is gsm 7 [x] Pure bangla is ucs 2 [x] Banglish mixed is ucs 2 [x] Single bangla character forces whole message to ucs 2 [x] Emoji is ucs 2 and counts as two units [x] Euro sign is gsm 7 extension character counting as two [x] All nine gsm 7 extension characters count as two [x] Exactly 160 gsm chars is single part [x] Exactly 161 gsm chars is two parts [x] Exactly 70 ucs 2 chars is single part [x] Exactly 71 ucs 2 chars is two parts [x] Exactly 153 gsm chars after overflow is still two parts [x] Exactly 307 gsm chars is three parts [x] Gsm 7 basic set allows cr and lf [x] Gsm 7 basic set allows accented latin characters Estimate [x] Estimates english message as gsm 7 [x] Estimates bangla message as ucs 2 with correct total [x] Accepts single string recipient not just array [x] Invalid phone number returns 400 invalid number [x] Missing message returns 400 validation error [x] Too many recipients returns 400 [x] Unapproved sender id returns 403 [x] Approved masking sender id is used [x] Insufficient balance is reported not rejected Example Database [x] Model find all [x] Soft delete leaves row Example Session [x] Session simple Export [x] Full export lifecycle [x] Show of pending job has no download url [x] Download of pending job returns 404 [x] Another tenants token is not found never a leak [x] Missing date range is rejected Generic Http Provider [x] Sends get request with mapped fields and detects success [x] Detects business rejection from response body without throwing [x] Connection failure throws provider unavailable [x] Http 5xx throws provider unavailable [x] No success rule configured treats any non 5xx as accepted Health [x] Is defined app path [x] Base url has been set Log Pruner [x] Prunes only logs older than the cutoff [x] Processes more than one chunk Message Archiver [x] Archives old terminal messages and removes them from the live table [x] Processes more than one chunk Message Status [x] Get own message by uuid succeeds [x] Get another tenants message returns 404 not a leak [x] Get nonexistent message returns 404 [x] Status by message uuids [x] Status by client references [x] Status lookup never returns another tenants messages [x] Status requires either uuids or references [x] Status rejects more than 500 ids Number Normalizer [x] Accepts every accepted format with data set "local with leading zero" [x] Accepts every accepted format with data set "local without leading zero" [x] Accepts every accepted format with data set "with plus and country code" [x] Accepts every accepted format with data set "country code without plus" [x] Accepts every accepted format with data set "with spaces" [x] Accepts every accepted format with data set "with dashes" [x] Accepts every accepted format with data set "with brackets" [x] Accepts every accepted format with data set "plus with spaces and dashes" [x] Detects every operator prefix with data set "013 -> grameenphone" [x] Detects every operator prefix with data set "017 -> grameenphone" [x] Detects every operator prefix with data set "014 -> banglalink" [x] Detects every operator prefix with data set "019 -> banglalink" [x] Detects every operator prefix with data set "015 -> teletalk" [x] Detects every operator prefix with data set "016 -> airtel" [x] Detects every operator prefix with data set "018 -> robi" [x] Rejects invalid numbers with data set "empty string" [x] Rejects invalid numbers with data set "not a number at all" [x] Rejects invalid numbers with data set "too short" [x] Rejects invalid numbers with data set "too long" [x] Rejects invalid numbers with data set "unassigned prefix digit 0 (010)" [x] Rejects invalid numbers with data set "unassigned prefix digit 1 (011)" [x] Rejects invalid numbers with data set "unassigned prefix digit 2 (012)" [x] Rejects invalid numbers with data set "Dhaka landline (02...)" [x] Rejects invalid numbers with data set "wrong country code" [x] Rejects invalid numbers with data set "880 prefix but wrong total length" [x] Rejects invalid numbers with data set "local without leading zero, wrong length" [x] Invalid number exception carries raw input and error code Outbound Webhook Dispatcher [x] Enqueue creates a pending delivery only for subscribed active endpoints [x] Successful delivery signs correctly and recovers a degraded endpoint [x] Failed attempt with retries remaining stays pending with backoff [x] Exhausting every retry abandons the delivery and degrades the endpoint [x] Endpoint disabled after enqueue is skipped without an http call or penalty [x] Claim due leases a row so a second concurrent claim skips it Portal Auth [x] Login form loads for an unauthenticated visitor [x] Dashboard redirects to login when not authenticated [x] Valid login redirects to dashboard and session persists [x] Wrong password is rejected [x] Fifth consecutive failure locks the account for fifteen minutes [x] Suspended tenant cannot use an already open session [x] Locale switch affects subsequent rendered text Portal Bulk Send And Sender Id [x] Bulk csv endpoint rejects a missing file rather than crashing [x] Sender id request form creates a pending row for admin to approve Portal Credential [x] Created credential authenticates against the real api [x] Revoked credential can no longer authenticate Portal Role Filter [x] Viewer cannot reach send or credentials but can read the dashboard [x] Operator can send but not manage credentials [x] Owner can reach everything Portal Send And Reports [x] A non technical user can send an sms and read a report in bangla Provider Manager [x] Fails over to next priority provider on failure [x] All candidates failing throws no route available [x] Provider is marked degraded after reaching failure threshold [x] Degraded provider past cooldown recovers on next success Rate Limit [x] Breaching rate limit returns 429 with retry after [x] Different credentials have independent windows Rate Resolver [x] Falls through to default plan when no override or tenant plan [x] Tenant plan takes precedence over default plan [x] Tenant override takes precedence over tenant plan and default plan [x] Exact encoding match is preferred over any at the same level [x] Falls back to any when no exact encoding match at that level [x] Tenant override at one level does not block fallback to any at that same level [x] Throws when no rate is configured anywhere Reports [x] Messages list returns only this tenants rows with pagination meta [x] Messages list filters by status [x] Messages list filters by sender id and search [x] Messages list rejects invalid status [x] Summary grouped by status [x] Summary grouped by sender id respects date range [x] Summary rejects invalid group by [x] Ledger returns only this tenants entries paginated Retry Service [x] Requeues retryable message past its backoff window [x] Does not requeue before backoff window passes [x] Never requeues a business rejection [x] Requeues a message with no next retry at set at all Send [x] Send queues messages and reserves credit [x] Invalid number rejects whole request and persists nothing [x] Blacklisted recipient is excluded but others still send [x] Insufficient balance rejects whole batch and persists nothing [x] Unapproved sender id returns 403 and persists nothing [x] Idempotency key replay returns identical response without double charging [x] Idempotency key reused with different body returns 409 Sender Id Approval [x] Queue shows the pending request [x] Approving sets status approved at and approved by [x] Rejecting sets status rejected and stores the reason Stats Aggregator [x] Rebuild aggregates messages into matching buckets [x] Rebuild buckets late utc message into the next dhaka day like the live recorder does [x] Rebuild is a full replace not an accumulation Tenant Top Up [x] Top up writes a topup ledger entry and updates the cached balance [x] Top up rejects a non positive amount