African payment APIs

Hubtel IP Allowlisting: Static IPs for African Payment APIs

Hubtel checks the source IP of your API requests. Route those requests through QuotaGuard Shield, then give your Retail Systems Engineer both IPs from your dashboard. Shield encrypts the connection between your app and the proxy. Check the source IP from the deployed app before submitting it.

Your app sends calls through a QuotaGuard proxy and two static IPs to the Hubtel API.

What Hubtel requires

Hubtel's developer documentation sets out these requirements as of Dec 4, 2026.

RuleHubtel's requirement
CoveredOperations marked "IP allowlist" in the API reference
Send IPs toYour Retail Systems Engineer
Address typeIPv4 only, no domain names
LimitUp to 4 IPs per service
Unlisted IP gets403 Forbidden or a timeout

Hubtel documents allowlisting for payments, payouts, status checks, refunds, balances, verification and commission services. Confirm the fulfilment reporting contract separately as described below.

Each API has its own host: rmp.hubtel.com for Direct Receive Money, for example, and smp.hubtel.com for Send Money. The four-address limit applies per service. Before going live, allowlist your server IPs and have your production credentials ready.

Hubtel's networking page tells you to route requests through a static outbound IPv4 address, "for example through a NAT gateway or an outbound proxy," and check the address from the same runtime that makes the API request before you submit it. Include every environment that calls Hubtel: production and any staging environment that uses live credentials.

Callbacks run the other way

Hubtel sends payment, payout and refund results to your callback URL. Those requests come from Hubtel to your server, so they use Hubtel's source IPs rather than your outbound static IPs. Hubtel publishes the source addresses for most products' callbacks in its callback reference, and recommends you allow those addresses at your firewall or ingress.

Where no address is published, Hubtel tells you to confirm it with your Retail Systems Engineer before launch.

Confirm the outgoing fulfilment report

For Programmable Services, Hubtel sends the paid order to your Service Fulfilment URL. Your server reports fulfilment outbound. The fulfilment guide documents POST https://gs-callback.hubtel.com:9055/callback with no Authorization header and allowlisted IPs.

The v1 reference describes different authentication and allowlisting requirements. Confirm the deployed endpoint, authentication and network/allowlist contract with your Retail Systems Engineer. Configure the actual outgoing HTTP client accordingly. If proxied, confirm the approved route can CONNECT to destination port 9055.

The traffic path

Hubtel checks the source address of connections your server starts. Route those outbound calls through the proxy:

  1. Your app makes the call from a PaaS, a container platform or serverless functions.
  2. The QuotaGuard proxy receives the call your HTTP client sends to it. On Shield, that hop from your app to the proxy is TLS-encrypted. Static uses an HTTP CONNECT wrapper on that hop, with the proxy credentials and destination host and port sent to the proxy in plaintext.
  3. The Hubtel API sees the call arrive from one of your two static IPs, the pair your Retail Systems Engineer put on the allowlist.

Your HTTPS session with Hubtel runs inside the tunnel from end to end. Neither Shield nor Static decrypts it, so your API ID and API Key travel inside your own TLS session with Hubtel.

Only the calls you send through the proxy leave from those static IPs. Everything else your app does can stay direct.

Your app goes through a QuotaGuard proxy. The first hop is TLS-encrypted on Shield and an HTTP proxy on Static. Static IP 1 and Static IP 2 reach the Hubtel API allowlist. Your API ID and key stay inside your TLS session. Two IPs fit Hubtel's four-address limit.

Shield or Static

Use QuotaGuard Shield for Hubtel's payment data and API credentials. Shield is our supported product for regulated data. It adds TLS between your app and the proxy, alongside your own HTTPS session with Hubtel.

QuotaGuard Static provides an HTTP proxy connection when that first-hop setup suits your workload, including clients that support HTTP rather than TLS connections to a proxy. Static and Shield include the same request and bandwidth allowance at each plan level. On the Starter plan, Static is $19 a month and Shield is $29 a month. See pricing for every plan.

Fitting Hubtel's four-address limit

Register every distinct IPv4 address used by production and staging with live credentials, up to four per service. Each subscription supplies two assigned static IPs; register both for every service it calls.

  • Shared pair: production and staging can use one subscription within its combined usage allowance. Register its two addresses, using two slots.
  • Separate pairs: for environment isolation, choose subscriptions assigned different pairs. Two distinct pairs use four slots. Confirm dashboard assignments; different subscriptions can share a standard pair. Ask QuotaGuard Support for different IPs if your isolation design requires them.

