PRA e-IMS Testing Environment

Single-file tester: settings store, TLS diagnostics, official invoice model POST. Sandbox / Production URLs + Bearer token + POS ID. Success response Code 100.

Env: sandbox POS ID: 201582 Token: saved URL: https://ims.pral.com.pk/ims/sandbox/api/Live/PostData

Invoice API Test

POST official invoice model (manual §6.4.3) with Bearer auth. cURL: TLS 1.2 + HTTP/1.1. Success: Code: "100" + InvoiceNumber.

Open Diagnostics Edit Settings
Payload preview (official model)
{
    "InvoiceNumber": "",
    "POSID": 201582,
    "USIN": "TEST-20261012162312-881",
    "DateTime": "2026-10-12 16:23:12",
    "BuyerPNTN": "",
    "BuyerCNIC": "",
    "BuyerName": "Walk-in Tester",
    "BuyerPhoneNumber": "00000000000",
    "TotalBillAmount": 11.6,
    "TotalQuantity": 1,
    "TotalSaleValue": 10,
    "TotalTaxCharged": 1.6,
    "Discount": 0,
    "FurtherTax": 0,
    "PaymentMode": 1,
    "RefUSIN": null,
    "InvoiceType": 1,
    "Items": [
        {
            "ItemCode": "TEST-01",
            "ItemName": "Connection Test Service",
            "Quantity": 1,
            "PCTCode": "00000000",
            "TaxRate": 16,
            "SaleValue": 10,
            "TotalAmount": 11.6,
            "TaxCharged": 1.6,
            "Discount": 0,
            "FurtherTax": 0,
            "InvoiceType": 1,
            "RefUSIN": null
        }
    ]
}
Local Postman path (localhost:8524) Hostinger pe kaam nahi karta — woh local POS Component service hai. Cloud testing ke liye Sandbox/Production ims.pral.com.pk URLs use karo. Agar TLS eof aaye: Diagnostics → outbound IP → Whitelist tab se email bhejo.