Direct FBR Digital Invoicing & SRO Fiscalization Gateway API is Live! Learn more →
Developer & Integration Hub

Resources & Integration Hub

Official SDKs, e-commerce plugins, interactive OpenAPI specifications, and developer tools to connect your billing systems with FBR PRAL Digital Invoicing.

Official Laravel 10 / 11 / 12 / 13+ SDK
WooCommerce HPOS-Compliant Plugin
Shopify Automated Order Webhooks
OpenAPI 3.1 & Postman Collection v2.1
v1.12 Compliant Production-ready integrations for Pakistan e-commerce & retail
FBR FISCAL CLEARED
SRO-2024/DI-01
Invoice Number: INV-2026-009842
FBR Invoice No (FBRIN): 9842010920261102
Seller NTN: 1234567-8
Total Tax Payable (18%): PKR 18,000.00
Total Invoice Amount: PKR 118,000.00

FBR Verifiable QR Code

Cryptographically sealed with HMAC-SHA256 signature and live ATL taxpayer stamp.

Integration Tooling

SDKs, E-Commerce Plugins & Developer Tooling

Production-ready official client libraries, plugins, and specifications for effortless FBR PRAL digital invoicing integration.

Laravel SDK

v1.0.0

technohub92/laravel-fbr-di

PSR-4 compliant modern PHP 8.2+ package for Laravel 10, 11, and 12. Includes fluent builder FbrDI::invoice(), automatic PRAL DI payload validation, interactive CLI setup wizard, connection test command, and live ATL taxpayer verification.

PHP 8.2+ Laravel 10 / 11 / 12 / 13+ PRAL v1.12
$ composer require technohub92/laravel-fbr-di

WooCommerce Plugin

v1.0.0

fbr-digital-invoicing-woocommerce

Native WordPress & WooCommerce plugin for automatic fiscalization. Adds Pakistani NTN/CNIC billing fields to checkout, product HS codes, live "Test Connection" in settings, SRO-compliant QR codes in order emails and PDFs, High-Performance Order Storage (HPOS) compatibility, and built-in auto-updates.

WP 6.0+ WooCommerce 8.0+ HPOS Certified Auto-Updater
Zero-Configuration Setup:

Upload the ZIP file via WordPress Plugins → Add New → Upload Plugin. Go to WooCommerce Settings → FBR Digital Invoicing, paste your Bearer Token, and click Test Connection.

Shopify Connector

Webhook API

orders/paid • HMAC SHA-256

Connect any Shopify store with zero custom code. Simply subscribe to Shopify's orders/paid webhook pointing directly to our ingestion endpoint. Our cloud transformer automatically maps Pakistani tax lines, customer NTN tags, and submits fiscal invoices in real-time.

Webhook Engine HMAC Signature Verification Auto-Retry Queues
Shopify Webhook Target URL:
POST https://invoicehub.pk/api/v1/integrations/shopify/webhook

API Specs & Postman

OpenAPI 3.1

Postman Collection v2.1 • Swagger

Complete machine-readable specifications and pre-configured Postman requests covering all 28 FBR PRAL tax scenarios (SN001–SN028), Sandbox environment variables, Bearer token authentication, and reference lookup endpoints.

Postman v2.1 OpenAPI 3.1 28 Scenarios
Interactive Swagger Explorer:

Explore and test live PRAL DI API endpoints with integrated schema models, validation error examples, and Bearer token playground.

Compliance Architecture

Engineered for Complete SRO Compliance

Every tool and client package is built strictly against official FBR SRO 350(I)/2024 and PRAL DI v1.12 rules.

28 Scenarios

SRO 350/2024 Compliance

Strict PRAL DI v1.12 outgoing payload sanitation with zero internal field leakage and support for all 28 official scenarios.

Instant Seal

HMAC Cryptographic Seals

Sub-second digital signing and tamper-proof QR code generation validated instantly by Tax Asaan mobile scanner.

Async Buffers

High-Throughput Webhooks

Asynchronous event dispatchers with exponential backoff retries for ERPs, POS terminals, and custom backends.

Help & FAQ

Frequently Asked Questions

Common questions about installing, configuring, and updating our SDKs and plugins.

Yes. To clear fiscal invoices with FBR, you need your Merchant Bearer Token and Sandbox/Production environment keys. You can obtain these instantly upon registering an account on invoicehub.pk.
For Laravel, execute "composer update technohub92/laravel-fbr-di". For WooCommerce, our plugin contains a built-in auto-updater that automatically notifies you in the WordPress Admin whenever new releases are published.
Yes. The plugin is 100% certified and compatible with WooCommerce HPOS mode as well as traditional WordPress post storage.
All communications are transmitted over TLS 1.3 encryption. Merchant Bearer Tokens and FBR API secrets are stored in encrypted vaults using AES-256 standards.
Instant Fiscalization Onboarding

Ready to Integrate FBR Digital Invoicing?

Register your business today to get your API keys and connect your Laravel app, WooCommerce store, or Shopify shop in minutes.