Dofied API integration services (B2B cash receipts & doPay)

Protocol analysis, OpenFinance-aligned data extraction, and production-ready API code for the Iraqi B2B billing presentment platform Dofied.

From $300 · Pay-per-call available
OpenData · OpenFinance · Protocol analysis · Iraq B2B receipts

Connect Dofied cash receipts, supplier invoices, and doPay transactions to your ERP — with audit-ready logs

Dofied (package com.dofiedapp.dofied) is an Iraqi B2B billing presentment and payment app that turns physical cash receipts into tamper-resistant digital records. Field representatives collect cash from clients, log it against the right invoice, and push it to a central ledger. We deliver authorized API integrations that surface this ledger to ERP, accounting, treasury, and risk-control systems.

Receipt & transaction history API — Pull every cash collection event with timestamp, representative ID, client ID, amount, and invoice reference, paginated and filterable by date range.
Supplier invoice sync — Mirror invoice status (open / partially paid / settled) directly from the suppliers' local system back into Dofied so collectors and accountants share one truth.
doPay digital payment events — Capture multi-provider digital payment confirmations alongside cash receipts and route them to your reconciliation pipeline.
Representative & client identity — Authorized account login flow, role binding (representative vs. client), and session refresh, mirroring the dual-app structure (Dofied & Dofied Clients).

Why Dofied data matters

Iraq's economy is still cash-heavy: a 2023 Rest of World report on Iraqi digital payments and the 2024 Central Bank of Iraq mandate to settle domestic commercial transactions through electronic systems are both pushing distributors, wholesalers, and field-sales operations to digitise their collection workflow. Dofied sits at the centre of that workflow. Each receipt it generates is a structured record of (a) which representative collected, (b) how much, (c) against which client invoice, and (d) by what method (cash or doPay). For finance, treasury, audit, anti-fraud, and tax teams, that record is exactly the structured evidence they previously had to reconstruct from paper.

An OpenData / OpenFinance-style integration on top of Dofied lets a downstream system query that evidence directly, without manual export or representative chasing. Combined with doPay's multi-provider digital payment confirmations, the result is a single source of truth for cash and digital collections — usable for ERP posting, accounts receivable ageing, sales-rep performance dashboards, and AML reporting under Regulation No. 2 of 2024.

What we deliver

Deliverables checklist

  • OpenAPI / Swagger specification for every exposed Dofied endpoint
  • Protocol report covering login, token refresh, receipt POST, invoice GET, and doPay webhook
  • Runnable source for receipt-history and supplier-invoice APIs (Python, Node.js, or Go)
  • Excel / JSON / PDF export pipelines for daily collection reports
  • Automated tests, replay fixtures, and Postman collection
  • Compliance guidance referencing the Iraq Electronic Payment Services Law (5-year record retention, AML reporting fields)

API example: receipt history (pseudocode)

POST /api/v1/dofied/receipts.list
Content-Type: application/json
Authorization: Bearer <ACCESS_TOKEN>

{
  "representative_id": "rep_30421",
  "client_id": null,
  "from_date": "2026-03-01",
  "to_date":   "2026-03-31",
  "method":    ["cash", "doPay"],
  "page":      1,
  "page_size": 100
}

200 OK
{
  "page": 1,
  "total": 482,
  "items": [
    {
      "receipt_id": "rcpt_8821",
      "invoice_ref": "INV-2026-00471",
      "client_id":   "clt_9120",
      "amount_iqd":  1250000,
      "method":      "cash",
      "collected_at":"2026-03-04T09:14:22+03:00",
      "rep_id":      "rep_30421",
      "geo":         {"lat": 33.31, "lng": 44.36}
    }
  ]
}

API example: doPay webhook bridge

POST /webhook/dofied/dopay
X-Dofied-Signature: sha256=...

{
  "event":       "payment.captured",
  "provider":    "ZainCash",
  "receipt_id":  "rcpt_8842",
  "amount_iqd":  500000,
  "settled_at":  "2026-03-04T11:02:08+03:00",
  "status":      "captured",
  "auth_ref":    "ZC-9930-AABC"
}

