{"id":3551,"date":"2022-09-15T12:11:32","date_gmt":"2022-09-15T12:11:32","guid":{"rendered":"https:\/\/www.reloadly.com\/blog\/?p=3551"},"modified":"2022-09-15T12:15:12","modified_gmt":"2022-09-15T12:15:12","slug":"how-does-the-get-top-up-status-endpoint-work","status":"publish","type":"post","link":"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/","title":{"rendered":"How does the &#8220;Get Top-up Status&#8221; endpoint work?"},"content":{"rendered":"\n<p>Reloadly\u2019s Airtime API enables you to fetch the real-time status of every airtime top-up you make. Response times from various operators may differ and due to this, we want to ensure that you have every information about the status of your top-ups.<\/p>\n\n\n\n<p>Top-ups can have one of the following four statuses:<\/p>\n\n\n\n<p><strong>SUCCESSFUL<\/strong>: This applies when the top up is successfully made.<\/p>\n\n\n\n<p><strong>PROCESSING<\/strong>: This applies while the top up is still being verified from the operator&#8217;s end.<\/p>\n\n\n\n<p><strong>REFUNDED<\/strong>: This applies once the top up is not processed successfully from the airtime operator&#8217;s end. In this instance, any funds debited from a user&#8217;s wallet while attempting to make the top-up are automatically refunded.&nbsp;<\/p>\n\n\n\n<p><strong>FAILED<\/strong>: This applies when the top-up attempt fails due to an internal error from the operator&#8217;s end. In this instance, you should wait 30 minutes before reinitiating the top-up. Funds are not debited for a failed top-up attempt.<\/p>\n\n\n\n<p>We have added four code snippets that show what the JSON response of each of these statuses look like. This way, you can gain further insights on each of the statuses:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>SUCCESSFUL TOP-UP<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"transactionId\": 26523,\n    \"status\": \"SUCCESSFUL\",\n    \"operatorTransactionId\": null,\n    \"customIdentifier\": \"This is example identifier\",\n    \"recipientPhone\": \"447951631337\",\n    \"recipientEmail\": null,\n    \"senderPhone\": \"11231231231\",\n    \"countryCode\": \"GB\",\n    \"operatorId\": 535,\n    \"operatorName\": \"EE PIN England\",\n    \"discount\": 63.37,\n    \"discountCurrencyCode\": \"NGN\",\n    \"requestedAmount\": 3168.4,\n    \"requestedAmountCurrencyCode\": \"NGN\",\n    \"deliveredAmount\": 5,\n    \"deliveredAmountCurrencyCode\": \"GBP\",\n    \"transactionDate\": \"2022-01-26 03:19:16\",\n    \"pinDetail\": {\n        \"serial\": \"558111\",\n        \"info1\": \"DIAL *611\",\n        \"info2\": \"DIAL *611\",\n        \"info3\": \"Dial *233* and PIN #\",\n        \"value\": null,\n        \"code\": \"773709733097662\",\n        \"ivr\": \"1-888-888-8888\",\n        \"validity\": \"30 days\"\n    },\n    \"balanceInfo\": {\n        \"oldBalance\": 60387.41,\n        \"newBalance\": 57282.38,\n        \"cost\": 3105.03,\n        \"currencyCode\": \"NGN\",\n        \"currencyName\": \"Nigerian Naira\",\n        \"updatedAt\": \"2022-01-26 08:19:16\"\n    }\n}\n<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>PROCESSING TOP-UP<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"code\":null,\n  \"message\":null,\n  \"status\":\"PROCESSING\",\n  \"transaction\":null\n}\n<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>REFUNDED TOP-UP<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"code\": \"SERVICE_TO_OPERATOR_TEMPORARILY_UNAVAILABLE\",\n  \"message\": \"The transaction failed due to an outage and \/ or connection issue with the operator\",\n  \"status\": \"REFUNDED\",\n  \"transaction\": null\n}\n<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>FAILED TOP-UP<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n   \"code\":\"PROVIDER_INTERNAL_ERROR\",\n   \"message\":\"Please wait 30 minutes to purchase same product\",\n   \"status\":\"FAILED\",\n   \"transaction\":null\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Get Top-up Status service (<a href=\"https:\/\/topups.reloadly.com\/topups\/%7BtransactionId%7D\/status\">https:\/\/topups.reloadly.com\/topups\/{transactionId}\/status<\/a>) enables you to have proper insight into the flow of each top-up you make. This guide aims to summarize and explain how it works. Should you have any questions, you can reach out to our engineers via our <a href=\"https:\/\/join.slack.com\/t\/reloadly-developers\/shared_invite\/zt-qflikche-fwiFA5Sxtst2mXzvJBPO3w\">developer community<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article aims to show users how Reloadly&#8217;s &#8220;Get Status&#8221; endpoint works for Airtime top-ups.<\/p>\n","protected":false},"author":17,"featured_media":2572,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[274],"tags":[11,277,282,397],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How does the &quot;Get Top-up Status&quot; endpoint work? - 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:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How does the &quot;Get Top-up Status&quot; endpoint work? - 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:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/\" \/>\n<meta property=\"og:site_name\" content=\"Reloadly\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-15T12:11:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-15T12:15:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.reloadly.com\/blog\/wp-content\/uploads\/2022\/02\/blog-image42-01.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=\"2 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:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/blog.reloadly.com\/blog\/wp-content\/uploads\/2022\/02\/blog-image42-01.png\",\"width\":641,\"height\":334},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#webpage\",\"url\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/\",\"name\":\"How does the \\\"Get Top-up Status\\\" endpoint work? - Reloadly\",\"isPartOf\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#primaryimage\"},\"datePublished\":\"2022-09-15T12:11:32+00:00\",\"dateModified\":\"2022-09-15T12:15:12+00:00\",\"description\":\"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#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:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/\",\"url\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/\",\"name\":\"How does the &#8220;Get Top-up Status&#8221; endpoint work?\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#\/schema\/person\/2400042054e3b3009489e487224a6984\"},\"headline\":\"How does the &#8220;Get Top-up Status&#8221; endpoint work?\",\"datePublished\":\"2022-09-15T12:11:32+00:00\",\"dateModified\":\"2022-09-15T12:15:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#primaryimage\"},\"keywords\":\"airtime,api,developer,top-up\",\"articleSection\":\"Developer Blog\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.reloadly.com\/blog\/how-does-the-get-top-up-status-endpoint-work\/#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\/3551"}],"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=3551"}],"version-history":[{"count":4,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/3551\/revisions"}],"predecessor-version":[{"id":3555,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/3551\/revisions\/3555"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/media\/2572"}],"wp:attachment":[{"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/media?parent=3551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/categories?post=3551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/tags?post=3551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}