Developer API

Report invoices to FBR, PRA or SRB from any system with one HTTPS call.

Authentication

Each company creates a key in Settings → Integrations (API). Send it in every request:

X-API-Key: sk_…

Base URL: https://einvoice.stratos-hub.com/api/v1/

Endpoints

MethodPathPurpose
GETpingCheck the key and see the company and FBR mode
POSTinvoicesCreate an invoice and report it (set "submit": false for a draft)
GETinvoices?external_ref=…Status, totals and authority number
POSTinvoices/<id>Re-send a draft, rejected or waiting invoice
GETinvoices/<id>/qr.pngQR image to print on your invoice
GET / POSTcustomersList, or create/update by code or NTN
GET / POSTproductsList, or create/update by code
GETlookup?n=NTNRegistration type and ATL status from FBR

Create and report an invoice

POST https://einvoice.stratos-hub.com/api/v1/invoices
{
  "external_ref": "ODOO/INV/2026/0042",
  "date": "2026-09-24",
  "report_to": "FBR",
  "customer": {"name": "ABC Traders", "ntn_cnic": "1234567",
               "registration_type": "Registered", "province": "Punjab", "address": "Lahore"},
  "lines": [
    {"product_code": "ITM-001", "quantity": 10, "unit_price": 1500},
    {"description": "Installation", "hs_code": "9987.0000", "sale_type": "Services",
     "rate": 16, "quantity": 1, "unit_price": 5000}
  ]
}

Reply

{
  "id": 128, "number": "INV-2026-00128", "state": "posted",
  "total": "36112.00",
  "fbr": {"invoice_number": "4200001DI1790241871147", "datetime": "2026-09-24 12:01:41",
          "qr_png_url": "https://einvoice.stratos-hub.com/api/v1/invoices/128/qr.png", "error": ""}
}

Good to know