Marketplace API
One API for every store on the marketplace. Top up a wallet, call the API, and get the logins back in the same response.
Sign up as a reseller (separate from a seller account).
With Flutterwave or Paystack. Purchases are paid from it.
Say what it’s for. It works once the admin approves it.
List products, then POST an order to get the logins.
Base URL: https://www.resellersmarketplace.store/api/v1
Send your key in a header: Authorization: Bearer sk_live_…
Prices are in naira. Every response has "ok": true or "ok": false with an error code and message. Limit: 120 requests a minute per key.
| Method | Path | What it does |
|---|---|---|
| GET | /products | Every product in every live store. Filters: q, category, store (slug), in_stock=1, page. |
| GET | /products/{id} | One product, with stock and public previews. |
| GET | /categories | Categories, with how many products each has. |
| GET | /balance | Your wallet balance. |
| POST | /orders | Buy: {"product_id": "…", "quantity": 1}. Paid from your wallet; returns the logins. |
| GET | /orders | Your purchases, newest first, with logins (100 per page). |
| GET | /orders/{id} | One purchase, with its login. |
curl https://www.resellersmarketplace.store/api/v1/products?in_stock=1 \ -H "Authorization: Bearer sk_live_YOUR_KEY"
{
"ok": true,
"page": 1, "per_page": 100, "total": 1,
"products": [{
"id": "clx…",
"title": "Instagram 5K fashion page",
"platform": "Instagram",
"category": { "id": "clc…", "name": "Instagram" },
"store": { "name": "Divine Logs", "slug": "divine-logs" },
"price": 15000, "currency": "NGN", "stock": 12
}]
}curl -X POST https://www.resellersmarketplace.store/api/v1/orders \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"product_id": "clx…", "quantity": 1}'{
"ok": true,
"order": {
"ids": ["cly…"], "product": "Instagram 5K fashion page",
"store": "Divine Logs", "quantity": 1,
"unit_price": 15000, "total": 15000, "currency": "NGN",
"items": [{ "order_id": "cly…", "login": "page_one",
"password": "••••", "details": "2FA: …" }]
},
"balance": 35000
}const API = 'https://www.resellersmarketplace.store/api/v1';
const headers = { Authorization: 'Bearer ' + process.env.MARKETPLACE_API_KEY, 'Content-Type': 'application/json' };
// Never call the API from the browser: keep your key on your server.
const { products } = await fetch(API + '/products?in_stock=1', { headers }).then((r) => r.json());
const res = await fetch(API + '/orders', {
method: 'POST', headers,
body: JSON.stringify({ product_id: products[0].id, quantity: 1 }),
}).then((r) => r.json());
if (!res.ok) throw new Error(res.error.message);
console.log(res.order.items); // [{ login, password, details }]| Status | Code | Meaning |
|---|---|---|
| 401 | missing_key / invalid_key | No key, or the key is wrong or revoked. |
| 403 | key_pending | The admin hasn’t approved this key yet. |
| 402 | insufficient_balance | Top up your wallet. |
| 400 | out_of_stock | Not enough logs left for that quantity. |
| 404 | not_found | The product or order doesn’t exist or isn’t for sale. |
| 429 | rate_limited | More than 120 requests a minute. |
If an order fails, you are not charged. Each login is sold once and never to anyone else.