Idarat Hisabat Al Mahal — API integration & OpenData services

Protocol analysis, data extraction and production-ready APIs for the Arabic store accounting app إدارة حسابات المحل (package: fouadaljarbany.manag.manag_my_stor)

From $300 · Pay-per-call available
OpenData · OpenFinance · MENA retail · ZATCA-ready

Turn your إدارة حسابات المحل back-office into connected APIs — without breaking the shopkeeper workflow

إدارة حسابات المحل (Store Account Management) keeps daily sales, purchase invoices, inventory movements, customer and supplier balances, cashier transactions, and employee activity on a single Android device, syncing to the cloud when online. We convert that structured, per-store ledger into authorized REST APIs so ERP systems, e-invoicing platforms, tax portals, and analytics stacks can consume the same data without re-keying it.

Account & session APIs — Phone-number login and cloud-restore flow mapped to OAuth-style tokens so downstream apps can re-bind a shop owner's account, refresh sessions, and enumerate multi-branch entities.
Invoice & transaction export — Sales, purchase, and return invoices retrievable by date range, branch, cashier, or customer; normalized to JSON, CSV, Excel, or XML-with-PDF-A/3 as required by ZATCA Phase 2.
Inventory & expiry feeds — Unlimited SKU list, barcode-scanned movements, expiry-date snapshots, and low-stock alerts streamed as webhook events for replenishment and shelf-life monitoring.
Cashier, expense & payroll lines — Withdrawals, deposits, expenses, and salary payments exposed as ledger entries, aligned with OpenFinance-style account/balance/transaction resources for SME cash-flow dashboards.

Feature modules we expose as APIs

1. Authentication & multi-tenant shops

إدارة حسابات المحل identifies each merchant by phone number; on login, the cloud backend restores the entire shop dataset. We mirror this into an /auth/phone + OTP flow that returns a signed token scoped to shop_id. Multi-branch owners get a listing endpoint to enumerate every branch and its employee roster, useful for franchises moving onto a centralized ERP.

2. Sales, purchase & return invoices

Invoice records carry header (customer/supplier, date, cashier, payment method), line items (SKU, qty, unit price, discount, tax), and totals. Our /invoices endpoint supports pagination, PDF re-rendering with the shop logo, and Bluetooth-printer payload export — directly reusable for ZATCA-compliant XML generation with embedded PDF/A-3.

3. Inventory & expiry alerts

Products searchable by name or QR scanner map to /products, /stock-movements, and a /expiry-alerts stream. Merchants who enable the optional 2-months-before-expiry warning, or the configurable low-stock threshold, produce event streams that downstream replenishment engines and dead-stock analytics can subscribe to.

4. Customers, suppliers & dunning

Receivables and payables are tracked per counterparty. Our /contacts and /statements endpoints surface balance aging, last-payment date, and the original SMS/WhatsApp reminder template used by the shop owner — enabling unified dunning workflows across a group of stores.

5. Cashier, expenses & payroll

Every withdrawal, deposit, expense category, and salary payment is a ledger row tied to a cashier session. We normalize them into an OpenFinance-style /transactions feed (amount, currency, category, counterparty, running balance) so SME finance teams can reconcile daily tills against bank statements.

6. Employee permissions & audit trail

The app lets shop owners grant per-employee access to invoices, inventory, or reports. We expose that RBAC matrix plus an audit log (who/when/what) through /employees and /audit-events, which plugs into SOC2-style review cycles and internal-control reporting for larger franchise owners.

Data available for integration (OpenData inventory)

The matrix below summarizes the primary data domains we have extracted from إدارة حسابات المحل during past integration work. Granularity describes the smallest retrievable unit; "typical use" indicates the downstream scenarios we most often build for.

