FBR Invoice Number Explained for Shopify Merchants
One sale can have a Shopify order name, an internal invoice reference and an FBR invoice number. Keeping those identifiers separate is essential for support and audit.
Three identifiers, three jobs
Shopify assigns an order ID and displays a configurable order name. Your accounting process may assign its own invoice number. After a valid digital-invoice submission, FBR returns an FBR invoice number. None should be silently overwritten by another.
What FBR documentation requires
FBR technical documentation describes returning a unique invoice number for valid submissions and printing the FBR invoice number with the QR code. S.R.O. 69(I)/2025 also connects the unique FBR invoice number to QR generation in the electronic-invoicing rules.
Store the relationship
Keep the FBR number, Shopify immutable order ID, display name, merchant invoice reference, submission time and raw response. Make all safe identifiers searchable. This lets accounts answer an FBR query and customer support start from the Shopify order.
Do not pre-generate it
The merchant can create its own reference before submission, but it should not invent an FBR invoice number. Only store the returned value after a valid response. A timeout should remain “unknown” until checked, not receive a placeholder that looks official.
Duplicate control
Before submission, check whether the order is already linked to a valid FBR number. After an ambiguous response, query the available invoice-detail or status process before retrying. Preserve failed attempts and never recycle an FBR number onto another order.
What staff should see
On the order screen, show the merchant reference, FBR status, FBR number, submission time and last error without exposing the token or unnecessary buyer data. Make the valid number copyable, but do not let an operator edit it. Corrections should create an auditable action rather than changing the stored response.
On the customer invoice, label the Shopify reference and FBR invoice number clearly so support can ask which one the customer is reading. A long FBR number may wrap on small receipt printers, so test templates using realistic values rather than a short placeholder.
Reconcile identifiers in bulk
Export a daily list of eligible Shopify orders and compare it to valid FBR numbers. Look for one order with multiple valid numbers, one number attached to multiple orders, accepted invoices with no rendered document and orders left in an unknown state. Counts alone are insufficient; include gross and tax values.
If a number appears incorrect, do not overwrite it. Preserve the returned response and investigate whether the wrong order was submitted, the display is mapped incorrectly, or a correction process is required under current FBR rules and adviser guidance.
Last updated: 2026-08-04
Not tax advice. Confirm registration scope, rates, deadlines, and filing obligations with a Pakistani tax practitioner against current FBR SROs and the Sales Tax Act. ComplyStream is not affiliated with FBR or PRAL.
See the complete Shopify invoicing workflow
Learn how order data, approved tax mappings, FBR responses and reconciliation fit together.