{"id":2774,"date":"2022-07-12T15:44:16","date_gmt":"2022-07-12T15:44:16","guid":{"rendered":"https:\/\/www.reloadly.com\/blog\/?p=2774"},"modified":"2022-08-22T10:34:15","modified_gmt":"2022-08-22T10:34:15","slug":"how-to-make-a-data-top-up-to-an-international-phone-number","status":"publish","type":"post","link":"https:\/\/blog.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/","title":{"rendered":"How to make a data top-up to an international phone number"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_46 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"ez-toc-toggle-icon-1\"><label for=\"item-69d2ce9be9d30\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;direction:ltr;\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input  type=\"checkbox\" id=\"item-69d2ce9be9d30\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-visibility-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#Getting_the_operator_details_of_the_international_mobile_number\" title=\"Getting the operator details of the international mobile number\">Getting the operator details of the international mobile number<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#Making_a_data_top-up_to_the_international_mobile_number\" title=\"Making a data top-up to the international mobile number\">Making a data top-up to the international mobile number<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#Resources\" title=\"Resources\">Resources<\/a><\/li><\/ul><\/nav><\/div>\n\n<div style=\"height:41px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Reloadly\u2019s Airtime API isn\u2019t restricted to airtime top-ups; data bundles can also be sent as well. In this guide, you will learn how to use Reloadly\u2019s API to send a data bundle to an international mobile number.<\/p>\n\n\n\n<p>This guide can be broken down into the following steps<\/p>\n\n\n\n<ul><li>Getting your access token<\/li><li>Getting the operator details of the international mobile number<\/li><li>Checking if the mobile number\u2019s operator can make data top-ups<\/li><li>Making a data top-up to the international mobile number<\/li><\/ul>\n\n\n\n<p><br><em>You can get your access token by following the steps in this <\/em><a href=\"https:\/\/developers.reloadly.com\/airtime\/quickstart\" target=\"_blank\" rel=\"noreferrer noopener\"><em>quickstart<\/em><\/a><em>.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Getting_the_operator_details_of_the_international_mobile_number\"><\/span>Getting the operator details of the international mobile number<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Suppose you have an international mobile number;&nbsp;<code> +233 54 090 3921<\/code>. You can make a quick Google search with the international dialing code (+233) and deduce that the number is registered in Ghana and that\u2019s it. You have no idea what the number\u2019s operator is. To find this out, you can make a request to Reloadly\u2019s auto-detect endpoint using the number and Ghana\u2019s two letter ISO code. The cURL code sample below shows how this can be done<\/p>\n\n\n\n<div style=\"height:41px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -i -X GET \\\n  'https:\/\/topups-sandbox.reloadly.com\/operators\/auto-detect\/phone\/233540903921\/countries\/GH'\\\n  -H 'Authorization: Bearer &lt;YOUR_TOKEN_HERE&gt;'\n<\/code><\/pre>\n\n\n\n<div style=\"height:39px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>If this request is carried out successfully, you should receive a response similar to the data below<\/p>\n\n\n\n<div style=\"height:41px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"id\": 150,\n  \"operatorId\": 150,\n  \"name\": \"MTN Ghana\",\n  \"bundle\": false,\n  \"data\": false,\n  \"pin\": false,\n  \"supportsLocalAmounts\": true,\n  \"supportsGeographicalRechargePlans\": false,\n  \"denominationType\": \"RANGE\",\n  \"senderCurrencyCode\": \"NGN\",\n  \"senderCurrencySymbol\": \"?\",\n  \"destinationCurrencyCode\": \"GHS\",\n  \"destinationCurrencySymbol\": \"GH?\",\n  \"commission\": 1,\n  \"internationalDiscount\": 1,\n  \"localDiscount\": 0,\n  \"mostPopularAmount\": 6240,\n  \"mostPopularLocalAmount\": null,\n  \"minAmount\": 70.72,\n  \"maxAmount\": 33281,\n  \"localMinAmount\": 1,\n  \"localMaxAmount\": 500,\n  \"country\": {\n    \"isoName\": \"GH\",\n    \"name\": \"Ghana\"\n  },\n  \"fx\": {\n    \"rate\": 0.012,\n    \"currencyCode\": \"GHS\"\n  },\n  \"logoUrls\": &#091;\n    \"https:\/\/s3.amazonaws.com\/rld-operator\/47fdee6a-c4a1-41c0-963e-843cae07b0c9-size-3.png\",\n    \"https:\/\/s3.amazonaws.com\/rld-operator\/47fdee6a-c4a1-41c0-963e-843cae07b0c9-size-1.png\",\n    \"https:\/\/s3.amazonaws.com\/rld-operator\/47fdee6a-c4a1-41c0-963e-843cae07b0c9-size-2.png\"\n  ],\n  \"fixedAmounts\": &#091;],\n  \"fixedAmountsDescriptions\": {},\n  \"localFixedAmounts\": &#091;],\n  \"localFixedAmountsDescriptions\": {},\n  \"suggestedAmounts\": &#091;\n    416,\n    2080,\n    4160,\n    6240,\n    8320,\n    10400,\n    12480,\n    14560,\n    16640,\n    18720,\n    20801,\n    22881,\n    24961,\n    27041,\n    29121,\n    31201,\n    33281\n  ],\n  \"suggestedAmountsMap\": {},\n  \"geographicalRechargePlans\": &#091;],\n  \"promotions\": &#091;],\n  \"status\": \"ACTIVE\"\n}\n<\/code><\/pre>\n\n\n\n<div style=\"height:41px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>With the response received in the last section, it\u2019s clear that the mobile number\u2019s operator is MTN Ghana.&nbsp;<\/p>\n\n\n\n<p>Reloadly has a different operator ID for making data top-ups to a mobile number. For instance, the operator ID you would use to purchase airtime is different from the operator ID would use in purchasing data &#8211; even if the operator is the same.&nbsp;<\/p>\n\n\n\n<p>Thus to check if MTN Ghana can make data top-ups, we will make a request to Reloadly\u2019s endpoint to view all the operators that can make data top-ups. For parameters, we\u2019ll use Ghana\u2019s two digit ISO code and a query parameter that specifies data top-ups. Below is a cURL code sample that shows how to do this<\/p>\n\n\n\n<div style=\"height:41px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -i -X GET \\\n  'https:\/\/topups-sandbox.reloadly.com\/operators\/countries\/GH?includeData=true' \\\n  -H 'Authorization: Bearer &lt;YOUR_TOKEN_HERE&gt;'\n<\/code><\/pre>\n\n\n\n<div style=\"height:43px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Once successful, the response to this request is similar to the data below<\/p>\n\n\n\n<div style=\"height:42px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;\n  {\n    \"id\": 1109,\n    \"operatorId\": 1109,\n    \"name\": \"Airtel-Tigo Ghana Data \",\n    \"bundle\": false,\n    \"data\": true,\n    \"pin\": false,\n    \"supportsLocalAmounts\": true,\n    \"supportsGeographicalRechargePlans\": false,\n    \"denominationType\": \"FIXED\",\n    \"senderCurrencyCode\": \"NGN\",\n    \"senderCurrencySymbol\": \"?\",\n    \"destinationCurrencyCode\": \"GHS\",\n    \"destinationCurrencySymbol\": \"GH?\",\n    \"commission\": 0,\n    \"internationalDiscount\": 0,\n    \"localDiscount\": 0,\n    \"mostPopularAmount\": 5200.25,\n    \"mostPopularLocalAmount\": 50,\n    \"minAmount\": null,\n    \"maxAmount\": null,\n    \"localMinAmount\": null,\n    \"localMaxAmount\": null,\n    \"country\": {\n      \"isoName\": \"GH\",\n      \"name\": \"Ghana\"\n    },\n    \"fx\": {\n      \"rate\": 0.0096,\n      \"currencyCode\": \"GHS\"\n    },\n    \"logoUrls\": &#091;\n      \"https:\/\/s3.amazonaws.com\/rld-portal-avatar-prd\/0c0d0d6c-2e48-499d-ab2e-87c6c7709f3e.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-portal-avatar-prd\/475e3687-5361-49c8-9143-9e91978eeeb4.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-portal-avatar-prd\/99b60abb-f35b-4bf4-8810-02bf9f8fc6c2.png\"\n    ],\n    \"fixedAmounts\": &#091;\n      312.02,\n      520.03,\n      532.51,\n      624.03,\n      1040.05,\n      1560.08,\n      2080.1,\n      5200.25\n    ],\n    \"fixedAmountsDescriptions\": {\n      \"312.02\": \"1GB Plan Mobile Data\",\n      \"520.03\": \"1.1GB Mobile Data\",\n      \"532.51\": \"625MB Mobile Data\",\n      \"624.03\": \"2GB Plan Mobile Data\\t\",\n      \"1040.05\": \"1.75GB Mobile Data\\t\",\n      \"1560.08\": \"5.5GB Plan Mobile Data\",\n      \"2080.10\": \"4.65GB Mobile Data\\t\",\n      \"5200.25\": \"11GB Mobile Data\"\n    },\n    \"localFixedAmounts\": &#091;\n      3,\n      5,\n      5.13,\n      6,\n      10,\n      15,\n      20,\n      50\n    ],\n    \"localFixedAmountsDescriptions\": {\n      \"3.00\": \"1GB Plan Mobile Data\",\n      \"5.00\": \"1.1GB Mobile Data\",\n      \"5.13\": \"625MB Mobile Data\",\n      \"6.00\": \"2GB Plan Mobile Data\\t\",\n      \"10.00\": \"1.75GB Mobile Data\\t\",\n      \"15.00\": \"5.5GB Plan Mobile Data\",\n      \"20.00\": \"4.65GB Mobile Data\\t\",\n      \"50.00\": \"11GB Mobile Data\"\n    },\n    \"suggestedAmounts\": &#091;],\n    \"suggestedAmountsMap\": {},\n    \"geographicalRechargePlans\": &#091;],\n    \"promotions\": &#091;],\n    \"status\": \"ACTIVE\"\n  },\n  {\n    \"id\": 642,\n    \"operatorId\": 642,\n    \"name\": \"Glo Ghana Data\",\n    \"bundle\": false,\n    \"data\": true,\n    \"pin\": false,\n    \"supportsLocalAmounts\": true,\n    \"supportsGeographicalRechargePlans\": false,\n    \"denominationType\": \"FIXED\",\n    \"senderCurrencyCode\": \"NGN\",\n    \"senderCurrencySymbol\": \"?\",\n    \"destinationCurrencyCode\": \"GHS\",\n    \"destinationCurrencySymbol\": \"GH?\",\n    \"commission\": 0,\n    \"internationalDiscount\": 0,\n    \"localDiscount\": 0,\n    \"mostPopularAmount\": 24961.2,\n    \"mostPopularLocalAmount\": 300,\n    \"minAmount\": null,\n    \"maxAmount\": null,\n    \"localMinAmount\": null,\n    \"localMaxAmount\": null,\n    \"country\": {\n      \"isoName\": \"GH\",\n      \"name\": \"Ghana\"\n    },\n    \"fx\": {\n      \"rate\": 0.012,\n      \"currencyCode\": \"GHS\"\n    },\n    \"logoUrls\": &#091;\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/607ef89f-9f39-47fe-abfd-4977aa8b60b3-size-1.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/607ef89f-9f39-47fe-abfd-4977aa8b60b3-size-3.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/607ef89f-9f39-47fe-abfd-4977aa8b60b3-size-2.png\"\n    ],\n    \"fixedAmounts\": &#091;\n      83.2,\n      166.41,\n      416.02,\n      832.04,\n      1664.08,\n      3328.16,\n      4160.2,\n      4992.24,\n      6656.32,\n      8320.4,\n      12480.6,\n      24961.2\n    ],\n    \"fixedAmountsDescriptions\": {\n      \"83.20\": \"300MB Plan, Validity 2days.\",\n      \"166.41\": \"600MB Plan, Validity 4days.\",\n      \"416.02\": \"1.5GB Plan, Validity 10days.\",\n      \"832.04\": \"4GB Plan, Validity 7days.\",\n      \"1664.08\": \"4.2GB Plan, Validity 30days.\",\n      \"3328.16\": \"10GB, Validity 30days.\",\n      \"4160.20\": \"15GB Plan, Validity 30days.\",\n      \"4992.24\": \"20GB, Validity 30days.\",\n      \"6656.32\": \"30GB Plan, Validity 60days.\",\n      \"8320.40\": \"60GB, Validity 90days.\",\n      \"12480.60\": \"100GB, Validity 90days.\",\n      \"24961.20\": \"UNLIMITED Data, Validity 30days.\"\n    },\n    \"localFixedAmounts\": &#091;\n      1,\n      2,\n      5,\n      10,\n      20,\n      40,\n      50,\n      60,\n      80,\n      100,\n      150,\n      300\n    ],\n    \"localFixedAmountsDescriptions\": {\n      \"1.00\": \"300MB Plan, Validity 2days.\",\n      \"2.00\": \"600MB Plan, Validity 4days.\",\n      \"5.00\": \"1.5GB Plan, Validity 10days.\",\n      \"10.00\": \"4GB Plan, Validity 7days.\",\n      \"20.00\": \"4.2GB Plan, Validity 30days.\",\n      \"40.00\": \"10GB, Validity 30days.\",\n      \"50.00\": \"15GB Plan, Validity 30days.\",\n      \"60.00\": \"20GB, Validity 30days.\",\n      \"80.00\": \"30GB Plan, Validity 60days.\",\n      \"100.00\": \"60GB, Validity 90days.\",\n      \"150.00\": \"100GB, Validity 90days.\",\n      \"300.00\": \"UNLIMITED Data, Validity 30days.\"\n    },\n    \"suggestedAmounts\": &#091;],\n    \"suggestedAmountsMap\": {},\n    \"geographicalRechargePlans\": &#091;],\n    \"promotions\": &#091;],\n    \"status\": \"ACTIVE\"\n  },\n  {\n    \"id\": 643,\n    \"operatorId\": 643,\n    \"name\": \"MTN Ghana Data\",\n    \"bundle\": false,\n    \"data\": true,\n    \"pin\": false,\n    \"supportsLocalAmounts\": true,\n    \"supportsGeographicalRechargePlans\": false,\n    \"denominationType\": \"FIXED\",\n    \"senderCurrencyCode\": \"NGN\",\n    \"senderCurrencySymbol\": \"?\",\n    \"destinationCurrencyCode\": \"GHS\",\n    \"destinationCurrencySymbol\": \"GH?\",\n    \"commission\": 0,\n    \"internationalDiscount\": 0,\n    \"localDiscount\": 0,\n    \"mostPopularAmount\": 4160.2,\n    \"mostPopularLocalAmount\": 50,\n    \"minAmount\": null,\n    \"maxAmount\": null,\n    \"localMinAmount\": null,\n    \"localMaxAmount\": null,\n    \"country\": {\n      \"isoName\": \"GH\",\n      \"name\": \"Ghana\"\n    },\n    \"fx\": {\n      \"rate\": 0.012,\n      \"currencyCode\": \"GHS\"\n    },\n    \"logoUrls\": &#091;\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/47fdee6a-c4a1-41c0-963e-843cae07b0c9-size-3.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/47fdee6a-c4a1-41c0-963e-843cae07b0c9-size-1.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/47fdee6a-c4a1-41c0-963e-843cae07b0c9-size-2.png\"\n    ],\n    \"fixedAmounts\": &#091;\n      41.6,\n      83.2,\n      249.61,\n      416.02,\n      832.04,\n      1664.08,\n      2496.12,\n      3328.16,\n      4160.2\n    ],\n    \"fixedAmountsDescriptions\": {\n      \"41.60\": \"24.05MB Mobile Data\",\n      \"83.20\": \"96.15MB Social Media Mobile Data\",\n      \"249.61\": \"471.70MB Mobile Data Bundle\",\n      \"416.02\": \"917.43MB Video Bundle Mobile Data\",\n      \"832.04\": \"1.79GB Video Mobile Data1\",\n      \"1664.08\": \"2000MB Monthly Video Mobile Data\\t\",\n      \"2496.12\": \"3500MB Monthly Video Mobile Data\\t\",\n      \"3328.16\": \"5000MB Monthly Video Mobile Data\\t\",\n      \"4160.20\": \"7000MB Monthly Video Mobile Data\\t\"\n    },\n    \"localFixedAmounts\": &#091;\n      0.5,\n      1,\n      3,\n      5,\n      10,\n      20,\n      30,\n      40,\n      50\n    ],\n    \"localFixedAmountsDescriptions\": {\n      \"0.50\": \"24.05MB Mobile Data\",\n      \"1.00\": \"96.15MB Social Media Mobile Data\",\n      \"3.00\": \"471.70MB Mobile Data Bundle\",\n      \"5.00\": \"917.43MB Video Bundle Mobile Data\",\n      \"10.00\": \"1.79GB Video Mobile Data1\",\n      \"20.00\": \"2000MB Monthly Video Mobile Data\\t\",\n      \"30.00\": \"3500MB Monthly Video Mobile Data\\t\",\n      \"40.00\": \"5000MB Monthly Video Mobile Data\\t\",\n      \"50.00\": \"7000MB Monthly Video Mobile Data\\t\"\n    },\n    \"suggestedAmounts\": &#091;],\n    \"suggestedAmountsMap\": {},\n    \"geographicalRechargePlans\": &#091;],\n    \"promotions\": &#091;],\n    \"status\": \"ACTIVE\"\n  },\n  {\n    \"id\": 771,\n    \"operatorId\": 771,\n    \"name\": \"Surfline Ghana Data\",\n    \"bundle\": false,\n    \"data\": true,\n    \"pin\": false,\n    \"supportsLocalAmounts\": true,\n    \"supportsGeographicalRechargePlans\": false,\n    \"denominationType\": \"FIXED\",\n    \"senderCurrencyCode\": \"NGN\",\n    \"senderCurrencySymbol\": \"?\",\n    \"destinationCurrencyCode\": \"GHS\",\n    \"destinationCurrencySymbol\": \"GH?\",\n    \"commission\": 0,\n    \"internationalDiscount\": 0,\n    \"localDiscount\": 0,\n    \"mostPopularAmount\": 49839.2,\n    \"mostPopularLocalAmount\": 799,\n    \"minAmount\": null,\n    \"maxAmount\": null,\n    \"localMinAmount\": null,\n    \"localMaxAmount\": null,\n    \"country\": {\n      \"isoName\": \"GH\",\n      \"name\": \"Ghana\"\n    },\n    \"fx\": {\n      \"rate\": 0.012,\n      \"currencyCode\": \"GHS\"\n    },\n    \"logoUrls\": &#091;\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/033167db-663e-4ca9-8934-183ac220fd95-size-3.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/033167db-663e-4ca9-8934-183ac220fd95-size-2.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/033167db-663e-4ca9-8934-183ac220fd95-size-1.png\"\n    ],\n    \"fixedAmounts\": &#091;\n      832.04,\n      1664.08,\n      2912.14,\n      3328.16,\n      5824.28,\n      8320.4,\n      9152.44,\n      15392.74,\n      21217.02,\n      27041.3,\n      29953.44,\n      33198.4,\n      34113.64,\n      49839.2,\n      66480\n    ],\n    \"fixedAmountsDescriptions\": {\n      \"832.04\": \"1.5GB 24Hrs\",\n      \"1664.08\": \"3GB 3days\",\n      \"2912.14\": \"4.5GB 7days\",\n      \"3328.16\": \"6GB 30days\",\n      \"5824.28\": \"8GB 30days\",\n      \"8320.40\": \"15GB 30days\",\n      \"9152.44\": \"Unlimited Night 30days\",\n      \"15392.74\": \"30GB 30days\",\n      \"21217.02\": \"45GB 30days\",\n      \"27041.30\": \"75GB 45days\",\n      \"29953.44\": \"Unlimited 30days\",\n      \"33198.40\": \"Standard Unlimited 30days\",\n      \"34113.64\": \"100GB 60days\",\n      \"49839.20\": \"Super Unlimited 30days\",\n      \"66480.00\": \"Ultra Unlimited 30days\"\n    },\n    \"localFixedAmounts\": &#091;\n      10,\n      20,\n      35,\n      40,\n      70,\n      100,\n      110,\n      185,\n      255,\n      325,\n      360,\n      399,\n      410,\n      599,\n      799\n    ],\n    \"localFixedAmountsDescriptions\": {\n      \"10.00\": \"1.5GB 24Hrs\",\n      \"20.00\": \"3GB 3days\",\n      \"35.00\": \"4.5GB 7days\",\n      \"40.00\": \"6GB 30days\",\n      \"70.00\": \"8GB 30days\",\n      \"100.00\": \"15GB 30days\",\n      \"110.00\": \"Unlimited Night 30days\",\n      \"185.00\": \"30GB 30days\",\n      \"255.00\": \"45GB 30days\",\n      \"325.00\": \"75GB 45days\",\n      \"360.00\": \"Unlimited 30days\",\n      \"399.00\": \"Standard Unlimited 30days\",\n      \"410.00\": \"100GB 60days\",\n      \"599.00\": \"Super Unlimited 30days\",\n      \"799.00\": \"Ultra Unlimited 30days\"\n    },\n    \"suggestedAmounts\": &#091;],\n    \"suggestedAmountsMap\": {},\n    \"geographicalRechargePlans\": &#091;],\n    \"promotions\": &#091;],\n    \"status\": \"ACTIVE\"\n  },\n  {\n    \"id\": 770,\n    \"operatorId\": 770,\n    \"name\": \"Vodafone Ghana Data\",\n    \"bundle\": false,\n    \"data\": true,\n    \"pin\": false,\n    \"supportsLocalAmounts\": true,\n    \"supportsGeographicalRechargePlans\": false,\n    \"denominationType\": \"FIXED\",\n    \"senderCurrencyCode\": \"NGN\",\n    \"senderCurrencySymbol\": \"?\",\n    \"destinationCurrencyCode\": \"GHS\",\n    \"destinationCurrencySymbol\": \"GH?\",\n    \"commission\": 0,\n    \"internationalDiscount\": 0,\n    \"localDiscount\": 0,\n    \"mostPopularAmount\": 4493.02,\n    \"mostPopularLocalAmount\": 54,\n    \"minAmount\": null,\n    \"maxAmount\": null,\n    \"localMinAmount\": null,\n    \"localMaxAmount\": null,\n    \"country\": {\n      \"isoName\": \"GH\",\n      \"name\": \"Ghana\"\n    },\n    \"fx\": {\n      \"rate\": 0.012,\n      \"currencyCode\": \"GHS\"\n    },\n    \"logoUrls\": &#091;\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/9d8ea314-790c-4ba8-8220-8277fc6ead3c-size-3.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/9d8ea314-790c-4ba8-8220-8277fc6ead3c-size-2.png\",\n      \"https:\/\/s3.amazonaws.com\/rld-operator\/9d8ea314-790c-4ba8-8220-8277fc6ead3c-size-1.png\"\n    ],\n    \"fixedAmounts\": &#091;\n      166.41,\n      894.44,\n      4493.02\n    ],\n    \"fixedAmountsDescriptions\": {\n      \"166.41\": \"Volume 122MB, BrowserDaily, Validity 3days.\",\n      \"894.44\": \"Volume 563MB, StarterMonthly, Validity 37days.\",\n      \"4493.02\": \"Volume 5767MB, StreamerWeekly, Validity 10days.\"\n    },\n    \"localFixedAmounts\": &#091;\n      2,\n      10.75,\n      54\n    ],\n    \"localFixedAmountsDescriptions\": {\n      \"2.00\": \"Volume 122MB, BrowserDaily, Validity 3days.\",\n      \"10.75\": \"Volume 563MB, StarterMonthly, Validity 37days.\",\n      \"54.00\": \"Volume 5767MB, StreamerWeekly, Validity 10days.\"\n    },\n    \"suggestedAmounts\": &#091;],\n    \"suggestedAmountsMap\": {},\n    \"geographicalRechargePlans\": &#091;],\n    \"promotions\": &#091;],\n    \"status\": \"ACTIVE\"\n  }\n]\n<\/code><\/pre>\n\n\n\n<div style=\"height:38px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>As can be seen, our response contains details of every operator in Ghana that can make data top-ups. Let\u2019s note some points:<\/p>\n\n\n\n<ul><li>&nbsp;MTN Ghana Data is in the list, with an operator ID of 643.&nbsp;<\/li><li>The amount most MTN Ghana Data customers recharged is 50 GHS, as can be seen in the <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">mostPopularLocalAmount<\/code> property.&nbsp;<\/li><li>A 50 GHS data top-up on MTN Ghana will provide 7000 MB video mobile data valid for a month as can be seen in the <code>localFixedAmountsDescriptions<\/code> object.<\/li><\/ul>\n\n\n\n<p>The <code>fixedAmounts<\/code> and the <code>localFixedAmounts<\/code> objects are directly proportional. This means that the first value in the <code>fixedAmounts<\/code> object is the FX equivalent of the first value in the <code>localFixedAmounts<\/code> object (in the tutorial\u2019s case, 41.6 NGN = 0.5 GHS)<\/p>\n\n\n\n<div style=\"height:46px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Making_a_data_top-up_to_the_international_mobile_number\"><\/span>Making a data top-up to the international mobile number<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Now that we have all the details of MTN Ghana\u2019s data operator, we can make a data top-up to the international mobile number. Let\u2019s make a top-up request using MTN Ghana Data\u2019s operator ID<\/p>\n\n\n\n<div style=\"height:42px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -i -X POST \\\n  https:\/\/topups-sandbox.reloadly.com\/topups \\\n  -H 'Authorization: Bearer &lt;YOUR_TOKEN_HERE&gt;' \\\n  -H 'Content-Type: application\/json' \\\n  -d '{\n    \"operatorId\": 643,\n    \"amount\": 4160,\n    \"useLocalAmount\": false,\n    \"customIdentifier\": \"mtn-ghana-data-topup\",\n    \"recipientEmail\": \"anyone@email.com\",\n    \"recipientPhone\": {\n      \"countryCode\": \"GH\",\n      \"number\": \"233540903921\"\n    },\n    \"senderPhone\": {\n      \"countryCode\": \"CA\",\n      \"number\": \" 11231231231\"\n    }\n  }'\n<\/code><\/pre>\n\n\n\n<div style=\"height:44px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>In the example above, 4160 NGN is used as the amount because it is equal to 50 GHS as we noted in the last paragraph. Should this request be successful, you will get a response similar to what is below<\/p>\n\n\n\n<div style=\"height:37px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"transactionId\": 34953,\n  \"status\": \"SUCCESSFUL\",\n  \"operatorTransactionId\": null,\n  \"customIdentifier\": \"mtn-ghana-data-topup\",\n  \"recipientPhone\": \"233540903921\",\n  \"recipientEmail\": \"anyone@email.com\",\n  \"senderPhone\": \"1231231231\",\n  \"countryCode\": \"GH\",\n  \"operatorId\": 643,\n  \"operatorName\": \"MTN Ghana Data\",\n  \"discount\": 0,\n  \"discountCurrencyCode\": \"NGN\",\n  \"requestedAmount\": 4160,\n  \"requestedAmountCurrencyCode\": \"NGN\",\n  \"deliveredAmount\": 50,\n  \"deliveredAmountCurrencyCode\": \"GHS\",\n  \"transactionDate\": \"2022-06-23 13:23:50\",\n  \"pinDetail\": null,\n  \"balanceInfo\": {\n    \"oldBalance\": 809964.36995,\n    \"newBalance\": 805804.36995,\n    \"cost\": 4160,\n    \"currencyCode\": \"NGN\",\n    \"currencyName\": \"Nigerian Naira\",\n    \"updatedAt\": \"2022-06-23 17:23:50\"\n  }\n}\n<\/code><\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Resources\"><\/span>Resources<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><a href=\"https:\/\/docs.reloadly.com\/airtime\/\" target=\"_blank\" rel=\"noreferrer noopener\">Reloadly Airtime API<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/developers.reloadly.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Reloadly Developer Documentation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to make data recharges for mobile numbers with Reloadly\u2019s API. This guide was written with code samples in test mode. Code samples in responses may be abbreviated.<\/p>\n","protected":false},"author":17,"featured_media":2756,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[274],"tags":[399,398,314,199],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to make a data top-up to an international phone number - Reloadly<\/title>\n<meta name=\"description\" content=\"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to make a data top-up to an international phone number - Reloadly\" \/>\n<meta property=\"og:description\" content=\"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/\" \/>\n<meta property=\"og:site_name\" content=\"Reloadly\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-12T15:44:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-22T10:34:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.reloadly.com\/blog\/wp-content\/uploads\/2022\/07\/cover-image-blogs.png\" \/>\n\t<meta property=\"og:image:width\" content=\"641\" \/>\n\t<meta property=\"og:image:height\" content=\"334\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"8 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/#organization\",\"name\":\"Reloadly\",\"url\":\"https:\/\/www.reloadly.com\/blog\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/blog.reloadly.com\/blog\/wp-content\/uploads\/2020\/11\/logo-1.svg\",\"width\":100,\"height\":100,\"caption\":\"Reloadly\"},\"image\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/#website\",\"url\":\"https:\/\/www.reloadly.com\/blog\/\",\"name\":\"Reloadly\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.reloadly.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/blog.reloadly.com\/blog\/wp-content\/uploads\/2022\/07\/cover-image-blogs.png\",\"width\":641,\"height\":334},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#webpage\",\"url\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/\",\"name\":\"How to make a data top-up to an international phone number - Reloadly\",\"isPartOf\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#primaryimage\"},\"datePublished\":\"2022-07-12T15:44:16+00:00\",\"dateModified\":\"2022-08-22T10:34:15+00:00\",\"description\":\"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community\",\"breadcrumb\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/\",\"url\":\"https:\/\/www.reloadly.com\/blog\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/\",\"url\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/\",\"name\":\"How to make a data top-up to an international phone number\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#\/schema\/person\/2400042054e3b3009489e487224a6984\"},\"headline\":\"How to make a data top-up to an international phone number\",\"datePublished\":\"2022-07-12T15:44:16+00:00\",\"dateModified\":\"2022-08-22T10:34:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#primaryimage\"},\"keywords\":\"bundles,data,developers,top-ups\",\"articleSection\":\"Developer Blog\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.reloadly.com\/blog\/how-to-make-a-data-top-up-to-an-international-phone-number\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/#\/schema\/person\/2400042054e3b3009489e487224a6984\",\"name\":\"Raphael Ugwu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/656844c0101d37e5695eee915ed3a49d?s=96&d=mm&r=g\",\"caption\":\"Raphael Ugwu\"},\"url\":\"https:\/\/blog.reloadly.com\/blog\/author\/fullstackmafia\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","authors":[{"term_id":359,"user_id":17,"is_guest":0,"slug":"fullstackmafia","display_name":"Raphael Ugwu"}],"_links":{"self":[{"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/2774"}],"collection":[{"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/comments?post=2774"}],"version-history":[{"count":5,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/2774\/revisions"}],"predecessor-version":[{"id":3452,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/2774\/revisions\/3452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/media\/2756"}],"wp:attachment":[{"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/media?parent=2774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/categories?post=2774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/tags?post=2774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}