Data typeSource screen / featureGranularityTypical downstream use
Sales & return invoicesInvoice module (sales, purchase, return)Per invoice / per line item, with tax linesZATCA e-invoicing submission, revenue analytics, loyalty engines
Inventory & SKU masterProduct catalogue + QR barcode scannerPer SKU; barcode, cost, price, expiry, min-stockReplenishment, dead-stock reports, catalogue syndication
Stock movementsPurchases, sales, adjustments, returnsPer movement, time-stamped, with source docFIFO/LIFO costing, shrinkage monitoring, audit trails
Expiry & low-stock alertsOptional early-warning modulePer SKU, per threshold eventAutomated reorder, shelf-life compliance, FMCG dashboards
Customers & suppliersCounterparty ledgerPer entity, with aging bucketsCredit scoring, collections, supplier risk review
Cashier / expense ledgerSafe, expenses, withdrawals, depositsPer transaction, per cashier sessionBank reconciliation, SME cash-flow dashboards
Employee & RBACTeam module with scoped permissionsPer employee, per permission flagInternal controls, payroll, shift analytics
Reports & KPIsDaily / weekly / monthly / annual reportsPer period, per branch, with logo overlayOwner dashboards, tax-authority submissions, investor reporting

Typical integration scenarios

Scenario A — ZATCA Phase 2 bridge for Saudi shops

Context: a SAR 375K+ turnover shopkeeper already using إدارة حسابات المحل must integrate with ZATCA's Fatoora portal before the 30 June 2026 wave deadline. We read invoice headers/lines from the app, build the required XML with UUID, cryptographic stamp, and sequential numbering, embed a PDF/A-3, and push to Fatoora via HTTPS. Involved data: sales + return invoices, tax lines, customer VAT number. This maps OpenData → national e-invoicing rail.

Scenario B — ERP & accounting handover

Context: a growing retailer is migrating from إدارة حسابات المحل to Daftra, Qoyod, Wafeq, Mezan or Zoho Books. Instead of re-keying thousands of invoices, we expose /invoices, /contacts, and /stock-movements and run a one-way replication job. This reuses the cloud-restore dataset and preserves full history, a classic OpenData portability use case.

Scenario C — Multi-branch consolidation

Context: a franchise owner runs 6–20 shops, each on a separate phone running إدارة حسابات المحل. We build a central backend that polls every shop_id, merges inventory and sales, and produces a consolidated P&L. Data involved: shop roster, daily sales aggregates, expense lines. Maps cleanly to an OpenFinance "multi-account" API shape.

Scenario D — WhatsApp / SMS dunning automation

Context: the app already lets owners send manual reminders to debtors via SMS or WhatsApp. We wrap /contacts + customer balance into a scheduled job that fires templated messages through the WhatsApp Business API, with configurable aging buckets (30/60/90 days). Involved data: customer ledger, overdue balances, preferred channel.

Scenario E — Cash-flow dashboard for lenders

Context: a MENA fintech lender wants a real read of SME cash flow before extending micro-loans. With merchant consent, we stream /transactions (sales, expenses, cashier movements) and /inventory turnover KPIs into the lender's risk engine. This mirrors OpenBanking-style "account information service provider" flows but on retail operations data rather than bank statements.

Technical implementation

Request: authenticate a shop

POST /api/v1/mahal/auth/phone
Content-Type: application/json

{
  "phone": "+9665XXXXXXXX",
  "country": "SA",
  "device_id": "android-4f3a...",
  "otp_channel": "sms"
}

// 200 OK
{
  "shop_id": "mahal_8812",
  "access_token": "eyJhbGciOi...",
  "refresh_token": "rt_19f4...",
  "branches": [
    {"branch_id": "br_1", "name": "Main Store"},
    {"branch_id": "br_2", "name": "Warehouse"}
  ],
  "scopes": ["invoices:read","inventory:read","transactions:read"]
}

Request: pull sales invoices for ZATCA submission

GET /api/v1/mahal/invoices
  ?shop_id=mahal_8812
  &type=sale
  &from_date=2026-04-01
  &to_date=2026-04-30
  &page=1&page_size=100
Authorization: Bearer <ACCESS_TOKEN>

