Buy Data
The Buy Data endpoint allows you to purchase data for mobile numbers effortlessly. By leveraging this endpoint, you can provide your users with seamless connectivity and enable them to enjoy uninterrupted access to mobile data services.
Purchase Data plan for MTN, Glo, Airtel and 9mobile
POST
https://app.discountdata.ng/public/api/data
Headers
Authorization*
Bearer
Your API Bearer Token
Request Body
network_id*
String
The Data Plan network ID
plan_id*
String
The Data Plan ID
phone_number*
String
The Recipient Phone Number
ported_number
Boolean
Bypass Number Validator
This example demonstrates a successful purchase of a 500MB data plan for the mobile number 0708xxxxxxx, which is valid for 30 days. The response includes the purchase and expiry dates for reference.
Please note that the above examples are for illustrative purposes only. Make sure to refer to the detailed documentation and specific data plan requirements to construct the correct requests for purchasing data.
Now that you have an overview of the Buy Data endpoint, you can start integrating it into your application. Please refer to the complete documentation for more details on request and response structures, error handling, and best practices.
If you encounter any difficulties or have questions specific to the Buy Data endpoint, feel free to reach out to our support team for assistance.
Let's proceed to explore the other endpoints provided by the DiscountData API!
Last updated