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 Model Reference

Manual §6 — fields jo is tester me POST hote hain.

Invoice Data

FieldStatusNotes
InvoiceNumberBlankPRA fill karta hai
POSIDCompulsorybigint — registration POS ID
USINCompulsoryaapki unique invoice #
DateTimeCompulsoryY-m-d H:i:s
TotalSaleValue / TotalTaxCharged / TotalBillAmountCompulsorydoubles
PaymentModeCompulsory1 Cash … 6 Cheque
InvoiceTypeCompulsory1 New, 2 Debit, 3 Credit
Items[]CompulsoryItemCode, ItemName, PCTCode, Qty, TaxRate, SaleValue, TaxCharged, TotalAmount…

Success response

{
  "InvoiceNumber": "90000520191112000369",
  "Response": "Invoice received successfully",
  "Code": "100"
}