Integrate MinatPay's services into your own platform with our simple, powerful RESTful API.
Welcome to the MinatPay API. You can use our API to access MinatPay endpoints, allowing you to automate data purchases and integrate our services into your application.
With the MinatPay API you can:
To use the MinatPay API, you need your API credentials. Here's how to get them:
Include your API key in the header of every request:
All API requests must be made to the following base URL over HTTPS:
Requests made over plain HTTP will be rejected. All responses are returned in JSON format.
Retrieve your account details including wallet balance, username, and API key.
Headers
Response
Response Fields
| Field | Type | Description |
|---|---|---|
| balance | string | User wallet balance in Naira |
| username | string | Your MinatPay account username |
| apikey | string | Your API key for authentication |
Purchase airtime for all supported Nigerian networks instantly.
Headers
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| amount | number | Amount to recharge (100 – 5,000) |
| phone | string | 11-digit recipient phone number |
| airtime_type | string | Must be vtu |
| network_id | number | 1 = MTN, 2 = GLO, 3 = Airtel, 4 = 9mobile |
Request Body
Success Response
Failed Response
Retrieve all available data plans, or filter by a specific network.
Optional Query Parameters
| Parameter | Values | Description |
|---|---|---|
| network | mtn, glo, airtel, 9mobile | Filter plans by network (optional) |
Example Requests
Response
Purchase a data bundle for any supported network. Use the public_id from the Get Data Plans endpoint as your plan_id.
Headers
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| plan_id | string | Plan's public_id from /getplans |
| phone | string | 11-digit recipient phone number |
| network | string | Network: mtn, glo, airtel, 9mobile |
| data_type | string | Plan type e.g. SME2, Gifting, etc. |
| trx_id | string | Your unique transaction reference |
Request Body
Success Response
MinatPay is continuously expanding its API. The following endpoints are in development:
Want early access? Contact our developer team →