→ Verify HMAC, idempotency-check receipt_id, push to ERP staging.
→ On failure: 5xx + retry; we ship a dead-letter queue spec with the SDK.

API example: supplier invoice sync (pseudocode)

GET /api/v1/dofied/invoices?supplier_id=sup_77&status=open
Authorization: Bearer <ACCESS_TOKEN>

200 OK
{
  "items": [
    {
      "invoice_id":   "INV-2026-00471",
      "supplier_id":  "sup_77",
      "client_id":    "clt_9120",
      "issued_at":    "2026-02-22",
      "due_at":       "2026-03-24",
      "amount_iqd":   1750000,
      "balance_iqd":  500000,
      "status":       "partial"
    }
  ]
}

Data available for integration (OpenData inventory)

The table below summarises the data classes we can surface from a Dofied tenant under explicit authorisation. Granularity follows what the in-app screens actually display, so each row maps cleanly to a screenshot or workflow inside the app.

Data typeSource (screen / feature)GranularityTypical downstream use
Cash receiptsRepresentative collection screenPer receipt: amount, IQD, timestamp, rep, geoAR posting, sales-rep KPI, fraud detection
doPay digital paymentsIntegrated digital payment flowPer payment: provider, ref, status, settled_atReconciliation against ZainCash / FastPay statements
Supplier invoicesSupplier invoice listPer invoice: issued_at, due_at, balance, statusAR ageing, dunning, working-capital dashboards
Client / merchant masterClient directoryID, business licence, phone-verified, addressKYC enrichment, credit limits, CRM sync
Representative masterRep verificationID, phone, business licence, route assignmentField-force productivity, route optimisation
Outstanding balance ledgerCash flow visibility viewPer client: open, due, overdue bucketsTreasury forecasting, collection prioritisation
Search / activity logsAdvanced search resultsQuery, result set, accessing userAudit trail under Iraq's 5-year retention rule

Typical integration scenarios

1. Daily AR posting into ERP

A wholesale distributor runs Dofied across 40 sales reps. Every evening our integration calls receipts.list for the day, joins receipts to the matching invoice_ref via invoices?status=open, and posts a single AR journal batch into SAP B1 or Odoo. Cash and doPay are tagged with separate sub-ledgers.

OpenData mapping: Dofied receipt feed becomes the canonical "collection event" entity — equivalent to an OpenBanking transactions resource scoped to the merchant's own collections.

2. Real-time treasury dashboard

Finance wants live cash-on-hand by representative. We subscribe to the doPay webhook and poll receipts every 5 minutes; data lands in a Postgres staging table and powers a Metabase board showing cash held in the field, expected bank deposit by EOD, and exception receipts (no matching invoice).

OpenData mapping: Mirrors an OpenFinance "balances" resource at the representative level — useful where banks do not yet expose merchant cash-deposit feeds.

3. AML & structuring detection

Under Iraq's 2024 Electronic Payment Services Law, providers must keep records 5 years and run AML screening. We feed Dofied receipts into a rules engine that flags split deposits (e.g., five 9.5M IQD receipts from one client in 24 h), unusual geo, or off-route collections.

OpenData mapping: Authorised data extraction with provenance — every flagged receipt links back to the original Dofied record for examiner review.

4. Supplier portal & invoice presentment

A FMCG supplier wants its retailers to log into a portal and see invoices already mirrored by Dofied. We expose an invoices.byClient API and a download endpoint that produces a stamped PDF receipt mirroring the in-app print/upload feature.

OpenData mapping: The same B2B presentment pattern that PSD2-style OpenBanking applies to retail accounts.

5. Sales-rep performance & route optimisation

Combining receipt geo, timestamps, and route assignments yields per-rep collection velocity, average dwell time per client, and missed-stop alerts. Output goes to a BI layer (BigQuery + Looker Studio) and a route-planning tool that re-sequences tomorrow's runs.

OpenData mapping: Movement & activity data extraction — analogous to logistics OpenData feeds, scoped strictly to the merchant's own field force.

Compliance & privacy

