HubtelDevelopers
API referenceDirect Debit

Get a pre-approval's status

GET
/api/v2/merchant/{accountNumber}/preapproval/{clientReference}/status

Returns whether a customer's direct debit pre-approval is pending, approved, failed or expired. Use it when a preapproval callback hasn't arrived, before retrying with a new reference.

Authorization

basicAuth
AuthorizationBasic <token>

Base64 of API ID:API Key.

In: header

Path Parameters

accountNumber*string

Your collection account number (POS sales), where customer payments land. Find it in your Hubtel merchant account under Programmable keys → Account ID. In the sandbox, use the collection account in Workbench.

clientReference*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/merchant/string/preapproval/string/status"
{  "message": "Success",  "code": "2000",  "data": {    "customerMsisdn": "233546335113",    "verificationType": "USSD",    "preapprovalStatus": "APPROVED",    "hubtelPreapprovalId": "5f20092321d54eefb974dbfea6de5c34",    "clientReferenceId": "3jL2KlUy3vt21debitC",    "createdAt": "2023-08-11T18:18:55.6439374Z"  }}