// 200 OK (excerpt)
{
  "data": [{
    "invoice_id": "inv_40021",
    "uuid": "9f2d3a8e-...-b7",
    "sequence": 4021,
    "issued_at": "2026-04-03T11:42:11+03:00",
    "customer": {"name":"Ali M.", "vat":"3000XXXXXX00003"},
    "lines": [
      {"sku":"8901234567890","qty":2,"unit_price":15.00,
       "tax_rate":0.15,"tax_amount":4.50}
    ],
    "totals": {"subtotal":30.00,"tax":4.50,"grand":34.50},
    "pdf_a3_url": "https://cdn.example.com/inv_40021.pdf"
  }],
  "next_page": 2
}

Webhook: low-stock & expiry alert

POST https://your-erp.example.com/hooks/mahal
X-Mahal-Signature: sha256=3f7c...
Content-Type: application/json

{
  "event": "inventory.alert",
  "shop_id": "mahal_8812",
  "branch_id": "br_1",
  "kind": "expiry_60d",
  "sku": "8900000123456",
  "name": "Yogurt 200g",
  "expiry_date": "2026-06-20",
  "current_stock": 38,
  "min_stock": 24,
  "generated_at": "2026-04-22T07:05:00Z"
}

// Retry policy: exponential back-off up to 24h
// Verify X-Mahal-Signature with HMAC-SHA256(secret, body)

Deliverables checklist

  • OpenAPI 3.1 spec for all endpoints listed above
  • Protocol & auth report (token lifetime, refresh behaviour, cloud-restore flow)
  • Runnable server code in Python (FastAPI) or Node.js (NestJS)
  • Connector libraries for Daftra, Qoyod, Wafeq, Zoho Books, Mezan
  • ZATCA Phase 2 XML + PDF/A-3 packager and UBL 2.1 validator
  • Test harness with fixture shops, fixture invoices, and signed webhooks
  • Deployment notes (Docker, rate limits, observability, log retention)

Compliance & privacy

Regulatory alignment

For Saudi Arabia we follow ZATCA's e-invoicing rules — Phase 1 (generation, live since December 2021) and Phase 2 (integration with the Fatoora portal, rolled out in waves through 2023–2026). Every ZATCA invoice we generate carries a UUID, cryptographic stamp, sequential number, and embedded PDF/A-3, as mandated by the Wave 24 regulations targeting SAR 375K+ turnover taxpayers. For UAE merchants, output formats are aligned with FTA VAT and emaraTax. Personal data handling respects the Saudi Personal Data Protection Law (PDPL, fully enforceable from September 2024) and, where a merchant serves European customers, the GDPR principles of minimization and purpose limitation.

Consent & scope control

Integrations only activate after the shop owner authorizes the scope — we implement explicit consent screens listing invoices, inventory, transactions, and contacts as separate toggles. Refresh tokens are revocable at any time, OTP logs are retained for 90 days, and we strip employee national IDs from API responses unless the merchant explicitly opts in. This keeps the studio aligned with a least-privilege, authorized-access model rather than bulk scraping.

Data flow & architecture

The pipeline stays intentionally simple so SME shopkeepers can audit it end-to-end:

  1. Android client (إدارة حسابات المحل) — offline-first SQLite, phone-number login, Bluetooth printer, QR scanner.
  2. Cloud sync backend — receives invoice, inventory and ledger deltas, deduplicates, and stores per-shop snapshots.
  3. Integration API gateway (our layer) — OAuth-style tokens, rate limiting, scoped endpoints (/invoices, /inventory, /transactions, /contacts).
  4. Downstream consumers — ZATCA Fatoora, ERP/accounting (Daftra / Qoyod / Wafeq / Zoho Books / Mezan), BI dashboards, lending risk engines.

All stages are observable: every token issuance, every invoice export, and every webhook delivery is logged with a correlation ID, so a shopkeeper can trace who pulled which invoice when — a requirement we keep in mind for PDPL and ZATCA audits.

