{"id":565,"date":"2025-10-24T20:31:52","date_gmt":"2025-10-24T19:31:52","guid":{"rendered":"https:\/\/inlomax.com\/blog\/?p=565"},"modified":"2025-10-24T20:31:55","modified_gmt":"2025-10-24T19:31:55","slug":"how-to-integrate-inlomax-data-api","status":"publish","type":"post","link":"https:\/\/inlomax.com\/blog\/how-to-integrate-inlomax-data-api\/","title":{"rendered":"How to Integrate Inlomax Data API to Automate Data Purchase (Full Guide for Developers)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"how-to-integrate-inlomax-data-api-to-automate-data-purchase-full-guide-for-developers\"><strong>How to Integrate Inlomax Data API to Automate Data Purchase (Full Guide for Developers)<\/strong><\/h2>\n\n\n\n<p>If you\u2019re building an app, website, or platform that allows users to <strong>buy data bundles automatically<\/strong>, the <strong>Inlomax API<\/strong> gives you a powerful, fast, and reliable way to make that possible.<\/p>\n\n\n\n<p>In this post, we\u2019ll show you how to use the <strong>Inlomax Data API endpoint<\/strong> to buy data directly from your code \u2014 with sample PHP integration and a real sample response.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#how-to-integrate-inlomax-data-api-to-automate-data-purchase-full-guide-for-developers\">How to Integrate Inlomax Data API to Automate Data Purchase (Full Guide for Developers)<\/a><ul><li><a href=\"#what-is-inlomax-api\">What Is Inlomax API?<\/a><\/li><li><a href=\"#introduction-to-the-data-endpoint\">Introduction to the Data Endpoint<\/a><\/li><li><a href=\"#api-endpoint-buy-data\">API Endpoint: Buy Data<\/a><\/li><li><a href=\"#php-integration-example\">PHP Integration Example<\/a><\/li><li><a href=\"#sample-response\">Sample Response<\/a><\/li><li><a href=\"#why-developers-love-inlomax-api\">Why Developers Love Inlomax API<\/a><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-is-inlomax-api\"><strong>What Is Inlomax API?<\/strong><\/h3>\n\n\n\n<p>The <strong>Inlomax API<\/strong> is a simple and secure way for developers, fintech startups, and VTU resellers to connect their apps or websites to the Inlomax system.<br>It allows you to perform automated actions like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Buying <strong>data<\/strong> and <strong>airtime<\/strong><\/li>\n\n\n\n<li>Paying <strong>TV cable<\/strong> and <strong>electricity bills<\/strong><\/li>\n\n\n\n<li>Checking <strong>account balances<\/strong> and <strong>transaction statuses<\/strong><\/li>\n<\/ul>\n\n\n\n<p>In this article, we\u2019ll focus on the <strong>Data API endpoint<\/strong> \u2014 how to use it to buy data programmatically.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"introduction-to-the-data-endpoint\"><strong>Introduction to the Data Endpoint<\/strong><\/h3>\n\n\n\n<p>The <strong>Data Endpoint<\/strong> lets you send a POST request with a few parameters (your API key, service ID, and phone number) to purchase a data bundle instantly.<\/p>\n\n\n\n<p>This is useful if you run:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <strong>data reselling website<\/strong><\/li>\n\n\n\n<li>A <strong>mobile app<\/strong> for top-ups<\/li>\n\n\n\n<li>A <strong>billing system<\/strong> or <strong>automation platform<\/strong><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"api-endpoint-buy-data\"><strong>API Endpoint: Buy Data<\/strong><\/h3>\n\n\n\n<p><strong>Endpoint:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>POST https:\/\/inlomax.com\/api\/data\n<\/code><\/pre>\n\n\n\n<p><strong>Headers:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Authorization: Token YOUR_API_KEY\nContent-Type: application\/json\n<\/code><\/pre>\n\n\n\n<p><strong>Request Body Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"serviceID\" : \"100\",\n  \"mobileNumber\" : \"0903837261\"\n}\n<\/code><\/pre>\n\n\n\n<p>Replace:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>YOUR_API_KEY<\/code> with your actual API key (found in your Inlomax Developer Dashboard)<\/li>\n\n\n\n<li><code>serviceID<\/code> with the ID of the data plan you want to buy<\/li>\n\n\n\n<li><code>mobileNumber<\/code> with the recipient\u2019s phone number<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"php-integration-example\"><strong>PHP Integration Example<\/strong><\/h3>\n\n\n\n<p>Here\u2019s how to integrate it using <strong>PHP and cURL<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n  CURLOPT_URL =&gt; 'https:\/\/inlomax.com\/api\/data',\n  CURLOPT_RETURNTRANSFER =&gt; true,\n  CURLOPT_ENCODING =&gt; '',\n  CURLOPT_MAXREDIRS =&gt; 10,\n  CURLOPT_TIMEOUT =&gt; 0,\n  CURLOPT_FOLLOWLOCATION =&gt; true,\n  CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n  CURLOPT_CUSTOMREQUEST =&gt; 'POST',\n  CURLOPT_POSTFIELDS =&gt;'{\n    \"serviceID\": \"100\",\n    \"mobileNumber\": \"0903837261\"\n  }',\n  CURLOPT_HTTPHEADER =&gt; array(\n    'Authorization: Token YOUR_API_KEY',\n    'Content-Type: application\/json'\n  ),\n));\n\n$response = curl_exec($curl);\ncurl_close($curl);\necho $response;\n?&gt;\n<\/code><\/pre>\n\n\n\n<p>This PHP code connects to the Inlomax API and sends a <strong>POST<\/strong> request to buy a data plan instantly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"sample-response\"><strong>Sample Response<\/strong><\/h3>\n\n\n\n<p>When the API request is successful, you\u2019ll get a JSON response like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"status\": \"success\",\n  \"message\": \"Dear Customer, You have successfully gifted 0903837261 with 1.0GB of Data. Thank you.\",\n  \"data\": {\n      \"type\": \"data\",\n      \"reference\": \"INL|NQJK56QVZVHHX34RJ5XTMDXLG\",\n      \"amount\": 1000,\n      \"dataPlan\": \"5GB\",\n      \"dataType\": \"SME\",\n      \"network\": \"MTN\",\n      \"status\": \"success\"\n  }\n}\n<\/code><\/pre>\n\n\n\n<p><strong>Meaning:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>status<\/code> \u2014 tells you if the request was successful<\/li>\n\n\n\n<li><code>message<\/code> \u2014 confirmation message<\/li>\n\n\n\n<li><code>reference<\/code> \u2014 unique transaction ID for tracking<\/li>\n\n\n\n<li><code>amount<\/code>, <code>dataPlan<\/code>, and <code>network<\/code> \u2014 transaction details<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"why-developers-love-inlomax-api\"><strong>Why Developers Love Inlomax API<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Fast delivery<\/strong> \u2014 instant response and fulfillment<\/li>\n\n\n\n<li><strong>Secure<\/strong> \u2014 token-based authentication<\/li>\n\n\n\n<li><strong>Easy integration<\/strong> \u2014 developer-friendly endpoints<\/li>\n\n\n\n<li><strong>Multiple services<\/strong> \u2014 data, airtime, bills, TV, and more<\/li>\n\n\n\n<li><strong>Detailed documentation<\/strong> \u2014 clear request and response structure<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>With the Inlomax API, you can <strong>automate data purchases<\/strong>, reduce manual work, and offer a smooth experience to your app or website users.<\/p>\n\n\n\n<p>If you\u2019re a developer, this is your chance to <strong>turn your platform into a VTU-powered system<\/strong> \u2014 capable of selling data and other digital services automatically.<\/p>\n\n\n\n<p>\ud83d\udc49 <strong>Get your API key now<\/strong> at <a href=\"https:\/\/inlomax.com\/docs\"><strong>Inlomax Developer Portal<\/strong><\/a> and start integrating today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Integrate Inlomax Data API to Automate Data Purchase (Full Guide for Developers) If you\u2019re building an app, website, or platform that allows users to buy data bundles automatically, the Inlomax API gives you a powerful, fast, and reliable way to make that possible. In this post, we\u2019ll show you how to use the&hellip;&nbsp;<\/p>\n","protected":false},"author":4,"featured_media":586,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"no","rop_publish_now_accounts":{"facebook_2184036332019361_417210888852491":""},"rop_publish_now_history":[{"account":"facebook_2184036332019361_417210888852491","service":"facebook","timestamp":1761334405,"status":"success"}],"rop_publish_now_status":"done","neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-565","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vtu"],"_links":{"self":[{"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/posts\/565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/comments?post=565"}],"version-history":[{"count":4,"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":585,"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions\/585"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/media\/586"}],"wp:attachment":[{"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/media?parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/categories?post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inlomax.com\/blog\/wp-json\/wp\/v2\/tags?post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}