HubtelDevelopers
API reference

Invoicing

Send itemised invoices by SMS and email with a payment link, and check an invoice's status.

Preview documentation

Host: invoicing.hubtel.com. Requests must come from an allowlisted IP.

Authenticate with your API ID and API Key. See Authentication and accounts.

OperationRequest
Send an invoicePOST /api/v2.0/invoice/{accountNumber}/simple
Send a repeating invoicePOST /api/v2.0/invoice/{accountNumber}/repeat
Get an invoice's statusGET /api/v2.0/invoice/{accountNumber}/{invoiceId}/status-check

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 CodeDescriptionRequired Action
0000The transaction has been processed successfully.None
0001The transaction failed.None
0005There was an HTTP failure/exception when reaching the payment partnerThe transaction state is not known. Please contact your Retail Systems Engineer to confirm the status of this transaction.
2001Transaction failed due to an error with the Payment Processor. Please review your request or retry in a few minutesCustomer either entered no or invalid PIN; Mobile network not able to parse your request; USSD session timeout; Having strange characters (&*!%@) in your description
2100The request failed as the customer's phone is switched off.None
2101The transaction failed as the PIN entered by the Airtel Money customer is invalidNone
2102The Airtel Money user has insufficient funds in wallet to make this paymentNone
2103The mobile number specified is not registered on Airtel MoneyNone
2050The MTN Mobile Money user has insufficient funds in wallet to make this payment.Customer has to top up mobile money wallet with funds more than the amount being charged.
2051The mobile number provided is not registered on MTN Mobile MoneyEnsure that the mobile number is registered on the MTN channel.
2152The mobile number specified is not registered on Tigo cash.None
2153The amount specified is more than the maximum allowed by Tigo CashNone
2154The amount specified is more than the maximum daily limit allowed by Tigo Cash.None
2200The recipient specified is not registered on Vodafone Cash.None
2201The customer specified is not registered on Vodafone Cash.None
3008The customer specified is not registered on Vodafone Cash.The payment channel has been disabled on your account. Ensure you have uploaded your business registration documents for your account to be duly verified. Contact your Retail Systems Engineer with your Merchant Account Number if you are receiving this error even though you have provided the necessary documents.
3009Merchant account is not available.Check to confirm if your merchant account number is valid.
3012You have insufficient funds in your Merchant AccountAmount is less than funds in merchant account.
3013Amount specified is less than the fees.The amount you are charging is less than the fee.
3022Merchant account has been registered on this channel, but the channel has not been activated.None
3024Specified Channel Provider is invalidThe selected payment channel is invalid.
4000Validation errorsValidation errors. Something is not quite right with this request. Please check again.
4075Insufficient prepaid balanceYou don't have enough funds in your Disbursement Account to send money to your customers. You can top-up your Disbursement Account by transferring funds from your available balance or bank deposit.
4080Insufficient available balanceNone
4101Authorization for request is deniedEnsure that you're providing the correct Basic Auth key for the Authorization header. Also ensure you’re passing your Collection Account Number in the endpoint.
4103Permission deniedYou are not allowed to perform this transaction. Kindly ensure your API keys are accurate.
4105Authenticated Hubtel organization is not owner of specified account number.There's a mismatch of the Merchant Account number and the Basic Authorization key. Ensure your API keys are from the same Unity account as the Merchant Account.
4505Transaction has already been refundedNone