Market positioning & user profile

إدارة حسابات المحل is positioned squarely at the Arabic-speaking SME retail segment: single-branch grocery stores, mini-markets, mobile phone accessory shops, fashion boutiques, pharmacies, and small wholesalers across Saudi Arabia, the UAE, Egypt, Jordan, Iraq, and North Africa. The user is typically the owner-operator who manages the till during the day and checks reports in the evening, plus one to five staff with scoped access. Because the app is Android-only and works offline, it also lands well in markets where high-end POS hardware is uncommon. Integration demand comes from three directions: merchants migrating to full ERP, accountants consolidating multiple shop files for a client, and fintechs underwriting SME loans who want real operations data rather than just bank statements.

Screenshots

Screens referenced during our protocol analysis. Click any thumbnail to enlarge.

إدارة حسابات المحل screenshot 1
إدارة حسابات المحل screenshot 2
إدارة حسابات المحل screenshot 3
إدارة حسابات المحل screenshot 4
إدارة حسابات المحل screenshot 5
إدارة حسابات المحل screenshot 6
إدارة حسابات المحل screenshot 7
إدارة حسابات المحل screenshot 8

Similar apps & integration landscape

Merchants and accountants rarely live inside a single tool. The apps below appear repeatedly alongside إدارة حسابات المحل in MENA SME retail integration projects. We list them here to explain where our connectors slot in — not to rank or critique any of them. Teams searching for those names often land on the same transaction/invoice/inventory consolidation questions we solve for إدارة حسابات المحل.

Daftra

Cloud accounting suite for MENA SMEs across 50+ industries. Holds sales, purchase, inventory, and HR data; a frequent destination when a shop outgrows a phone-only ledger. Users typically want a unified transaction export between Daftra and إدارة حسابات المحل.

Qoyod

Saudi-based cloud accounting (launched 2016) with invoicing, inventory, and payroll. Integrates with Salla, Zid, and Jisr for web orders and GOSI. Cross-export of invoices from إدارة حسابات المحل into Qoyod is a common migration.

Wafeq

UAE-founded cloud accounting platform (Series A, $7.5M). Holds ledger, VAT returns, and bank feeds (Saudi Awwal Bank, Al Rajhi, HSBC, Wio). Shopkeepers often pair Wafeq's bank side with إدارة حسابات المحل's till side.

Mezan

Saudi-developed accounting platform designed around local regulations. Focuses on compliance and Arabic-first UX; a natural landing pad for a small shop moving from a single-phone ledger to a multi-user cloud book.

Zoho Books

Global accounting suite, FTA-approved in the UAE, with Arabic support. Holds invoices, bills, inventory, and banking; often receives exports from Arabic SME ledgers via CSV or API bridges like the one we build for إدارة حسابات المحل.

FirstBIT

FTA-approved ERP popular with UAE SMEs, with strong multi-warehouse inventory. When a retailer grows into multiple branches, we often bridge إدارة حسابات المحل data up into FirstBIT for consolidated reporting.

Cashier — ادارة حسابات المحلات

Another Arabic Android-first store accounting app (package com.ahmedelshazly2020d.sales_managers). Directly comparable feature set; owners sometimes keep both apps on separate branches and want consolidated reporting.

MicroPOS

POS-focused Android app for small shops. Holds product master, receipt journal, and cashier shift data. Teams integrating MicroPOS with ZATCA often reuse the same invoice-to-XML pipeline we build for إدارة حسابات المحل.

Vyapar

India-origin SME accounting & invoicing app with a large footprint in South Asia and growing MENA reach. Similar offline-first architecture; useful reference when designing sync and reconciliation flows for Arabic shops.

DEXEF & Wazen

Arabic desktop/cloud retail systems (DEXEF in Egypt, Wazen in Saudi) targeting larger shops and chains. Owners often consolidate data from إدارة حسابات المحل branches upward into DEXEF or Wazen for group-level financials.

About our studio

