HubtelDevelopers
API referenceRecurring Invoice

Verify a recurring invoice

POST
/api/proxy/verify-invoice

Completes setup with the OTP from create (otpPrefix-0000 in the sandbox). Hubtel then prompts the customer; the initial debit callback arrives at the callbackUrl from create after they respond or the request expires.

Authorization

basicAuth
AuthorizationBasic <token>

Base64 of API ID:API Key.

In: header

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/proxy/verify-invoice" \  -H "Content-Type: application/json" \  -d '{    "recurringInvoiceId": "0f84e20a2839482e807128e8c21d08d6",    "requestId": "a6487bc44eae44849fd80326a0dd802a",    "otpCode": "OQDM-9514"  }'
{  "responseCode": "0001",  "message": "Your request has been processed successfully. You will receive a callback on the final status shortly.",  "data": {    "recurringInvoiceId": "0f84e20a2839482e807128e8c21d08d6"  }}