Dofied integrations operate inside Iraq's evolving payment-services regime. Two specific reference points shape every project we deliver:

  • Digital Payment Regulation No. 2 of 2024 (published in the Official Gazette on 29 April 2024) — sets licensing, AML, cybersecurity, and dispute-resolution standards for electronic payment service companies in Iraq.
  • Mandatory electronic settlement of domestic commercial transactions — in force from 1 January 2024; pushes B2B cash flows into traceable digital records, which is precisely the gap Dofied fills.
  • 5-year transaction record retention — both the service provider and the Central Bank of Iraq must be able to produce records on inspection. Our delivered integrations include archival jobs and immutable storage hooks.
  • Cross-border posture — for international customers consuming the data we also align with GDPR data-minimisation and purpose-limitation principles, and we sign DPAs and NDAs on request.

We never bypass authentication, never reverse-engineer credentials we are not authorised to use, and only ship integrations against tenants whose owners (the supplier or distributor) have signed off in writing.

Data flow / architecture

A typical Dofied integration pipeline looks like this:

  1. Dofied app (rep + client) — receipts, invoices, doPay events generated in the field.
  2. Authorised API gateway — our service signs in with the tenant's credentials, refreshes tokens, and exposes a normalised REST/JSON layer.
  3. Ingestion & storage — events land in a queue (e.g., SQS / Pub/Sub) and a relational warehouse (Postgres / BigQuery) with immutable archival copies for the 5-year retention rule.
  4. Downstream consumers — ERP/AR posting, BI dashboards, AML rules engine, supplier presentment portal, or further outbound API for partners.

Each hop carries provenance metadata (source receipt_id, ingestion timestamp, transform version) so a regulator or internal auditor can trace any downstream figure back to the originating in-app receipt.

Market positioning & user profile

Dofied is a B2B-first product. Its primary users are field representatives at FMCG distributors, wholesalers, and pharmaceutical suppliers operating across Iraqi governorates, plus the back-office finance teams that reconcile the resulting receipts. The companion app, Dofied Clients, is used by the businesses being collected from. Both apps run on Android (Google Play) and iOS (App Store), reflecting the mixed device base typical of Iraqi SMEs. The platform is positioned squarely in the post-2024 wave of Iraqi fintech infrastructure — alongside licensed wallet operators such as ZainCash, FastPay, NassWallet, and AsiaHawala — and its API surface is therefore most valuable to ERP vendors, accounting software houses, and cross-border treasury teams that need a structured view of Iraqi B2B cash flow.

Screenshots

Click any thumbnail to enlarge. These screens highlight the receipt creation flow, supplier invoice list, cash flow overview, and search tooling that our APIs surface.

Dofied screenshot 1 Dofied screenshot 2 Dofied screenshot 3 Dofied screenshot 4 Dofied screenshot 5 Dofied screenshot 6 Dofied screenshot 7 Dofied screenshot 8 Dofied screenshot 9 Dofied screenshot 10

Similar apps & integration landscape

Teams adopting Dofied usually maintain integrations with several adjacent platforms — either because they accept multiple wallets, or because their finance stack already covers parts of the AR cycle. The list below frames where Dofied sits in that landscape; we can integrate any of them alongside Dofied so that downstream systems see one unified view.

ZainCash — One of Iraq's licensed digital wallets; commonly settles doPay flows. A unified export joining Dofied receipts with ZainCash settlements simplifies reconciliation.
FastPay — A widely used Iraqi mobile wallet (strong in Kurdistan); often appears alongside Dofied in B2B collections, so paired data extraction is useful for accounting.
NassWallet — Iraqi e-payment provider with corporate banking ties; teams integrating Dofied frequently also pull NassWallet statement feeds.
AsiaHawala — CBI-licensed digital wallet; relevant when remittance-style collections need to be folded into Dofied's receipt ledger.
Foloosi — MENA payment gateway; pairs with Dofied where B2B clients also want hosted card pay-pages.
TreviPay — Global B2B AR automation; useful upstream when invoices originate outside Iraq and need to land in a Dofied collection workflow.
Versapay — Invoice-to-cash automation with ERP connectors; comparable AR layer for North American counterparts of a Dofied user.
Invoiced — Open API AR platform; teams often mirror Dofied receipts into Invoiced for client-facing payment portals.
BILL (Bill.com) — AP/AR SaaS used by international HQs of Iraqi distributors; common consolidation target for normalised Dofied data.
Melio — SMB payment operations platform; relevant to cross-border SMEs that need a Dofied-equivalent AR feed in their existing stack.

