Skip to main content
POST
Check transaction status (polling)
Use this endpoint for manual transaction status checks by billRefNo.

request

Send POST /erp/check-txn with:
  • Header: x-api-secret
  • Body: { "billRefNo": "..." }

response behavior

  • Returns current transaction state (for example PAID or FAILED).
  • If available, additional fields are returned (amount, receipt URL, merchant details, and more).
For real-time tracking, start with GET /erp/api/txn-sse.
If SSE does not return a definitive result within 15 seconds, use this endpoint as fallback.

Headers

x-api-secret
string
required

API secret key.

Example:

"X0Lkj979tyUv1IPGQkd+qsx0N6o1LQPSUpfBa6ZCKvXosp0HVnciXSIyWmgyBl0B"

Body

application/json
billRefNo
string
required
Example:

"5WL30548HD"

Response

Transaction found; data.status indicates outcome (for example PAID or FAILED).

status
string
required
Example:

"success"

timestamp
string<date-time>
required
message
string
required
Example:

"Transaction found successfully"

data
object
required

Transaction details when found. Fields present depend on status (for example PAID includes amount and receipt; FAILED may only include billRefNo, status, and message).