Single-file tester: settings store, TLS diagnostics, official invoice model POST.
Sandbox / Production URLs + Bearer token + POS ID. Success response Code 100.
POST official invoice model (manual §6.4.3) with Bearer auth.
cURL: TLS 1.2 + HTTP/1.1. Success: Code: "100" + InvoiceNumber.
{
"InvoiceNumber": "",
"POSID": 201582,
"USIN": "TEST-20261012173737-577",
"DateTime": "2026-10-12 17:37:37",
"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
}
]
}
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.