Àwọn ibi ìpè lójú ìwé yìí
GET /v1/catalog/coins: Krípító àti nẹ́tíwọ́ọ̀kì tí a ń gbà (pẹ̀lú àdírẹ́sì ìfowópamọ́ kan náà)POST /v1/topups: Bẹ̀rẹ̀ fífi krípító kún àkáǹtì (àdírẹ́sì kan náà, iye gan-an)POST /v1/topups/{topUpId}/txid: Jẹ́rìí pé o ti fi owó ránṣẹ́ (TXID jẹ́ àṣàyàn)GET /v1/topups/{topUpId}: Gba ìfikún owó (máa pè é láti mọ ipò rẹ̀ lọ́wọ́lọ́wọ́)GET /v1/topups: Ṣàtòjọ fífi krípító kún àkáǹtì
URL ìpìlẹ̀ https://africaproxies.com/api/v1. Ìmúdájú ìwọlé, àṣìṣe àti ààlà: wo àkótán API.
Krípító àti nẹ́tíwọ́ọ̀kì tí a ń gbà (pẹ̀lú àdírẹ́sì ìfowópamọ́ kan náà)
GET/v1/catalog/coins
Ìgbàlọwọ́: kò nílò API key.
Ìdáhùn 200 OK
{
"data": [
{
"code": "BTC",
"name": "Bitcoin",
"networks": [
{
"id": "bitcoin",
"name": "Bitcoin",
"confirmationsRequired": 2,
"estimatedMinutes": null,
"memoRequired": false,
"address": "DEPOSIT_ADDRESS"
}
]
}
]
}Àpẹẹrẹ kòdì
curl -s "https://africaproxies.com/api/v1/catalog/coins"import os
import requests
API = "https://africaproxies.com/api/v1"
r = requests.get(f"{API}/catalog/coins", timeout=30)
r.raise_for_status()
print(r.json())// Node.js 18+ (built-in fetch), ES module
const API = 'https://africaproxies.com/api/v1';
const res = await fetch(`${API}/catalog/coins`);
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());Bẹ̀rẹ̀ fífi krípító kún àkáǹtì (àdírẹ́sì kan náà, iye gan-an)
POST/v1/topups
amountUsd≥ 25.00 USD àti ≤ ààlà tó pọ̀ jù (10,000.00 gẹ́gẹ́ bí àiyípadà): bí bẹ́ẹ̀ kọ́,422lóríamountUsd.coin+networkgbọdọ̀ jẹ́ ọ̀kan nínúGET /v1/catalog/coins(bí bẹ́ẹ̀ kọ́,409 coin_unavailable).- Ó ń dá
addresskan náà ti nẹ́tíwọ́ọ̀kì àtiamountCryptogan-an padà =amountUsd/rate, tí a yí sókè sí ìpéye ẹyọ krípító (BTC/LTC/ETH/SOL ní ibi mẹ́wàá 8, USDT/USDC 6), pẹ̀lú àfikún kékeré aláìlẹ́gbẹ́ ní nọ́mbà ìkẹyìn kí ìfikún méjì tó ṣí lórí nẹ́tíwọ́ọ̀kì kan má bàa béèrè iye kan náà. A dìratemú títí déexpiresAt(ìṣẹ́jú 30);txidDeadline=expiresAt+ 72 h. purchasejẹ́ àṣàyàn (ara kan náà bíPOST /v1/orders): a ṣàyẹ̀wò rẹ̀, a sì yan iye owó báyìí (422pẹ̀lú orúkọ àyè típurchase.wà níwájú rẹ̀,409 plan_unavailable…).amountUsdgbọdọ̀ tó àpapọ̀purchase− owó tó wà nínú àkáǹtì báyìí (422 too_smalllóríamountUsd). Nígbà tí a bá fi ìfikún sí àkáǹtì, a ṣe àṣẹ rírà láti inú owó náà ní ìdúnàádúrà kan náà;purchase.statusdicompleted(pẹ̀lúorderId) tàbífailed(failureReason; owó náà dúró nínú àkáǹtì).
Ìfìyàtọ̀: API key nínú àpẹẹrẹ Authorization: Bearer API_KEY.
Àwọn àmì ohun
| Orúkọ | Nínú | Ìpò | Féyí | Àpèjúwe |
|---|---|---|---|---|
Idempotency-Key | header | string | Rárá | Kọ́kọ́rọ́ aláìlẹ́gbẹ́ (bí UUID) láti tún POST gbìyànjú láìséwu. A pa á mọ́ fún 24 h. — ó pọ̀ jù lọ: àmì ìkọ̀wé 128 |
Àpèjú ara ìròyìn
| Àpáá | Ìpò | Féyí | Àpèjúwe |
|---|---|---|---|
amountUsd | string (USD, 2 decimals) | Bẹ́ẹ̀ ni | USD láti fikún: ≥ 25.00, ≤ 10,000.00 gẹ́gẹ́ bí àiyípadà. |
coin | string | Bẹ́ẹ̀ ni | — |
network | string | Bẹ́ẹ̀ ni | — |
purchase | object | Rárá | Ètò láti ra pẹ̀lú owó àkáǹtì lẹ́yìn tí a bá fi ìfikún sí i (ara kan náà bí POST /v1/orders). |
{
"amountUsd": "50.00",
"coin": "USDT",
"network": "tron"
}{
"amountUsd": "25.00",
"coin": "BTC",
"network": "bitcoin",
"purchase": {
"planId": "res-10",
"quantity": 1
}
}Ìdáhùn 201 Created
{
"id": "top_7d2kq9x1",
"status": "verifying",
"final": false,
"amountUsd": "25.00",
"coin": "USDT",
"network": "tron",
"address": "DEPOSIT_ADDRESS",
"amountCrypto": "25.000137",
"rate": "1.00",
"paymentUri": "PAYMENT_URI",
"expiresAt": "2026-10-05T14:33:11Z",
"txidDeadline": "2026-10-08T14:33:11Z",
"confirmationsRequired": 20,
"confirmations": 7,
"txid": "9d2e5c0b1f7a4e3d8c6b2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f41c7",
"txidSubmittedAt": "2026-10-05T14:09:42Z",
"amountReceivedCrypto": "25.000137",
"explorerUrl": "https://tronscan.org/#/transaction/9d2e5c0b1f7a4e3d8c6b2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f41c7",
"creditedUsd": null,
"creditedAt": null,
"rejection": null,
"purchase": {
"planId": "res-10",
"planName": "Team",
"quantity": 1,
"options": {},
"promoCode": null,
"total": "5.94",
"status": "pending",
"orderId": null,
"failureReason": null
},
"createdAt": "2026-10-05T14:03:11Z"
}Àpẹẹrẹ kòdì
curl -s -X POST "https://africaproxies.com/api/v1/topups" \
-H "Authorization: Bearer $API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"amountUsd":"50.00","coin":"USDT","network":"tron"}'import os, uuid
import requests
API = "https://africaproxies.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}", "Idempotency-Key": str(uuid.uuid4())}
r = requests.post(f"{API}/topups", headers=HEADERS, json={"amountUsd": "50.00", "coin": "USDT", "network": "tron"}, timeout=30)
r.raise_for_status()
print(r.json())// Node.js 18+ (built-in fetch), ES module
import { randomUUID } from 'node:crypto';
const API = 'https://africaproxies.com/api/v1';
const res = await fetch(`${API}/topups`, {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.API_KEY}`, 'Idempotency-Key': randomUUID(), 'Content-Type': 'application/json' },
body: JSON.stringify({ amountUsd: '50.00', coin: 'USDT', network: 'tron' }),
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());Jẹ́rìí pé o ti fi owó ránṣẹ́ (TXID jẹ́ àṣàyàn)
POST/v1/topups/{topUpId}/txid
Jẹ́rìí pé o ti fi owó ránṣẹ́ ní kété tí ó bá jáde kúrò nínú wallet tàbí ibi pàṣípààrọ̀ rẹ: èyí ni ìṣe API fún bọ́tìnì “Mo ti fi owó náà ránṣẹ́”. ID ìdúnàádúrà (TXID) jẹ́ àṣàyàn: fi ara òfo ({}) ránṣẹ́, tàbí fi txid kún un bí o bá ní i. A ń so owó rẹ pọ̀ mọ́ ìfikún àkáǹtì yìí nípasẹ̀ iye rẹ̀ gan-an (amountCrypto) lórí nẹ́tíwọ́ọ̀kì àti àdírẹ́sì ìfikún náà; nítorí náà fi iye náà ránṣẹ́ gẹ́gẹ́ bí ó ṣe rí.
A gba a nígbà tí ìfikún bá jẹ́ awaiting_payment, expired tàbí rejected, àti ṣáájú txidDeadline (expiresAt + 72 h): jíjẹ́rìí lẹ́yìn àkókò kò jẹ́ kí ìsanwó sọnù. Bí o bá fi txid sí i, a ṣàyẹ̀wò rẹ̀ pẹ̀lú ìlànà nẹ́tíwọ́ọ̀kì (422 lórí txid), ìfikún mìíràn kò sì gbọdọ̀ ti lò ó (409 txid_already_used). Ìfikún tí a ti pa máa ń dá 409 topup_closed padà. Lẹ́yìn náà ìfikún di verifying nígbà tí a ń ṣàyẹ̀wò ìsanwó lórí blockchain, ó sì parí sí credited lẹ́yìn ìmúdájú nẹ́tíwọ́ọ̀kì, tàbí rejected (pẹ̀lú rejection).
Ìfìyàtọ̀: API key nínú àpẹẹrẹ Authorization: Bearer API_KEY.
Àwọn àmì ohun
| Orúkọ | Nínú | Ìpò | Féyí | Àpèjúwe |
|---|---|---|---|---|
topUpId | path | string | Bẹ́ẹ̀ ni | — |
Àpèjú ara ìròyìn
| Àpáá | Ìpò | Féyí | Àpèjúwe |
|---|---|---|---|
txid | string | Rárá | Àṣàyàn. Hash ìdúnàádúrà: 64 hex (bitcoin, litecoin, tron), 0x + 64 hex (ethereum), ìbuwọ́lu base58 (solana). Bí ó bá ṣófo tàbí kò sí: a bá ìsanwó mu pẹ̀lú iye rẹ̀ gan-an. — ó pọ̀ jù lọ: àmì ìkọ̀wé 128 |
{}{
"txid": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
}Ìdáhùn 200 OK
{
"id": "top_7d2kq9x1",
"status": "verifying",
"final": false,
"amountUsd": "25.00",
"coin": "USDT",
"network": "tron",
"address": "DEPOSIT_ADDRESS",
"amountCrypto": "25.000137",
"rate": "1.00",
"paymentUri": "PAYMENT_URI",
"expiresAt": "2026-10-05T14:33:11Z",
"txidDeadline": "2026-10-08T14:33:11Z",
"confirmationsRequired": 20,
"confirmations": 7,
"txid": "9d2e5c0b1f7a4e3d8c6b2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f41c7",
"txidSubmittedAt": "2026-10-05T14:09:42Z",
"amountReceivedCrypto": "25.000137",
"explorerUrl": "https://tronscan.org/#/transaction/9d2e5c0b1f7a4e3d8c6b2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f41c7",
"creditedUsd": null,
"creditedAt": null,
"rejection": null,
"purchase": {
"planId": "res-10",
"planName": "Team",
"quantity": 1,
"options": {},
"promoCode": null,
"total": "5.94",
"status": "pending",
"orderId": null,
"failureReason": null
},
"createdAt": "2026-10-05T14:03:11Z"
}Àpẹẹrẹ kòdì
curl -s -X POST "https://africaproxies.com/api/v1/topups/top_7d2kq9x1/txid" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import os
import requests
API = "https://africaproxies.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}"}
r = requests.post(f"{API}/topups/top_7d2kq9x1/txid", headers=HEADERS, json={}, timeout=30)
r.raise_for_status()
print(r.json())// Node.js 18+ (built-in fetch), ES module
const API = 'https://africaproxies.com/api/v1';
const res = await fetch(`${API}/topups/top_7d2kq9x1/txid`, {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({}),
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());Gba ìfikún owó (máa pè é láti mọ ipò rẹ̀ lọ́wọ́lọ́wọ́)
GET/v1/topups/{topUpId}
Máa pe ọ̀nà yìí láti tẹ̀lé ìfikún owó: gbogbo 10 s nígbà status = verifying, gbogbo 30 s nígbà tí ó ń dúró de ìsanwó, kí o sì dáwọ́ dúró nígbà final = true. Ìfikún di expired bí o kò bá jẹ́rìí fífi owó ránṣẹ́ ṣáájú expiresAt; o ṣì lè jẹ́rìí títí dé txidDeadline.
Ìfìyàtọ̀: API key nínú àpẹẹrẹ Authorization: Bearer API_KEY.
Àwọn àmì ohun
| Orúkọ | Nínú | Ìpò | Féyí | Àpèjúwe |
|---|---|---|---|---|
topUpId | path | string | Bẹ́ẹ̀ ni | — |
Ìdáhùn 200 OK
{
"id": "top_7d2kq9x1",
"status": "verifying",
"final": false,
"amountUsd": "25.00",
"coin": "USDT",
"network": "tron",
"address": "DEPOSIT_ADDRESS",
"amountCrypto": "25.000137",
"rate": "1.00",
"paymentUri": "PAYMENT_URI",
"expiresAt": "2026-10-05T14:33:11Z",
"txidDeadline": "2026-10-08T14:33:11Z",
"confirmationsRequired": 20,
"confirmations": 7,
"txid": "9d2e5c0b1f7a4e3d8c6b2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f41c7",
"txidSubmittedAt": "2026-10-05T14:09:42Z",
"amountReceivedCrypto": "25.000137",
"explorerUrl": "https://tronscan.org/#/transaction/9d2e5c0b1f7a4e3d8c6b2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f41c7",
"creditedUsd": null,
"creditedAt": null,
"rejection": null,
"purchase": {
"planId": "res-10",
"planName": "Team",
"quantity": 1,
"options": {},
"promoCode": null,
"total": "5.94",
"status": "pending",
"orderId": null,
"failureReason": null
},
"createdAt": "2026-10-05T14:03:11Z"
}Àpẹẹrẹ kòdì
curl -s "https://africaproxies.com/api/v1/topups/top_7d2kq9x1" \
-H "Authorization: Bearer $API_KEY"import os
import requests
API = "https://africaproxies.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}"}
r = requests.get(f"{API}/topups/top_7d2kq9x1", headers=HEADERS, timeout=30)
r.raise_for_status()
print(r.json())// Node.js 18+ (built-in fetch), ES module
const API = 'https://africaproxies.com/api/v1';
const res = await fetch(`${API}/topups/top_7d2kq9x1`, {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());Ṣàtòjọ fífi krípító kún àkáǹtì
GET/v1/topups
Ìfìyàtọ̀: API key nínú àpẹẹrẹ Authorization: Bearer API_KEY.
Àwọn àmì ohun
| Orúkọ | Nínú | Ìpò | Féyí | Àpèjúwe |
|---|---|---|---|---|
page | query | integer | Rárá | ≥ 1, àiyípadà 1 |
perPage | query | integer | Rárá | 1–100, àiyípadà 20 |
status | query | awaiting_payment · verifying · credited · rejected · expired | Rárá | final = a ti fi owó sí àkáǹtì, tàbí ó ti kọjá àkókò / a kọ̀ ọ́ lẹ́yìn txidDeadline. |
Ìdáhùn 200 OK
{
"data": [
{
"id": "top_7d2kq9x1",
"status": "verifying",
"final": false,
"amountUsd": "25.00",
"coin": "USDT",
"network": "tron",
"address": "DEPOSIT_ADDRESS",
"amountCrypto": "25.000137",
"rate": "1.00",
"paymentUri": "PAYMENT_URI",
"expiresAt": "2026-10-05T14:33:11Z",
"txidDeadline": "2026-10-08T14:33:11Z",
"confirmationsRequired": 20,
"confirmations": 7,
"txid": "9d2e5c0b1f7a4e3d8c6b2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f41c7",
"txidSubmittedAt": "2026-10-05T14:09:42Z",
"amountReceivedCrypto": "25.000137",
"explorerUrl": "https://tronscan.org/#/transaction/9d2e5c0b1f7a4e3d8c6b2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f41c7",
"creditedUsd": null,
"creditedAt": null,
"rejection": null,
"purchase": {
"planId": "res-10",
"planName": "Team",
"quantity": 1,
"options": {},
"promoCode": null,
"total": "5.94",
"status": "pending",
"orderId": null,
"failureReason": null
},
"createdAt": "2026-10-05T14:03:11Z"
}
],
"pagination": {
"page": 1,
"perPage": 20,
"total": 1,
"totalPages": 1
}
}Àpẹẹrẹ kòdì
curl -s "https://africaproxies.com/api/v1/topups" \
-H "Authorization: Bearer $API_KEY"import os
import requests
API = "https://africaproxies.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}"}
r = requests.get(f"{API}/topups", headers=HEADERS, timeout=30)
r.raise_for_status()
print(r.json())// Node.js 18+ (built-in fetch), ES module
const API = 'https://africaproxies.com/api/v1';
const res = await fetch(`${API}/topups`, {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());