Reseller API
Sell data from your own platform
Build your own website or app with our API. Sell data bundles and AFA registrations at reseller cost, set your own prices, and keep the difference.
How it works
Become an agent
Sign up and get approved as a reseller (agent).
Top up your wallet
Load funds via Paystack — orders are billed from this balance.
Generate an API key
Create your key from your agent dashboard.
Start selling
Call the API from your own site and set your own prices.
Authentication
Every request must include your API key in the Authorization header. Generate your key from your agent dashboard → API Access.
Authorization: Bearer YOUR_API_KEY
Keep your key secret — anyone with it can place orders billed to your wallet.
Endpoints
Base URL: https://www.ranceldatahub.shop
/api/v1/bundlesList all available data bundles at your reseller price. Call this any time to sync current pricing.
Example
curl "https://www.ranceldatahub.shop/api/v1/bundles" \ -H "Authorization: Bearer YOUR_API_KEY"
/api/v1/balanceCheck your wallet balance (in GHS).
Example
curl "https://www.ranceldatahub.shop/api/v1/balance" \ -H "Authorization: Bearer YOUR_API_KEY"
/api/v1/orderPlace a data bundle order. The reseller cost is deducted from your wallet. Returns the order id and status.
Body
{
"bundleId": "the bundle id from /api/v1/bundles",
"recipient": "0241234567"
}Example
curl -X POST "https://www.ranceldatahub.shop/api/v1/order" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"bundleId":"BUNDLE_ID","recipient":"0241234567"}'/api/v1/order/{id}Check the status of an order you placed (processing, delivered, or failed).
Example
curl "https://www.ranceldatahub.shop/api/v1/order/ORDER_ID" \ -H "Authorization: Bearer YOUR_API_KEY"
/api/v1/afaSubmit an AFA registration. The AFA price is deducted from your wallet.
Body
{
"fullName": "Ama Boateng",
"phoneNumber": "0241234567",
"idNumber": "GHA-XXXXXXXXX-X",
"dateOfBirth": "1995-06-12",
"town": "Kumasi",
"occupation": "Trader",
"region": "Ashanti",
"cropProduce": "Maize (optional)"
}Example
curl -X POST "https://www.ranceldatahub.shop/api/v1/afa" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fullName":"Ama Boateng","phoneNumber":"0241234567","idNumber":"GHA-XXX","dateOfBirth":"1995-06-12","town":"Kumasi","occupation":"Trader","region":"Ashanti"}'Good to know
- • Orders are billed at reseller cost from your top-up wallet. You set your own selling price to your customers.
- • If an order can’t be placed, your wallet is automatically refunded — you’re never charged for a failed order.
- • Keep your wallet funded, or orders will return a
402 Insufficient balanceerror. - • Prices update automatically — re-fetch
/api/v1/bundlesto stay in sync.