{"id":2814,"date":"2022-07-13T09:39:49","date_gmt":"2022-07-13T09:39:49","guid":{"rendered":"https:\/\/www.reloadly.com\/blog\/?p=2814"},"modified":"2022-07-13T09:41:01","modified_gmt":"2022-07-13T09:41:01","slug":"how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account","status":"publish","type":"post","link":"https:\/\/blog.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/","title":{"rendered":"How to fetch transaction data for all the bill payments made on your account"},"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-69d2cebcba2f8\" 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-69d2cebcba2f8\"><\/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-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#Retrieving_bill_payment_transaction_details\" title=\"Retrieving bill payment transaction details\">Retrieving bill payment transaction details<\/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-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#Resources\" title=\"Resources\">Resources<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>Keeping track of your bill payments is important, especially if you pay different bills for various services over an amount of time. This guide will walk you through how to achieve this. Steps to be followed in this guide are:<\/p>\n\n\n\n<ul><li>Getting your access token for the utility payment service<\/li><li>Retrieving your bill payment transaction details<\/li><\/ul>\n\n\n\n<p><em>You can get your access token by following the steps in this <\/em><a href=\"https:\/\/developers.reloadly.com\/utility-payments\/quickstart\"><em>quickstart<\/em><\/a><em>.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Retrieving_bill_payment_transaction_details\"><\/span>Retrieving bill payment transaction details<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Assuming you want to view bill payment transaction details for your account , you can achieve this by making a request to Reloadly\u2019s Utility Payments API. The cURL code snippet below shows how you can achieve this:<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -i -X GET \\\n  'https:\/\/utilities-sandbox.reloadly.com\/transactions' \\\n  -H 'Authorization: Bearer &lt;YOUR_TOKEN_HERE&gt;'\n<\/code><\/pre>\n\n\n\n<div style=\"height:42px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>If successful, you will receive a JSON snippet containing details of all the utility payments ever made on your account<\/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    \"content\": &#091;\n      {\n        \"code\": \"PAYMENT_PROCESSED_SUCCESSFULLY\",\n        \"message\": \"The payment was processed successfully\",\n        \"transaction\": {\n          \"id\": 108,\n          \"status\": \"SUCCESSFUL\",\n          \"referenceId\": \"may-electricity-bill\",\n          \"amount\": 1000,\n          \"amountCurrencyCode\": \"NGN\",\n          \"deliveryAmount\": 1000,\n          \"deliveryAmountCurrencyCode\": \"NGN\",\n          \"fee\": 1198.32797,\n          \"feeCurrencyCode\": \"NGN\",\n          \"discount\": 0,\n          \"discountCurrencyCode\": \"NGN\",\n          \"submittedAt\": \"2022-07-05 12:28:07\",\n          \"balanceInfo\": {\n            \"oldBalance\": 792671.04742,\n            \"newBalance\": 790472.71945,\n            \"cost\": 2198.32797,\n            \"currencyCode\": \"NGN\",\n            \"currencyName\": \"Nigerian Naira\",\n            \"updatedAt\": \"2022-07-05 16:28:07\"\n          },\n          \"billDetails\": {\n            \"type\": \"ELECTRICITY_BILL_PAYMENT\",\n            \"billerId\": 5,\n            \"billerName\": \"Ikeja Electricity Prepaid\",\n            \"billerCountryCode\": \"NG\",\n            \"serviceType\": \"PREPAID\",\n            \"completedAt\": \"2022-07-05 12:28:37\",\n            \"subscriberDetails\": {\n              \"accountNumber\": \"4223568280\"\n            },\n            \"pinDetails\": {\n              \"token\": \"4836-2318-0748-3623-1807\",\n              \"info1\": null,\n              \"info2\": null,\n              \"info3\": null\n            }\n          }\n        }\n      },\n      {\n        \"code\": \"PAYMENT_PROCESSED_SUCCESSFULLY\",\n        \"message\": \"The payment was processed successfully\",\n        \"transaction\": {\n          \"id\": 107,\n          \"status\": \"SUCCESSFUL\",\n          \"referenceId\": \"april-electricity-bill\",\n          \"amount\": 1000,\n          \"amountCurrencyCode\": \"NGN\",\n          \"deliveryAmount\": 1000,\n          \"deliveryAmountCurrencyCode\": \"NGN\",\n          \"fee\": 1198.32797,\n          \"feeCurrencyCode\": \"NGN\",\n          \"discount\": 0,\n          \"discountCurrencyCode\": \"NGN\",\n          \"submittedAt\": \"2022-07-05 10:55:03\",\n          \"balanceInfo\": {\n            \"oldBalance\": 794869.37539,\n            \"newBalance\": 792671.04742,\n            \"cost\": 2198.32797,\n            \"currencyCode\": \"NGN\",\n            \"currencyName\": \"Nigerian Naira\",\n            \"updatedAt\": \"2022-07-05 14:55:03\"\n          },\n          \"billDetails\": {\n            \"type\": \"ELECTRICITY_BILL_PAYMENT\",\n            \"billerId\": 5,\n            \"billerName\": \"Ikeja Electricity Prepaid\",\n            \"billerCountryCode\": \"NG\",\n            \"serviceType\": \"PREPAID\",\n            \"completedAt\": \"2022-07-05 10:55:05\",\n            \"subscriberDetails\": {\n              \"accountNumber\": \"4223568280\"\n            },\n            \"pinDetails\": {\n              \"token\": \"3717-9007-1537-1790-0715\",\n              \"info1\": null,\n              \"info2\": null,\n              \"info3\": null\n            }\n          }\n        }\n      }\n    ],\n    \"pageable\": {\n      \"sort\": {\n        \"sorted\": false,\n        \"unsorted\": true,\n        \"empty\": true\n      },\n      \"pageNumber\": 0,\n      \"pageSize\": 20,\n      \"offset\": 0,\n      \"unpaged\": false,\n      \"paged\": true\n    },\n    \"totalPages\": 1,\n    \"totalElements\": 4,\n    \"last\": true,\n    \"sort\": {\n      \"sorted\": false,\n      \"unsorted\": true,\n      \"empty\": true\n    },\n    \"numberOfElements\": 4,\n    \"first\": true,\n    \"size\": 20,\n    \"number\": 0,\n    \"empty\": false\n  }\n<\/code><\/pre>\n\n\n\n<div style=\"height:39px\" 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\/\">Reloadly API<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/developers.reloadly.com\/\">Reloadly Developer Documentation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to view periodic data for all your bill payment transactions . 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":[277,405,314,407,406],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to fetch transaction data for all the bill payments made on your account - 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-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fetch transaction data for all the bill payments made on your account - 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-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/\" \/>\n<meta property=\"og:site_name\" content=\"Reloadly\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-13T09:39:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-13T09:41:01+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=\"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:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#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-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#webpage\",\"url\":\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/\",\"name\":\"How to fetch transaction data for all the bill payments made on your account - Reloadly\",\"isPartOf\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#primaryimage\"},\"datePublished\":\"2022-07-13T09:39:49+00:00\",\"dateModified\":\"2022-07-13T09:41:01+00:00\",\"description\":\"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community\",\"breadcrumb\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#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-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/\",\"url\":\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/\",\"name\":\"How to fetch transaction data for all the bill payments made on your account\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#\/schema\/person\/2400042054e3b3009489e487224a6984\"},\"headline\":\"How to fetch transaction data for all the bill payments made on your account\",\"datePublished\":\"2022-07-13T09:39:49+00:00\",\"dateModified\":\"2022-07-13T09:41:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#webpage\"},\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#primaryimage\"},\"keywords\":\"api,bill,developers,transaction,utility\",\"articleSection\":\"Developer Blog\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.reloadly.com\/blog\/how-to-fetch-transaction-data-for-all-the-bill-payments-made-on-your-account\/#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\/2814"}],"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=2814"}],"version-history":[{"count":2,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/2814\/revisions"}],"predecessor-version":[{"id":2816,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/2814\/revisions\/2816"}],"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=2814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/categories?post=2814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.reloadly.com\/blog\/wp-json\/wp\/v2\/tags?post=2814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}