Complete API documentation for integrating MTN data gifting, data sharing, transfer, eligibility check, and transaction status services.
https://yourdomain.com/api/mtn.php
POST
Content-Type: application/json
All responses are returned in JSON format.
{
"success": true,
"data": {}
}
{
"success": false,
"message": "Error description"
}
Transfer a data bundle from one MTN subscriber to another.
{
"action": "gift",
"sender": "2348012345678",
"receiver": "2348098765432",
"bundle_id": "100MB"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Must be gift |
| sender | string | Yes | Sponsor MSISDN |
| receiver | string | Yes | Beneficiary MSISDN |
| bundle_id | string | Yes | MTN Bundle ID |
{
"success": true,
"data": {
"status": "SUCCESS",
"transactionId": "TX123456789"
}
}
Add a consumer to a provider's data sharing group.
{
"action": "datashare",
"provider": "2348012345678",
"consumer": "2348098765432"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Must be datashare |
| provider | string | Yes | Provider MSISDN |
| consumer | string | Yes | Consumer MSISDN |
Activate a provider for data sharing.
{
"action": "activate",
"provider": "2348012345678"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Must be activate |
| provider | string | Yes | Provider MSISDN |
Verify whether a subscriber is eligible for data sharing.
{
"action": "eligibility",
"provider": "2348012345678"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Must be eligibility |
| provider | string | Yes | Provider MSISDN |
Retrieve customer sharing information and summary.
{
"action": "summary",
"customer_id": "2348012345678"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Must be summary |
| customer_id | string | Yes | Customer Identifier |
Transfer data allocation between MTN customers.
{
"action": "transfer",
"sender": "2348012345678",
"receiver": "2348098765432",
"amount": "500"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Must be transfer |
| sender | string | Yes | Sender MSISDN |
| receiver | string | Yes | Receiver MSISDN |
| amount | string | Yes | Transfer Amount |
Retrieve the status of a previous transaction.
{
"action": "status",
"transaction_id": "TX123456789"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Must be status |
| transaction_id | string | Yes | Transaction Reference |
| Code | Meaning |
|---|---|
| 200 | Request Successful |
| 400 | Invalid Request |
| 401 | Unauthorized |
| 404 | Resource Not Found |
| 500 | Internal Server Error |
2348012345678.data object.Secure token-based authentication for MTN APIs with automatic token management and renewal.
View transaction history, status updates, and reconciliation reports from a central dashboard.
Receive instant notifications whenever MTN sends transaction updates.
Manage providers and consumers within MTN Data Share groups.
Transfer MTN data bundles directly to beneficiaries through API automation.
Transfer data allocations between customers with full transaction tracking.
A complete MTN API gateway solution for developers, telecom service providers, VTU operators, aggregators, and enterprise businesses.
MTN Services
API Driven
Transaction Monitoring
Enterprise Framework