Skip to main content
Dynamics 365 Finance & OperationsSaaS Tools

Pakistan FBR Digital Invoicing

A build-to-order X++ extension that transmits Dynamics 365 Finance & Operations invoices to the FBR digital

invoicing service in real time and stamps the returned invoice number and QR onto the printed document.

Built to order

What is Pakistan FBR Digital Invoicing?

A build-to-order X++ extension that transmits Dynamics 365 Finance & Operations invoices to the FBR digital invoicing service in real time and stamps the returned invoice number and QR onto the printed document. Built to order by ECOSIRE for Dynamics 365 F&O (build-to-order) — indicative price from $1499.00 USD; request a quote for a scoped proposal.

Pakistan FBR Digital Invoicing — A build-to-order X++ extension that transmits Dynamics 365 Finance & Operations invoices to the FBR digital invoicing service in real time and stamps the returned invoice number and QR onto the printed document

What we build

  • Real-time FBR service call on invoice posting with the returned reference number stored on the invoice header
  • QR code rendering on the SSRS sales invoice report via report and DP class extension, preserving your existing layout
  • Payload assembly from posted CustInvoiceJour and CustInvoiceTrans including HS code, quantity, value and tax components
  • Configurable mapping of sales tax codes, tax groups and item tax groups to FBR tax types and rates
  • Explicit handling for zero-rated, exempt, reduced-rate, further tax and extra tax line scenarios
  • Queue and retry with backoff via a dedicated batch group when the FBR service is unreachable
  • Reconciliation workspace listing posted invoices with no accepted FBR reference before period close
  • Point-of-sale invoice flow integration so a receipt is not issued without a reference number
  • Full request and response archival per document for audit and dispute handling
  • Data entities for configuration, transmission log and invoice reference, exposed over OData
  • Buyer registration and CNIC capture and validation on the customer master before transmission
  • Bulk resubmission batch job with per-document status and error reason

About this Product

The problem

A registered business in Pakistan under the digital invoicing regime cannot simply post a sales invoice and hand the customer a printout. The invoice has to be transmitted to the FBR service, an invoice reference number has to come back, and the printed or emailed document has to carry that number together with a verifiable QR code. For point-of-sale flows the expectation is real time, not an overnight batch. For sales tax reporting, the transmitted values and the values you post to the ledger have to reconcile, month after month, invoice by invoice.

Dynamics 365 Finance & Operations has no Pakistan localization for this. There is no standard FBR service integration, no IRN storage on the invoice header, no QR rendering on the invoice report, and no reconciliation view between what F&O posted and what FBR accepted. Teams either invoice outside the ERP — which destroys the audit trail and the sales tax position — or they run a manual double-entry into a portal, which fails the moment volume or headcount changes.

The practical risk is not theoretical. A transmission that silently fails leaves you with a posted invoice that has no reference number, a customer holding an unverifiable document, and a reporting period that will not tie out.

What ECOSIRE builds

ECOSIRE builds an FBR digital invoicing extension for your F&O environment, written against your configuration and your document flows. It is not a shrink-wrapped download — it is developed after scoping and delivered into your own pipeline.

Real-time transmission

On posting, the extension assembles the FBR payload from the posted invoice: seller registration details, buyer registration or CNIC where applicable, line-level item description, HS code, quantity, value, sales tax and any further tax or extra tax components. It calls the FBR service, handles the response, and writes the returned invoice reference number back onto the invoice record inside the same logical unit of work. If the service is unreachable, the document is queued rather than lost, and a batch job retries it with backoff.

QR and document output

The returned reference is rendered as a QR code and placed on the invoice report alongside the human-readable number. Report extension is done through the standard SSRS report and DP class extension pattern, so your existing invoice layout and any branding you have applied are preserved rather than replaced.

Sales tax mapping

Sales tax codes, tax groups and item tax groups are mapped to the tax rate and tax type values FBR expects, with explicit handling for zero-rated, exempt and reduced-rate lines. Withholding and further tax scenarios are configured rather than hard-coded. Ledger dimensions on the posted invoice are read and preserved.

