Use this endpoint to query the current status of a bill payment. Pass the requestRef you submitted when calling Pay Bill.
Authentication
x-api-key: your_api_key
x-api-secret: your_api_secret
Endpoint
GET https://api.hyparrow.com/api/v1/bills/status?reference={requestRef}
Query parameters
The requestRef you provided when the payment was initiated. This is the unique 13-digit reference generated on your side.
Response
true when the status check request succeeds.
Status details for the referenced payment.
Provider response code. "00" indicates a completed successful payment.
Human-readable status description (e.g., Approved, Pending, Failed).
The provider’s internal transaction reference.
The reference you submitted, echoed back for correlation.
The transaction amount in kobo.
The customer ID used in the payment.
The customer name associated with the payment.
Error message if the lookup fails. Empty on success.
Examples
curl -X GET "https://api.hyparrow.com/api/v1/bills/status?reference=1234567890123" \
-H "x-api-key: your_api_key" \
-H "x-api-secret: your_api_secret"
Success response
{
"success": true,
"data": {
"responseCode": "00",
"responseDescription": "Approved",
"transactionRef": "ISW-TXN-20240115-001234",
"requestRef": "1234567890123",
"amount": "50000",
"customerId": "08012345678",
"customerName": "ADA OKAFOR"
},
"error": ""
}
Error response
{
"success": false,
"data": null,
"error": "transaction not found"
}