HubtelDevelopers
API referenceRecurring Invoice

Cancel a recurring invoice

DELETE
/api/proxy/{accountNumber}/cancel-invoice/{id}

Stops a recurring invoice so no further instalments are collected. A cancellation callback (0005) is POSTed to the invoice's callbackUrl. Instalments already collected are not refunded; use Refunds for that.

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.

id*string

Response Body

application/json

application/json

application/json

Callbacks

curl -X DELETE "https://example.com/api/proxy/string/cancel-invoice/string"
{  "responseCode": "0000",  "message": "Your request has been processed successfully"}