HubtelDevelopers
API referenceDirect Debit

Cancel a pre-approval

GET
/api/v2/merchant/{accountNumber}/preapproval/{msisdn}/cancel

Stops future debits for a customer's wallet. Do this when a loan is repaid or a subscription ends, so the customer isn't charged again.

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.

msisdn*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/merchant/string/preapproval/string/cancel"
{  "message": "Successfully cancelled preapproval for customer 233548359582 and business gershon",  "responseCode": "2000",  "data": true}