The easypoint9ja Data API is a RESTful interface that enables you to seamlessly integrate a range of services from the easypoint9ja platform into your web or mobile application.
Use this endpoint to send Data to a Nigerian mobile number.
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | R | Your API key. |
| request_id | string | R | Request Id (for custom tracking). |
| serviceID | string | R | Service ID as specified by Easypoint9ja. In this case, it is mtn-data. |
| variation_code | string | R | The code of the product. |
| phone | Number | R | The phone number of the customer or recipient of this service. |
| amount | Number | O | Amount is determine from the variation code provided. |
Live: https://easypoint9ja.com/api/data/
Sandbox: https://sandbox.easypoint9ja.com/api/data/
$url = "https://easypoint9ja.com/api/data/";
$data = [
"api_key" => "YOUR_API_KEY",
"request_id" => 63634570027309,
"serviceID" => "mtn-data",
"variation_code" => "mtn-10mb-100",
"phone" => 09011111111
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);