About us

We are an independent technical studio focused on App interface integration and authorised API integration. Our engineers come from payment gateways, banking middleware, and protocol-analysis backgrounds, with multi-year experience across MENA, South Asia, and European fintech. For a project like Dofied that means we already know the shape of CBI-supervised data, the realities of dual-app (rep + client) flows, and the operational habits of Iraqi field-sales teams.

  • Protocol analysis & authorised data extraction (no credential cracking, no detection evasion)
  • API design, OpenAPI documentation, SDKs in Python / Node.js / Go
  • ERP, BI, and AML connector engineering
  • Cross-border treasury and reconciliation pipelines
  • Source code delivery from $300 — runnable code plus documentation; pay after delivery
  • Pay-per-call API billing — access our hosted endpoints, no upfront fee

Contact

Send us your target tenant scope (which screens / data) and we will scope the Dofied integration in writing within one business day:

Contact page

For NDAs, sandbox onboarding, or compliance documentation, mention "Dofied" in the subject line and we will route accordingly.

Engagement workflow

  1. Scope confirmation — list the Dofied screens / data classes in play (receipts, invoices, doPay, master data).
  2. Authorisation — we collect written sign-off from the tenant owner (supplier / distributor) and any required CBI-related notices.
  3. Protocol analysis & API design (2–5 business days).
  4. Build, internal validation, and replay-test against a real tenant snapshot (3–8 business days).
  5. Docs, Postman collection, and handover (1–2 business days).
  6. Typical first delivery: 5–15 business days; complex cross-border or multi-tenant rollouts can extend.

FAQ

What do you need from me to start?

The target app name (already provided — Dofied), the data classes you need (e.g., daily receipts, supplier invoices, doPay events), and either a sandbox tenant or written authorisation to operate against a production tenant.

Can you also handle Dofied Clients (the companion app)?

Yes. The two apps share the same backend; we expose a unified data layer covering both representative-side and client-side perspectives.

How do you handle Iraq's 5-year retention rule?

Every delivered integration includes immutable archival storage hooks (object storage with object-lock or equivalent), plus a search index so retention records are produceable on demand.

Do you charge upfront?

Two models. Source-code delivery starts at $300 and is paid after delivery on satisfaction. Pay-per-call pricing has no upfront fee — you only pay for the API calls you actually make against our hosted endpoints.
📱 Original app overview (appendix)

Dofied is an Iraqi B2B billing presentment and payment platform. It allows the digital recording of cash payments in addition or as a replacement for physical receipts, streamlining the process of recording transactions between two parties — typically a field representative collecting from a client. The platform is operated through two companion apps (the main Dofied app for representatives, and Dofied Clients for the businesses being collected from), both available on Google Play and the Apple App Store.

  • Secure business verification — onboarding via phone number, business licence, and additional checks.
  • Invoice management — pull the latest invoices directly from suppliers' local systems and record cash or doPay payments against them.
  • doPay integrated digital payment — supports multiple Iraqi payment providers as an alternative to cash collection.
  • Payment tracking & advanced search — efficient management of payment records and historical lookups.
  • Cash flow visibility — scheduled collections, outstanding balances, and a real-time financial overview.
  • Receipt printing & upload — bridges the digital record with physical receipts where still required.
  • Tamper-resistant ledger — every payment is fully tracked and recorded for clarity, and processed instantly.

The platform is positioned within Iraq's fintech reform programme: the Central Bank of Iraq's Digital Payment Regulation No. 2 of 2024 and the January 2024 mandate for electronic settlement of domestic commercial transactions both create direct demand for tools that turn cash collection into structured digital records.