Access Africa Business API
Sell airtime and mobile data from your own systems. Business accounts buy from a prepaid USD wallet at a discount, place single or bulk purchases over HTTPS, and receive signed status callbacks.
Getting a business account
Register a normal account, then contact us with your business name and the email you registered with. Once we enable your business account you get a USD wallet and a discount on every purchase - for example, with a 5% discount you pay $950.00 for $1,000.00 of airtime. A Business page then appears in your portal, where you manage API keys, callbacks and CSV bulk purchases.
Base URL: https://vas-portal.accessafricatech.com. All requests and responses are JSON over HTTPS; amounts are decimals in the stated currency.
Authentication
Create an API key on the Business page of the portal and send it on every request in the
X-Api-Key header. Keys look like aak_xxxxxxxxxxxx_yyyy…; the full key is shown only once, when it is created.
- Call the API from your server only. Never embed a key in a website, mobile app or public repository.
- You can have up to 5 active keys - use one per system so you can rotate or revoke them independently.
- If a key leaks, revoke it in the portal immediately; requests using it are rejected straight away.
curl https://vas-portal.accessafricatech.com/api/v1/wallets \
-H "X-Api-Key: $ACCESSAFRICA_API_KEY"Funding your wallet
Purchases are paid from your USD wallet. You can top it up two ways, from the portal's Wallet page or through the API:
- Online with EcoCash, InnBucks, O'mari or card (USD 1.00-5,000.00):
POST /api/v1/wallet-topups. The response'sactionTypeisRedirect(send the payer toredirectUrl) orMobileMoneyPrompt(EcoCash: the payer approves the prompt on their phone). PollGET /api/v1/wallet-topups/{id}or wait for thewallet.topup.paidcallback. The wallet is credited only once the payment is confirmed. - Bank transfer: transfer the funds, then submit
POST /api/v1/wallet-fundingwith your bank reference. Our Finance team approves the request once the deposit is confirmed.
# Online top-up (EcoCash prompt)
curl -X POST https://vas-portal.accessafricatech.com/api/v1/wallet-topups \
-H "X-Api-Key: $ACCESSAFRICA_API_KEY" -H "Content-Type: application/json" \
-d '{"amount": 100.00, "paymentMethod": "EcoCash", "payerMobileNumber": "0771234567",
"returnUrl": "https://vas-portal.accessafricatech.com/app/wallet", "idempotencyKey": "topup-2026-11-09-001"}'
# Bank transfer (approved by Finance)
curl -X POST https://vas-portal.accessafricatech.com/api/v1/wallet-funding \
-H "X-Api-Key: $ACCESSAFRICA_API_KEY" -H "Content-Type: application/json" \
-d '{"amount": 500.00, "currencyCode": "USD", "fundingMethod": "BankTransfer",
"proofOfPaymentReference": "BANKREF123", "idempotencyKey": "eft-2026-11-09-001"}'
Check balances with GET /api/v1/wallets and your statement with GET /api/v1/wallets/{id}/transactions?page=1&pageSize=50.
Products
List products with GET /api/v1/products?type=Airtime or ?type=MobileData (optional operatorCode,
page, pageSize). Use each product's id as the productId when purchasing.
isFixedValue: true- a fixed bundle or denomination; omitamountwhen buying it.isFixedValue: false- send anamountbetweenminimumVariableAmountandmaximumVariableAmount.- When you call with your API key, prices are your discounted business price.
curl "https://vas-portal.accessafricatech.com/api/v1/products?type=Airtime" \
-H "X-Api-Key: $ACCESSAFRICA_API_KEY"Single purchase
POST /api/v1/purchases/airtime or POST /api/v1/purchases/data. The price is debited from your wallet
and the product is delivered to recipientMobileNumber.
curl -X POST https://vas-portal.accessafricatech.com/api/v1/purchases/airtime \
-H "X-Api-Key: $ACCESSAFRICA_API_KEY" -H "Content-Type: application/json" \
-d '{"productId": "3f2b1c9e-0000-0000-0000-000000000000",
"recipientMobileNumber": "0771234567",
"amount": 5.00,
"clientReference": "INV-1001",
"idempotencyKey": "INV-1001-airtime"}'
{
"data": {
"id": "8c1d…", "orderReference": "ORD-…", "clientReference": "INV-1001",
"status": "Successful", "sellingPrice": 4.75, "currencyCode": "USD", …
},
"correlationId": "0f7c…"
}
Idempotency: generate a unique idempotencyKey per purchase and reuse it when you retry.
Sending the same key again returns the same order - it never charges twice - so it is always safe to retry after a timeout.
clientReference is your own reference (up to 100 characters) and is echoed back on the order and in callbacks.
Every successful response is wrapped as {"data": …, "correlationId": "…"}. Order status values:
Successful- delivered by the network.Failed- not delivered; the wallet debit is reversed.Pending/Submitted- still in progress; resolves later (poll or use callbacks).Unknown- the network outcome is being verified; it is resolved by reconciliation. Do not retry with a new key.
Order status
Fetch an order by id with GET /api/v1/orders/{id}, or by our order reference with GET /api/v1/orders/by-reference/{orderReference}.
curl https://vas-portal.accessafricatech.com/api/v1/orders/8c1d0000-0000-0000-0000-000000000000 \
-H "X-Api-Key: $ACCESSAFRICA_API_KEY"
curl https://vas-portal.accessafricatech.com/api/v1/orders/by-reference/ORD-20261109-000123 \
-H "X-Api-Key: $ACCESSAFRICA_API_KEY"Bulk purchases
Submit up to 500 items in one request with POST /api/v1/business/batches. The API answers 202 Accepted with the
stored batch; items are then processed in the background, one wallet-funded order each. Poll
GET /api/v1/business/batches/{id} (or list with GET /api/v1/business/batches) or wait for the
batch.completed callback. The batch idempotencyKey protects against duplicate submissions.
You can also upload a CSV on the portal's Business page.
curl -X POST https://vas-portal.accessafricatech.com/api/v1/business/batches \
-H "X-Api-Key: $ACCESSAFRICA_API_KEY" -H "Content-Type: application/json" \
-d '{"idempotencyKey": "payroll-2026-11", "clientReference": "November staff airtime",
"items": [
{"productId": "3f2b…", "recipientMobileNumber": "0771234567", "amount": 5.00, "clientReference": "EMP-001"},
{"productId": "9a41…", "recipientMobileNumber": "0712345678", "amount": null, "clientReference": "EMP-002"}
]}'
# 202 Accepted -> poll until summary.status is "Completed"
curl https://vas-portal.accessafricatech.com/api/v1/business/batches/{id} \
-H "X-Api-Key: $ACCESSAFRICA_API_KEY"Callbacks
Set an HTTPS callback URL on the Business page. We POST a JSON event to it for:
order.updated- an order changed status.batch.completed- every item in a batch has finished.wallet.topup.paid- an online top-up was paid and credited.
POST /webhooks/accessafrica HTTP/1.1
Content-Type: application/json
X-AccessAfrica-Event: order.updated
X-AccessAfrica-Delivery: 5b0e…
X-AccessAfrica-Timestamp: 1762689600
X-AccessAfrica-Signature: sha256=9f86d081884c7d65…
{
"id": "5b0e…",
"event": "order.updated",
"createdAtUtc": "2026-11-09T12:00:00Z",
"data": { "orderReference": "ORD-…", "clientReference": "INV-1001", "status": "Successful", … }
}
Each request carries these headers:
X-AccessAfrica-Event- the event name.X-AccessAfrica-Delivery- the delivery id (same asidin the body).X-AccessAfrica-Timestamp- Unix time in seconds.X-AccessAfrica-Signature-sha256=+ lowercase hex ofHMAC_SHA256(signingSecret, "{timestamp}.{rawBody}").
Verify the signature over the raw request body before trusting it, and de-duplicate by id - the same event may arrive more than once.
Respond with any 2xx within 10 seconds; otherwise we retry up to 5 times, about every 2 minutes.
The signing secret is shown once when you first set a URL or rotate it.
// ASP.NET Core minimal API receiver (C#)
using System.Security.Cryptography;
using System.Text;
app.MapPost("/webhooks/accessafrica", async (HttpRequest request) =>
{
using var reader = new StreamReader(request.Body, Encoding.UTF8);
var rawBody = await reader.ReadToEndAsync();
var timestamp = request.Headers["X-AccessAfrica-Timestamp"].ToString();
var signature = request.Headers["X-AccessAfrica-Signature"].ToString();
if (!IsValidSignature(signingSecret, timestamp, rawBody, signature))
return Results.Unauthorized();
// De-duplicate on the "id" field, store the event, then return 2xx quickly.
return Results.Ok();
});
static bool IsValidSignature(string secret, string timestamp, string rawBody, string header)
{
// Reject stale deliveries (each retry is freshly signed).
if (!long.TryParse(timestamp, out var ts) ||
Math.Abs(DateTimeOffset.UtcNow.ToUnixTimeSeconds() - ts) > 300)
return false;
var hash = HMACSHA256.HashData(Encoding.UTF8.GetBytes(secret),
Encoding.UTF8.GetBytes($"{timestamp}.{rawBody}"));
var expected = "sha256=" + Convert.ToHexString(hash).ToLowerInvariant();
return CryptographicOperations.FixedTimeEquals(Encoding.UTF8.GetBytes(expected),
Encoding.UTF8.GetBytes(header));
}Errors and limits
Errors use application/problem+json with a title, status and correlationId - quote the correlation id when contacting support.
HTTP/1.1 401 Unauthorized
Content-Type: application/problem+json
{ "title": "Unauthorized", "status": 401, "correlationId": "0f7c…" }
| Status | Meaning |
|---|---|
| 400 / 422 | Validation or business-rule failure (for example an invalid number, an amount outside the product's range, or insufficient wallet balance). Fix the request or top up; retrying unchanged will fail again. |
| 401 | Missing, invalid or revoked API key. |
| 403 | The account is not an active business account, or the action is not allowed with an API key. |
| 404 | The product, order or batch was not found for your account. |
| 409 | Conflict with the current state (for example a concurrent update). Fetch the latest state, then retry with the same idempotency key. |
| 429 | Rate limited - 600 requests per minute per business. Back off and retry. |
API keys cannot create or revoke other keys; manage keys from the portal while signed in.
Need help?
Contact our support team to open a business account or for integration help. Include the correlationId from any error.