Utility API Response Handling
Utility API Response Handling
HTTP Status Codes 🚦
billPayStatus
and paymentStatus
fields in the response payload for the specific outcome of your transaction.response_code
and payload
field in response.payload
"No utility payment found" it means the transaction didn't go through. You can safely retry the original request.Checking the Payload for 2XX Responses 🧾
billPayStatus
: This tells you the status of the bill payment itself.SUCCESS
: 🎉 Bill payment was successful!FAILED
: 😞 Bill payment failed.paymentStatus
is FAILED
, your wallet debit failed.paymentStatus
is REFUNDED
, the bill payment failed, and the funds have been credited back to your wallet.IN_PROGRESS
: ⏳ Bill payment confirmation is pending at the biller's end.PENDING
: ➡️ Your bill payment request has been initiated.failureReason
:billPayStatus
is FAILED
, this field will provide more details about why the payment failed. Check it to understand the cause.