We are an independent technical studio specializing in App interface integration and authorized API integration. Our team combines mobile reverse engineering, payments, and SME accounting experience. For MENA retail work, we pay close attention to ZATCA, FTA, and the Saudi PDPL; for OpenFinance work, we lean on experience with ISO 20022, OAuth 2.0, and FAPI profiles.

  • Protocol analysis of Android and iOS apps with compliant scope
  • Open Data, Open Finance, and Open Banking adapters
  • ERP connectors for Daftra, Qoyod, Wafeq, Zoho Books, Mezan, FirstBIT
  • ZATCA Phase 2 XML/PDF-A/3 generation & Fatoora submission
  • Source code delivery from $300 — runnable API source + docs, paid after delivery upon satisfaction
  • Pay-per-call API billing — usage-based pricing, no upfront fee

Contact

Ready to turn إدارة حسابات المحل data into connected APIs? Share the target app name and your requirements and we will scope an engagement.

Open the contact page

Engagement models: fixed-scope source delivery (from $300) or hosted APIs billed per call.

Engagement workflow

  1. Scope confirmation — which modules (invoices, inventory, transactions, contacts) and which destinations (ZATCA, ERP, BI).
  2. Protocol analysis & API design — 2–5 business days depending on complexity.
  3. Build and internal validation — 3–8 business days, including ZATCA sandbox round-trips where relevant.
  4. Docs, samples, and test harness — 1–2 business days.
  5. First delivery — usually 5–15 business days end-to-end; tax-authority approvals may extend timelines.

FAQ

What do you need from me?

The target app name (إدارة حسابات المحل, already provided), the concrete data you need (e.g. monthly invoices in ZATCA XML, low-stock webhooks, multi-branch consolidation), and any existing merchant credentials or sandbox access.

How do you handle ZATCA Phase 2 specifically?

We generate a UBL 2.1 invoice with UUID, cryptographic stamp, sequential numbering, and embedded PDF/A-3, then submit via the Fatoora portal or a certified solution provider. We help you track Wave 24 obligations for SAR 375K+ turnover merchants.

Is this authorized data access?

Yes. We only operate under the shop owner's explicit authorization, using documented or agreed endpoints. No bulk scraping, no hidden token usage, no sidestepping of the vendor's terms of service.
📱 Original app overview (appendix — collapsed by default)

إدارة حسابات المحل (literally "shop account management") is an Arabic-first Android app by developer fouadaljarbany (package fouadaljarbany.manag.manag_my_stor). The product positions itself as a shopkeeper's smart partner, bundling sales, purchases, invoices, customer and supplier ledgers, inventory with barcode scanning, an expense/cashier module, and employee permissions into a single phone-installed tool.

  • Employee permissions — owners add team members and assign scoped access (only invoices, only inventory, only reports). A dedicated employee interface keeps the back-office clean, and changes are pushed as instant notifications when connected online. Offline work re-syncs automatically on reconnect.
  • Inventory — unlimited SKUs, name or QR-scanner lookup, accurate purchase/sale/return tracking, optional per-product expiry dates, an early-warning alert two months before expiry, and a configurable low-stock threshold.
  • Invoices — sales, purchase, and return invoices in one tap; filters, PDF export, and direct Bluetooth printing without extra software.
  • Customers & suppliers — receivables/payables ledger with SMS and WhatsApp reminder shortcuts.
  • Reports — daily, weekly, monthly, annual, and custom reports; editable with the shop's logo and header for professional presentation.
  • Cashier & expenses — log withdrawals, deposits, expenses, and salaries; track the real-time balance of the till.
  • Backups & cloud — login with the phone number and the full dataset is restored automatically; no manual backup ritual required.
  • Positioning — marketed as suitable for both small and large shops, emphasizing speed, simplicity, and offline resilience; 24/7 technical support is highlighted in the listing.

This page is a technical integration overview prepared by an independent studio; it is not affiliated with or endorsed by the developer of إدارة حسابات المحل.