TaxBridge — Tax Compliance Integration
Platform PRA APIFBR API SRB APIKPRA API POS IntegrationERP Integration API DocumentationGetting Started SandboxProduction PricingSecurity FAQGuidesContact ← Sum Cloud POS
PunjabSales tax on services⚡ Sandbox + Production

PRA API Integration

Submit invoices to the Punjab Revenue Authority through one canonical TaxBridge API. Sandbox, production, authentication, error handling and logs — without studying the PRA API directly.

PRA covers sales tax on services in Punjab.

POST /api/v1/invoices
curl -X POST https://taxbridge.themetasum.com/api/v1/invoices \
  -H "Authorization: Bearer tbk_test_9f3a21c7b4d6e8f0_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 0b6d1c4e-7f9a-4a51-8d3c-2e5f7a91b204" \
  -H "X-Tax-Authority: PRA" \
  -d '{
    "invoiceNumber": "INV-10001",
    "invoiceDate": "2026-08-10T10:30:00",
    "invoiceType": "Sale",
    "currency": "PKR",
    "paymentMode": "Cash",
    "customer": { "name": "Walk-in Customer" },
    "items": [{
      "description": "Chicken Karahi Full", "hsCode": "11001010",
      "quantity": 1, "unitPrice": 1500.00,
      "taxRate": 16, "taxAmount": 240.00, "total": 1740.00
    }],
    "subTotal": 1500.00, "tax": 240.00, "total": 1740.00
  }'

What is PRA API integration?

PRA API integration connects your software to the Punjab Revenue Authority fiscal system so that every sales invoice is submitted electronically and returns a verifiable PRA invoice number and QR value. With TaxBridge you integrate once against a canonical invoice API and TaxBridge handles the PRA-specific format, credentials and success codes.

TaxBridge / Integrations / PRA API

PRA in one call

Integrate PRA Without the PRA-Specific Work

You send TaxBridge one canonical invoice. TaxBridge applies PRA’s field names, casing, money identity and success rules, then returns a single normalized result.

AuthorityPunjab Revenue Authority
JurisdictionPunjab
CoversSales tax on services
HeaderX-Tax-Authority: PRA
Registrationreg.pra.punjab.gov.pk
POST /api/v1/invoices
curl -X POST https://taxbridge.themetasum.com/api/v1/invoices \
  -H "Authorization: Bearer tbk_test_9f3a21c7b4d6e8f0_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 0b6d1c4e-7f9a-4a51-8d3c-2e5f7a91b204" \
  -H "X-Tax-Authority: PRA" \
  -d '{
    "invoiceNumber": "INV-10001",
    "invoiceDate": "2026-08-10T10:30:00",
    "invoiceType": "Sale",
    "currency": "PKR",
    "paymentMode": "Cash",
    "customer": { "name": "Walk-in Customer" },
    "items": [{
      "description": "Chicken Karahi Full", "hsCode": "11001010",
      "quantity": 1, "unitPrice": 1500.00,
      "taxRate": 16, "taxAmount": 240.00, "total": 1740.00
    }],
    "subTotal": 1500.00, "tax": 240.00, "total": 1740.00
  }'

How PRA Integration Works

Four steps from account to your first approved PRA invoice.

1. Register & get approved

Create your TaxBridge company and verify your email. An admin approves the company for production access.

2. Subscribe & store PRA credentials

Pick a plan for PRA and fill the credential form. For PRA: Your own numeric POS ID (required in both sandbox and production) plus a production Bearer token. The sandbox Bearer token is a shared public value TaxBridge already holds.

3. Create an API key

Generate a test or live key, optionally pinned to PRA. The full key is shown once and stored only as a hash.

4. Post an invoice

Send your canonical invoice with X-Tax-Authority: PRA. Print the returned qrCode and keep the submissionId.

PRA authority quirk TaxBridge handles for you

PRA has no shared sandbox POS ID — you generate your own on the PRA portal. A non-numeric POS ID is reported as a configuration error naming the exact field. Buyer PNTN is carried on the payload.

🔑

Credentials, encrypted

Your PRA credentials are AES-256-GCM encrypted at rest and never returned to your app.

🧪

Sandbox & simulator

Test PRA end-to-end before you hold production credentials.

Normalized errors

PRA rejections come back as a single status with a readable authorityMessage.

📋

Full request logs

Every PRA submission is logged with request, response and status for debugging.

🏢

Multi-branch

Run many outlets under one company — each branch’s PRA submissions are tracked separately.

🔄

Idempotent retries

A repeated Idempotency-Key replays the stored PRA result with no double submission.

PRA responses your code handles

HTTPMeaningWhat your code does
201Approved by the authorityPrint qrCode, store submissionId
200Idempotent replay (duplicate:true)Treat like the original — no quota consumed
400 INVALID_INVOICENormalizer rejected it; details[] lists every problemFix and resubmit — no quota consumed
402 QUOTA_EXCEEDEDPlan limit hit or subscription expiredUpgrade or renew
409 DUPLICATE_INVOICEInvoice number already approved for this authority + environmentDo not resubmit
422Authority rejected it (status:"REJECTED")Read authorityMessage, fix the data
429Rate limit or sandbox soft capHonour Retry-After
502 / 504Authority errored or timed outRetry with the same Idempotency-Key

PRA API — FAQ

What is PRA API integration?
PRA API integration connects your software to the Punjab Revenue Authority fiscal system so that every sales invoice is submitted electronically and returns a verifiable PRA invoice number and QR value. With TaxBridge you integrate once against a canonical invoice API and TaxBridge handles the PRA-specific format, credentials and success codes.
What software needs PRA integration?
Restaurants, salons, hotels, marriage halls, caterers and other service businesses operating in Punjab, and the POS, ERP or billing software they use. If you provide taxable services in Punjab, your invoices belong to PRA.
Do I need my own PRA POS ID?
Yes. PRA merchants generate their own numeric POS ID on the PRA portal, and it is required in both sandbox and production. TaxBridge validates it and reports a clear configuration error naming the field if it is missing or non-numeric.
Can I test PRA before I have production credentials?
Yes. TaxBridge ships a shared PRA sandbox token, and you can also enable the simulator to build your entire integration with no network call before going live.

Also integrating another province? See FBR · SRB · KPRA or the unified tax API.

Start your PRA integration today

Create a sandbox, store your PRA credentials and post a test invoice in minutes. Move to production when your data is verified.

Start PRA Sandbox Talk to an Expert
No developers? No API? No problem

Don’t want to build an integration at all?

Just register your business with Sum Cloud POS — it already files fiscal invoices to FBR, PRA, SRB and KPRA for you. No API, no development, nothing to connect or maintain. Start selling with compliant invoices out of the box.

Register your business → Explore Sum Cloud POS