Check transaction status (polling)
Transaction status check
Returns the current status for a bill reference. Use this when you need a single JSON response or as a fallback if the real-time SSE endpoint (/erp/api/txn-sse) does not respond within 15 seconds.
POST
Check transaction status (polling)
Use this endpoint for manual transaction status checks by
If SSE does not return a definitive result within 15 seconds, use this endpoint as fallback.
billRefNo.
request
SendPOST /erp/check-txn with:
- Header:
x-api-secret - Body:
{ "billRefNo": "..." }
response behavior
- Returns current transaction state (for example
PAIDorFAILED). - If available, additional fields are returned (amount, receipt URL, merchant details, and more).
recommended usage
For real-time tracking, start withGET /erp/api/txn-sse.If SSE does not return a definitive result within 15 seconds, use this endpoint as fallback.
Headers
API secret key.
Example:
"X0Lkj979tyUv1IPGQkd+qsx0N6o1LQPSUpfBa6ZCKvXosp0HVnciXSIyWmgyBl0B"
Body
application/json
Example:
"5WL30548HD"
Response
Transaction found; data.status indicates outcome (for example PAID or FAILED).
Example:
"success"
Example:
"Transaction found successfully"
Transaction details when found. Fields present depend on status (for example PAID includes amount and receipt; FAILED may only include billRefNo, status, and message).