Submit both addresses in each pair. Connections can come from either one, so leaving an address off causes some connections to fail.

Set it up

  1. Create a Shield subscription in a region close to where your app runs. Your dashboard shows your two static IPs and your proxy URL.
  2. Store the proxy URL in an environment variable. The Shield URL starts with https:// and uses port 9294. Static uses an http:// URL on port 9293.
  3. Point your Hubtel client at the proxy. Configure only the client that calls Hubtel, with the fulfilment reporting contract and approved route confirmed separately if you use Programmable Services. In Node.js, use undici's ProxyAgent with the https:// proxy URL and pass it to each Hubtel call.
// PROXY_URL holds the proxy URL from your QuotaGuard dashboard.
import { ProxyAgent, fetch } from 'undici';

const hubtelProxy = new ProxyAgent(process.env.PROXY_URL);
const auth = Buffer.from(
  `${process.env.HUBTEL_API_ID}:${process.env.HUBTEL_API_KEY}`
).toString('base64');

// Hubtel's "Check a collection's status" call, which moves no money.
const res = await fetch(
  `https://api-txnstatus.hubtel.com/transactions/${collectionAccount}/status?clientReference=${ref}`,
  { dispatcher: hubtelProxy, headers: { Authorization: `Basic ${auth}` } }
);

Configure every HTTP client that calls Hubtel to use the selected proxy, then confirm its observed egress against the subscription's assigned pair.

  1. Check the source IP from the deployed app. Request https://ip.quotaguard.com using the same HTTP client and explicit proxy dispatcher as your Hubtel calls, without Hubtel credentials. Expect HTTP 200 and an ip matching either assigned address in your dashboard before submitting both to Hubtel.
  2. Send both IPs to your Retail Systems Engineer. Hubtel allowlists IPv4 addresses, not hostnames. Ask for them on every service you call.
  3. Make a status check like the one above once Hubtel confirms both IPs for that service. This read-only production request checks an existing transaction. For a 403 or timeout, follow the checks below to identify the affected layer.

When Hubtel still returns 403

A 403 or timeout can have several causes. Check each layer using redacted client diagnostics:

  1. Check deployed-client egress. Request https://ip.quotaguard.com with the Hubtel dispatcher and without Hubtel Authorization. The returned ip must match either address assigned to the selected subscription.
  2. Check the proxy connection. Distinguish DNS, connection, TLS and proxy-authentication failures. Confirm the dashboard URL's scheme, host, port and credentials, subscription status, and the runtime's network route. For 407, check credentials and subscription status.
  3. Check the exact Hubtel service. Confirm the documented destination hostname is reachable. Ask your Retail Systems Engineer to verify both assigned IPv4 addresses for that service. Hubtel documents 403s or timeouts as possible outcomes for unlisted IPs.
  4. Check destination authentication and response details. Confirm the API ID, API Key and relevant account for that service and environment. Correlate status, response body and timestamp with your Retail Systems Engineer. For timeouts, use connection and response diagnostics to locate the stage where the limit was reached.

Other African payment APIs

For other African payment providers that check your source IP, use these guides:

For each provider, submit both static IPs from your subscription through that provider's registration process.

FAQ

Which IP addresses should I give Hubtel for production allowlisting?

Send your Retail Systems Engineer both public outbound IPv4 addresses from the QuotaGuard subscription your backend uses. Send the addresses themselves, not the proxy hostname, the IP it resolves to, or your app's inbound URL. Name each Hubtel service that needs the pair so the addresses go on the right lists.

Hubtel allows up to four IPv4 addresses per service. A new proxy connection can leave from either address in the pair, so register both even if your IP check only shows one. If you use a cloud NAT gateway instead, submit its actual public egress addresses. See Hubtel's networking guide.

Does Hubtel Online Checkout need the same IP allowlist as Direct Receive Money?

Check the operation, not just the payment product. Hubtel's v1 reference lists Online Checkout creation on payproxyapi.hubtel.com without an IP allowlist. Direct Receive Money on rmp.hubtel.com and Direct Send Money require allowlisted source IPs.

Even if checkout creation works without allowlisting, your backend still needs allowlisted egress for production Transaction Status on api-txnstatus.hubtel.com. Include the status service in your request to Hubtel. A reconciliation worker may make that call from a different runtime than the one that created the checkout.

