Cancel a pre-approval
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 Base64 of API ID:API Key.
In: header
Path Parameters
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.
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}Direct Debit
Get a customer's approval for direct debits on their wallet, check it, and cancel or reactivate it. Charges go through Receive Money.
Get a pre-approval's status GET
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.