POS and high-volume flows

Where retail or counter sales are in scope, transmission is wired into the point-of-sale invoice flow so a receipt is not handed over without a reference number. Throughput is managed with a dedicated batch group so a spike in retail volume does not starve other batch work.

Platform mechanics

  • X++ extension model using event handlers, extension classes and Chain of Command. No overlayering.
  • Data entities for the FBR configuration, the transmission log and the invoice reference, exposed over OData.
  • Batch framework jobs for retry, bulk resubmission and reconciliation between posted invoices and accepted transmissions.
  • A reconciliation workspace listing posted invoices with no accepted reference, so a period close cannot quietly go out with gaps.
  • Full request and response archival per document for audit and dispute handling.
  • Number sequence integrity: the FBR reference is stored as a distinct field and never overwrites your internal invoice number.

Who this is for

Pakistani registered businesses running Dynamics 365 Finance & Operations that fall inside the digital invoicing requirement — manufacturers, distributors, importers, and retail operations with counter sales. It fits groups where Pakistan is one legal entity inside a multi-country F&O instance and the requirement must be scoped to that entity alone.

It also fits organisations whose finance team currently reconciles a portal export against a ledger export in a spreadsheet each month, and wants that reconciliation to live inside F&O.

How delivery works

1. Scoping call. We review your legal entity, sales tax setup, invoice types in scope, whether POS flows are included, your registration status and your expected volume. We confirm the FBR service endpoints and credentials you hold.

2. Fixed quote. A written scope covering payload mapping, report changes, batch jobs, entities and acceptance criteria, at a fixed price.

3. Build. Development against the same platform and application version you run, with mapping-layer unit tests and payload validation.

4. Install in test. The deployable package moves through your LCS/sandbox pipeline into test. We run the full cycle against the FBR sandbox with your own data and hand you a test script for sign-off.

5. Production. The same package is promoted after sign-off. We support the first live transmissions and the first period close.

6. Support. A defined support window follows go-live, with source code in your hands from the start.

Lead time and honesty

This is built for you after the quote is signed, typically one working week to a working install in test. There is no instant download, no free trial, and nothing generic sitting on a shelf. The engineering effort is in getting the payload, the tax mapping and the failure handling right for your business — and that only exists once we have looked at your setup.

How delivery works

  1. 1

    Scoping call

    A short call to confirm the workflow, your platform version and where the integration boundaries sit.

  2. 2

    Fixed quote

    You receive a written scope and a fixed price. Nothing is built until you approve it.

  3. 3

    Build and test

    We develop against a copy of your configuration and test it there. Typically two to four weeks.

  4. 4

    Install and support

    We install on your instance, hand over the source, and include two weeks of go-live support. Defects in the code we deliver are fixed free of charge.

What you get

  • X++ source code for the extension model, delivered in your source control with no overlayering
  • Signed deployable package built against your platform and application version
  • Extended sales invoice report carrying the FBR reference number and QR code
  • Installation into your test environment through your LCS/sandbox pipeline, then production after sign-off
  • Configuration of sales tax mappings, seller registration details, service endpoints and batch job recurrence
  • Functional and technical documentation including a payload mapping reference and an end-to-end test script
  • Handover training for finance and IT, plus a defined post-go-live support window covering the first period close

Who this is for

Head of Finance, Pakistan operating entity

They carry the compliance exposure if invoices go out without a valid reference number or the period does not reconcile. The reconciliation workspace shows them, before close, exactly which posted invoices have no accepted transmission.

IT Manager / D365 Administrator

They have to keep the environment upgradeable and cannot accept overlayered code or an unmanaged middleware box. This ships as an extension package through their existing LCS pipeline, with batch jobs they can throttle and monitor.

Sales Tax Accountant

They currently reconcile a portal export against a ledger export by hand every month. With the reference number stored on the invoice and the payload archived, the reconciliation is a query inside F&O instead of a spreadsheet exercise.