Do production and staging need separate static IP pairs for Hubtel?

Count distinct public IPv4 addresses per service, not deployments or subscriptions. Hubtel asks you to include every environment calling production, including staging when it uses live credentials.

Production and staging can share one QuotaGuard subscription within its combined plan usage allowance when your security policy permits that configuration. They then use the same assigned pair. Verify the route from each deployment.

Use separate configurations when you need isolation. Two different, non-overlapping pairs use all four slots if both environments call the same service. Separate shared subscriptions can have the same pair, so compare the actual dashboard addresses before counting. For staging that should stay off production, use Hubtel's sandbox with sandbox hosts, keys and account numbers.

What does Shield encrypt when my backend calls Hubtel over HTTPS?

Shield encrypts the connection from your backend to the proxy, including the proxy credentials. Inside that connection, your HTTP client opens a separate HTTPS session to Hubtel. Your Hubtel Basic Auth header and payment payload stay in that inner session. Both Shield and Static carry outbound HTTPS without decrypting that inner session.

Use Shield when your payment workload requires TLS on the proxy hop. Configure a client that supports an HTTPS proxy with the subscription's https:// URL on port 9294. Keep certificate and hostname verification enabled for both the proxy and Hubtel. See QuotaGuard's outbound data flow.

How do I route just my Hubtel calls through Shield in Node.js?

Import fetch and ProxyAgent from undici. Read the complete Shield connection URL from a server-injected secret and reuse one agent. Pass it as dispatcher on each Hubtel call you want routed through Shield. This explicit setup needs no global proxy flag. Undici 8.0.0 requires Node.js 22.19.0 or later.

This module exports the dispatcher for your Hubtel client and an IP check that sends no Hubtel credentials:

import { fetch, ProxyAgent } from 'undici';

const proxyUrl = process.env.PROXY_URL;
if (!proxyUrl) throw new Error('Missing PROXY_URL');

export const hubtelDispatcher = new ProxyAgent(proxyUrl);

export async function checkOutboundIp() {
  const response = await fetch('https://ip.quotaguard.com', {
    dispatcher: hubtelDispatcher,
    signal: AbortSignal.timeout(10_000),
  });
  if (!response.ok) throw new Error(`IP check HTTP ${response.status}`);
  const { ip } = await response.json();
  return ip;
}

Use { dispatcher: hubtelDispatcher } with the imported fetch in your Hubtel client. If a payment SDK uses its own HTTP client, configure that client's documented proxy option or use your own server-side HTTP client. A working probe with Undici does not show that a separate SDK uses the proxy.

Where should I store my Hubtel API keys and the proxy URL?

Store both in your backend's secret manager and inject the values into the processes that call Hubtel. Keep separate entries: the QuotaGuard URL carries proxy credentials, while Hubtel's API ID and API Key are the username and password for Hubtel HTTP Basic authentication. Send them in the HTTPS request's Authorization header to Hubtel, not in the URL.

Keep the credentials out of browser and mobile code, repositories, logs and raw request or exception dumps. If you use hosted checkout, send its checkout URL to the browser rather than the credentials. For troubleshooting, record the operation, status and sanitized error code, with customer data and credentials redacted.

How can I confirm the deployed backend uses the right IP before sending Hubtel any traffic?

From the deployed process or worker, use the same HTTP client and proxy settings as the Hubtel call to GET the QuotaGuard IP check. Omit the Hubtel Authorization header. Compare the JSON ip field with the two IPv4 addresses in your subscription. A match to either one is the expected result.

One matching IP confirms that probe's egress. It does not prove Hubtel has registered the pair, that both addresses have been exercised, or that the Hubtel hostname follows the same route. Repeated requests may reuse one connection. Check host-specific proxy rules and repeat the probe from each deployed job that calls Hubtel.

Why does Hubtel still return 403 or time out after allowlisting?

Start with an IP check from the same deployed client. If the result falls outside the assigned pair, check the client's proxy selection, the deployed secret and any host-specific routing rules. If it matches, confirm that both IPs are active on the allowlist for the exact production service you're calling.

  • A 407 during CONNECT points to proxy authentication, not Hubtel. Check the complete proxy URL and the subscription status. Your HTTP client may report a tunnel failure instead of returning 407 as a normal response.
  • A Hubtel 401 or Direct Receive Money 4101 points you to the API credentials, key scopes, account number or business setup. A Hubtel 403 can also mean a channel restriction or too many payment requests to the same customer number. Use the Hubtel error body and code.
  • A timeout alone does not identify the cause. Check where the client stalled: DNS or connection to the proxy, TLS or CONNECT, or the response from the destination. Check the configured host and port before attributing the timeout to the allowlist.
