Skip to main content
POST
Buy Data

Authorizations

Authorization
string
header
required

Send your API key as Token <your_api_key>.

Use your live key for real transactions, or your sandbox key (sk_test_…) to test — sandbox calls return a realistic simulated result and never touch your wallet. Add "sandbox_status": "fail" to any sandbox request to simulate a failure.

Body

application/json
network
integer
required

1 MTN, 2 Airtel, 3 Glo, 4 9mobile.

Example:

1

phone
string
required
Example:

"2347013397088"

data_plan
integer
required

Plan ID from GET /api/data-plan.

Example:

19

request-id
string
required
Example:

"Data_12345678900"

bypass
boolean
default:false

Response

200 - application/json

Result