How Pakistan FBR Digital Invoicing Compares

CriterionECOSIRECustom BuildCompetitorDynamics 365 Finance & Operations Native
Real-time FBR transmission on invoice posting with reference number returnedIncludedPartial supportIncludedNot included
QR code on the standard SSRS invoice report without replacing your layoutIncludedPartial supportPartial supportNot included
Reconciliation of posted invoices against accepted transmissions before period closeIncludedNot includedPartial supportNot included
Extension-only X++ with no overlayering of standard codeIncludedPartial supportPartial supportIncluded
Point-of-sale invoice flow covered, not just back-office invoicesIncludedPartial supportPartial supportNot included
Configurable sales tax mapping for zero-rated, exempt, further and extra taxIncludedPartial supportPartial supportPartial support
Request and response archival per document for audit and dispute handlingIncludedPartial supportPartial supportNot included
Source code handed over to the customerIncludedIncludedNot includedNot included

Frequently asked questions

How long does it take to get this built and running?
It is build-to-order, so the clock starts after the scoping call and signed fixed quote. Typical lead time is one working week to a working install in your test environment, longer if point-of-sale flows and multiple invoice types are in scope. There is no instant download because nothing is pre-built.
Which Dynamics 365 versions and editions does this support?
Dynamics 365 Finance and Dynamics 365 Supply Chain Management (the Finance & Operations apps) on a currently supported service update, cloud-hosted. We build and test against the exact application and platform version in your environment, confirmed during scoping. It is not a Business Central app.
Do you supply the FBR credentials or registration?
No. Your business holds the registration and the service credentials. ECOSIRE builds the integration that uses them. During scoping we confirm which endpoints and credential type you have so the build targets the right service.
What happens if the FBR service is down when we post an invoice?
The invoice still posts and the document is queued with a pending status rather than failing the posting or being lost. A batch job retries with backoff, and the reconciliation workspace lists anything still without an accepted reference so it cannot slip through a period close unnoticed.
Will this change our existing invoice layout?
No. We extend the standard SSRS sales invoice report and its DP class rather than replacing it, so your current layout, logo and wording stay intact. The reference number and QR code are added to the existing design.
Can we keep other countries in the same F&O instance unaffected?
Yes. Configuration and the posting-time transmission are scoped to the Pakistan legal entity. Other legal entities in the same instance post exactly as they do today, with no behaviour change and no extra batch load.

Request a Quotation

Tell us about your Pakistan FBR Digital Invoicing requirements and we'll send pricing, licensing options and a tailored proposal — usually within one business day.

No payment now. This sends a quote request to our team — we'll follow up by email with pricing and next steps.

Pairs well with

Month-End Close Automation
Built to order

Month-End Close Automation

A close-management workspace for Dynamics 365 Finance & Operations with owner-assigned tasks, dependencies and live reconciliation status. Built to order for your legal entities after a fixed quotation.

From $1499.00Starting point — quoted to your scope
View specification
Multi-Entity Consolidation & Elimination
Built to order

Multi-Entity Consolidation & Elimination

A build-to-order consolidation and elimination engine for Dynamics 365 Finance & Operations. We design and build it for your group structure after a scoping call and fixed quote — nothing is pre-packaged.

From $1499.00Starting point — quoted to your scope
View specification
Poland KSeF E-Invoicing
Built to order

Poland KSeF E-Invoicing

A build-to-order X++ extension that clears Dynamics 365 Finance & Operations invoices through KSeF — structured FA schema submission, session management, KSeF number capture and UPO retrieval and archival.

From $1499.00Starting point — quoted to your scope
View specification
Power BI Analytics Suite
Built to order

Power BI Analytics Suite

A build-to-order analytics package: Power BI data models over your F&O entity store or data lake, finance and supply chain reports, and dashboards embedded into F&O workspaces. Scoped and built for your data after a fixed quote.

From $1499.00Starting point — quoted to your scope
View specification