Confirm a pre-approval with an OTP
Completes a pre-approval started with the OTP flow, using the code the customer received. On success the customer's wallet can be debited without further prompts.
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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
Callbacks
curl -X POST "https://example.com/api/v2/merchant/string/preapproval/verifyotp" \ -H "Content-Type: application/json" \ -d '{ "customerMsisdn": "233200000000", "hubtelPreApprovalId": "5f20092321d54eefb974dbfea6de5c34", "clientReferenceId": "3jL2KlUy3vt21debitC", "otpCode": "HNRM-8852" }'{ "message": "OTP Verified! Pending preapproval", "responseCode": "2000", "data": { "hubtelPreApprovalId": "5f20092321d54eefb974dbfea6de5c34", "preapprovalStatus": "PENDING" }}