How can I verify Hubtel's production route without creating a payment or payout?

After Hubtel confirms the allowlist, use a documented status lookup for an existing transaction you are authorized to view. For a collection, the production request is GET /transactions/{accountNumber}/status on api-txnstatus.hubtel.com. Use the collection account number in the path, the original clientReference in the query, and Basic Auth with the payment API ID and API Key.

Use your deployed client's proxy settings. Expect a result for the known reference and read data.status; an HTTP 200 alone does not confirm payment. The interactive reference shows sandbox examples; use the production collection status guide for the live host.

For payouts, use the separate payout status lookup: GET /api/merchants/{accountNumber}/transactions/status on smrsc.hubtel.com. Put the disbursement account number in the path and the original clientReference in the query.

Which IPs should my firewall allow for incoming Hubtel callbacks?

Use the addresses Hubtel publishes for your product in its callback reference. Hubtel initiates these POSTs to your callback URL, so your outbound proxy IPs don't belong on this ingress list. Apply the sender allowlist at your firewall or trusted ingress. If the reference leaves the address blank, confirm it with your Retail Systems Engineer.

Match the callback to your stored transaction, save it durably, then acknowledge it with HTTP 200. Verify the transaction status and amount before fulfilment, and make the update idempotent so a repeat delivery can't fulfil twice. Hubtel documents a sandbox signature header; don't rely on it in production.

Is the Programmable Services fulfilment report another incoming Hubtel webhook?

No. Hubtel sends the paid order to your Service Fulfilment URL. After you deliver the service, your backend sends the fulfilment report in the other direction, to https://gs-callback.hubtel.com:9055/callback. Keep the sender rules for the incoming order separate from the outbound route for the report.

Hubtel's fulfilment guide calls for allowlisted outbound IPs, but its v1 reference lists different authentication and allowlisting requirements. Confirm the production contract with your Retail Systems Engineer. If you're routing the report through your proxy, check that your configured route permits HTTPS CONNECT to that destination on port 9055.

What should I do if a Hubtel payment request times out or the final callback never arrives?

Keep the original reference and reconcile the existing payment instead of immediately sending it again. Hubtel requires a status check when a payment has no final result after five minutes. Route the reconciliation worker through the approved egress as well, even if it's deployed separately from the payment handler.

Read data.status on a collection lookup. For Paid, match the reference and amount to your records and fulfil once. For Unpaid, keep the order unresolved: it can mean pending, failed or expired. For Refunded, follow your refund workflow. See Hubtel's reconciliation guide.

How do I switch from QuotaGuard Static to Shield without losing Hubtel access?

Register both Shield IPs with Hubtel before changing the backend's proxy URL. Static and Shield use different IP pairs. Check the four-address limit for every affected service before scheduling the switch. If there isn't room for both pairs during the cutover, agree on the timing and address changes with your Retail Systems Engineer first.

After Hubtel confirms the new entries, deploy the Shield connection URL to each caller and verify egress and read-only status access from the new route. Keep the old route available until the new one is verified, where your security policy and Hubtel list capacity permit. Remove the old entries once no approved caller uses them.

Can I reuse the same static IPs for Paystack, Flutterwave and Monnify?

Yes, if the same approved egress carries those API calls. Register the public IPs separately with each provider and use the rules for its operation and environment. Hubtel's four-address limit and its Retail Systems Engineer process don't carry over.

  • Paystack: When enabled, allowlisting applies to secret-key requests. Add individual public IPv4 addresses in the dashboard for the relevant environment, up to ten per environment.
  • Flutterwave v3 payouts: Enable Transfer via API, then add the callers' IPs under Settings → Whitelisted IP addresses and complete the dashboard's verification step.
  • Monnify live disbursements: Supply the static IPs in the disbursement onboarding follow-up. Monnify documents D06 for requests from an address it hasn't allowlisted.

Get a fixed IP Hubtel can allowlist

Set up Shield, send your Retail Systems Engineer both static IPs and check the path from your deployed app.