HubtelDevelopers
Callbacks & errors

Errors

HTTP status codes and Hubtel response codes, with fixes for a wrong account number, a reused client reference, too many requests and a server IP that isn't allowlisted.

Updated 27 Nov 2026

HTTP status codes

StatusMeaning
200The HTTP request succeeded. Read the operation’s response body for its result; a successful HTTP response alone does not confirm payment.
400Validation error. The message names the field.
401Credentials missing or wrong, the key doesn't have the service's scope, or the account number in the path doesn't belong to your keys.
403Your server IP isn't allowlisted, your account isn't allowed to use the channel, or too many payment requests went to the same customer number in a short time.
404Unknown path or transaction.
5xxServer error. Check the transaction's status before you retry a payment or payout.

Each service's own codes are on its reference page, for example Refunds, Invoicing and SMS.

Business response codes (v1)

ResponseCodeMeaningWhat to do
2001Failed at the network: insufficient funds, wrong PIN, declined, limit reached, or expired.Show the customer the message and let them retry. Do not retry automatically with the same ClientReference.
4000Validation error: a field is missing or malformed.Read the message, which names the field, and correct the request.
4070Fees are not configured for this amount or channel.Check the minimum amount for the channel.
4075Your disbursement balance cannot cover the payout plus fees.Top up your disbursement account, or transfer funds from your collection account.
4101Your key lacks the scope for this operation, or the business is not set up for it.Create a key with the right scope in Workbench → API keys.
4103Your account is not allowed to use this channel.Request the channel in Workbench → Go live.
0000Processed successfully.No action needed.
0001Accepted and pending. A callback will report the final state.Wait for the callback. If none arrives within 5 minutes, check the status.

Wrong account number

For endpoints that include an account number in the path, use the required collection or disbursement account number. Receive Money answers a wrong number with 401 and ResponseCode 4101: "Client request keys do not match API keys on business".

Duplicate client reference

A ClientReference that has already been used is rejected with 400 and ResponseCode 4000:

ServiceMessage
Receive MoneyDuplicate Client Reference: "<reference>"
Send Money and Send to BankProvided client reference already exists. Please check and try again.
Online CheckoutDuplicated client reference. Please try again.

On Receive Money and Online Checkout, a reference can be recorded before validation finishes. If the outcome is unknown, check the original transaction’s status before starting another payment. After a confirmed validation failure, correct the request and use a new reference.

Too many requests

Receive Money limits how many payment requests your business can send to the same customer number in a short time. Over the limit, it answers 403 with ResponseCode 4000 and the message Too many requests for "<number>".

IP not allowlisted

In production, a request from an address that isn't allowlisted gets 403 Forbidden or times out. Send your server's public IP to your Retail Systems Engineer. See IP allowlisting.

On this page