Recurring Invoice
Create, verify and cancel invoices that debit a customer's mobile money wallet on a schedule.
Host: rip.hubtel.com. Requests must come from an allowlisted IP.
Authenticate with your API ID and API Key. See Authentication and accounts.
| Operation | Request |
|---|---|
| Create a recurring invoice | POST /api/proxy/{accountNumber}/create-invoice |
| Verify a recurring invoice | POST /api/proxy/verify-invoice |
| Cancel a recurring invoice | DELETE /api/proxy/{accountNumber}/cancel-invoice/{id} |
Response codes
The codes this service returns in ResponseCode, as documented for production. Codes shared by all payment APIs are also explained in Errors.
| Response Code | Description |
|---|---|
0000 | The transaction was successful. (final status) |
0001 | Pending State. The transaction has been processed successfully. A callback will be sent on the final state. |
0005 | There was an HTTP failure/exception when reaching the payment partner or Successful Invoice Cancellation. |
2001 | The transaction failed. Either because the approval failed with the network provider or because the initial payment failed. |
4000 | Validation Errors. Something is not quite right with this request. Please check and try again. |
4101 | Authorization for request is denied. |
4103 | Permission denied |
Create a checkout POST
Creates a hosted checkout and returns a `checkoutUrl` to redirect your customer to, plus a `checkoutDirectUrl` for embedding. The customer chooses mobile money, card or Hubtel wallet on Hubtel's page. The final result arrives at `callbackUrl`; never fulfil an order from the `returnUrl` redirect alone.
Cancel a recurring invoice DELETE
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.