Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
{
"balance":550.75,
"currencyCode":"USD",
"currencyName":"US Dollar",
"updatedAt":"2018-12-04 08:45:51"
}{
"timeStamp":"2021-05-11 21:14:00",
"message":"Full authentication is required to access this resource",
"path":"/accounts/balance",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"timestamp":"2021-05-11T21:14:29.629+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/accounts/balanc"
}curl --location --request GET 'https://topups.reloadly.com/accounts/balance' \
--header 'Accept: application/com.reloadly.topups-v1+json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Content-Type: application/json'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/accounts/balance");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
message.Headers.TryAddWithoutValidation("Content-Type", "application/json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/accounts/balance"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/accounts/balance")
.method("GET", null)
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();var myHeaders = new Headers();
myHeaders.append("Accept", "application/com.reloadly.topups-v1+json");
myHeaders.append("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
myHeaders.append("Content-Type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://topups.reloadly.com/accounts/balance", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/accounts/balance',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/com.reloadly.topups-v1+json',
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/accounts/balance"
payload={}
headers = {
'Accept': 'application/com.reloadly.topups-v1+json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)curl --location --request POST 'https://auth.reloadly.com/oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id":"YOUR_CLIENT_ID",
"client_secret":"YOUR_CLIENT_SECRET",
"grant_type":"client_credentials",
"audience":"https://topups.reloadly.com"
}'http https://auth.reloadly.com/oauth/token \
client_id=CLIENTID \
client_secret=CLIENTSECRET \
grant_type=client_credentials \
audience='https://topups-sandbox.reloadly.com'{
"access_token":"eyJraWQiOiIwMDA1YzFmMC0xMjQ3LTRmNmUtYjU2ZC1jM2ZkZDVmMzhhOTIiLCJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9",
"scope":"send-topups read-operators read-promotions read-topups-history read-prepaid-balance read-prepaid-commissions",
"expires_in":5184000,
"token_type":"Bearer"
}::Infocurl --location --request POST 'https://topups.reloadly.com/topups' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' \
--header 'Content-Type: application/json' \
--data-raw '{
"operatorId":"685",
"amount":"10",
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}'http 'https://topups.reloadly.com/topups' \
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
'Accept: application/com.reloadly.topups-v1+json' \
'Content-Type: application/json' \
recipientPhone[countryCode]="NG" \
recipientPhone[number]="08147658721" \
senderPhone[countryCode]="CA" \
senderPhone[number]="1231231231"\
operatorId=685 \
amount=10 \
customIdentifier="This is example identifier 092"{
"transactionId":2127484,
"operatorTransactionId":"2021040116191786605021010",
"customIdentifier":null,
"recipientPhone":"2348147658720",
"recipientEmail":null,
"senderPhone":null,
"countryCode":"NG",
"operatorId":341,
"operatorName":"MTN Nigeria",
"discount":0,
"discountCurrencyCode":"NGN",
"requestedAmount":100,
"requestedAmountCurrencyCode":"NGN",
"deliveredAmount":100,
"deliveredAmountCurrencyCode":"NGN",
"transactionDate":"2021-04-01 11:19:16",
"pinDetail":null,
"balanceInfo":{
"oldBalance":9790.75,
"newBalance":9690.75,
"currencyCode":"NGN",
"currencyName":"Nigerian Naira",
"updatedAt":"2021-04-01 15:19:16"
}
}{
"content":[
{
{
"timeStamp":"2021-05-12 08:06:03",
"message":"Full authentication is required to access this resource",
"path":"/operators",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"timestamp":"2021-05-12T08:00:42.221+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/operator"
}curl --location --request GET 'https://topups.reloadly.com/operators' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/operators");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/operators"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/operators")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/operators',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/operators',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/operators"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"isoName":"US",
"name":"United States",
"currencyCode":"USD",
"currencyName":"US Dollar",
"currencySymbol":"$",
"flag":"https://s3.amazonaws.com/rld-flags/us.svg",
"callingCodes":[
"+1"
]
}{
"timeStamp":"2021-05-12 07:17:42",
"message":"Full authentication is required to access this resource",
"path":"/countries/US",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"operator":{
"operatorId":173,
"name":"Digicel Haiti",
"countryCode":"HT",
"status":true,
"bundle":false,
"data":false
},
"percentage":13,
"internationalPercentage":13,
"localPercentage":0.00,
"updatedAt":"2020-02-08 19:32:43"
}{
"timeStamp": "2021-05-11 22:34:35",
"message": "Full authentication is required to access this resource",
"path": "/operators/173/commissions",
"errorCode": "INVALID_TOKEN",
"infoLink": null,
"details": []
}[
{
"isoName":"AF",
"name":"Afghanistan",
"currencyCode":"AFN",
"currencyName":"Afghan Afghani",
"currencySymbol":"Ř‹",
"flag":"https://s3.amazonaws.com/rld-flags/af.svg",
"callingCodes":[
"+93"
]
},
{
"isoName":"AS",
"name":"American Samoa",
"currencyCode":"USD",
"currencyName":"US Dollar",
"currencySymbol":"$",
"flag":"https://s3.amazonaws.com/rld-flags/as.svg",
"callingCodes":[
"+1684"
]
},
{
"isoName":"AI",
"name":"Anguilla",
"currencyCode":"XCD",
"currencyName":"East Caribbean Dollar",
"currencySymbol":"XCD",
"flag":"https://s3.amazonaws.com/rld-flags/ai.svg",
"callingCodes":[
"+1264"
]
},
{
"isoName":"AG",
"name":"Antigua and Barbuda",
"currencyCode":"XCD",
"currencyName":"East Caribbean Dollar",
"currencySymbol":"XCD",
"flag":"https://s3.amazonaws.com/rld-flags/ag.svg",
"callingCodes":[
"+1268"
]
}
]{
"operatorId":200,
"name":"Airtel India",
"bundle":false,
"data":false,
"pin":false,
"supportsGeographicalRechargePlans":true,
"supportsLocalAmounts":false,
"denominationType":"FIXED",
"senderCurrencyCode":"USD",
"senderCurrencySymbol":"$",
"destinationCurrencyCode":"INR",
"destinationCurrencySymbol":"₹",
"commission":17.0,
"internationalDiscount":17.0,
"localDiscount":0.5,
"mostPopularAmount":null,
"mostPopularLocalAmount":null,
"minAmount":null,
"maxAmount":null,
"localMinAmount":null,
"localMaxAmount":null,
"country":{
"isoName":"IN",
"name":"India"
},
"fx":{
"rate":59,
"currencyCode":"INR"
},
"logoUrls":[
"https://s3.amazonaws.com/rld-operator/3f4a8bcd3268-size-1.png",
"https://s3.amazonaws.com/rld-operator/3f4a8bcd3268-size-2.png",
"https://s3.amazonaws.com/rld-operator/3f4a8bcd3268-size-3.png"
],
"fixedAmounts":[
],
"fixedAmountsDescriptions":[
],
"localFixedAmounts":[
],
"localFixedAmountsDescriptions":[
],
"suggestedAmounts":[
],
"suggestedAmountsMap":{
},
"additionalPlans":null,
"geographicalRechargePlans":[
{
"locationCode":"AP",
"locationName":"Andhra Pradesh",
"fixedAmounts":[
0.17,
8.47,
84.75
],
"localAmounts":[
20.00,
500.00,
5000.00
],
"fixedAmountsDescriptions":{
"0.31":"Get ISD Calling at discounted rates for 28 Days.",
"8.47":"Get Talktime of Rs. 423.73",
"84.75":"Get Talktime of Rs. 4237.29"
},
"localFixedAmountsDescriptions":{
"18.00":"Get ISD Calling at discounted rates for 28 Days.",
"100.00":"Get Talktime of Rs. 81.75",
"5000.00":"Get Talktime of Rs. 4237.29"
}
},
"locationCode":"DEL",
"locationName":"Delhi",
"fixedAmounts":[
0.60,
1.63,
8.35
],
"localAmounts":[
26.00,
51.00,
501.00
],
"fixedAmountsDescriptions":{
"0.20":"Get 120 local/national SMS",
"0.85":"Get 500 local/national SMS",
"8.35":"Get 75 GB 4G/3G/2G Data"
},
"localFixedAmountsDescriptions":{
"26.00":"Get 250 local/national SMS",
"251.00":"Get 50 GB 4G/3G/2G Data",
"501.00":"Get 75 GB 4G/3G/2G Data"
}
},
"promotions":[
]{
"timeStamp":"2021-05-12 07:15:00",
"message":"Country not found and/or not currently supported",
"path":"/countries/PKGG",
"errorCode":"COUNTRY_NOT_SUPPORTED",
"infoLink":null,
"details":[
]
}curl --location --request GET 'https://topups.reloadly.com/countries/PK' \
--header 'Accept: application/com.reloadly.topups-v1+json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/countries/PK");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/countries/PK"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/countries/PK")
.method("GET", null)
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.build();
Response response = client.newCall(request).execute();var myHeaders = new Headers();
myHeaders.append("Accept", "application/com.reloadly.topups-v1+json");
myHeaders.append("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://topups.reloadly.com/countries/PK", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/countries/PK',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/com.reloadly.topups-v1+json',
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/countries/PK"
payload={}
headers = {
'Accept': 'application/com.reloadly.topups-v1+json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
{
"timestamp": "2021-05-11T22:33:12.101+0000",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/operators/173/commission"
}curl --location --request GET 'https://topups.reloadly.com/operators/173/commissions' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/operators/173/commissions");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/operators/173/commissions"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/operators/173/commissions")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
myHeaders.append("Accept", "application/com.reloadly.topups-v1+json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://topups.reloadly.com/operators/173/commissions", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/operators/173/commissions',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/operators/173/commissions"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"timeStamp":"2021-05-11 21:14:00",
"message":"Full authentication is required to access this resource",
"path":"/countries",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"timestamp":"2021-05-12T09:23:19.861+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/country"
}curl --location --request GET 'https://topups.reloadly.com/countries' \
--header 'Accept: application/com.reloadly.topups-v1+json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/countries");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/countries"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/countries")
.method("GET", null)
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/countries',
'headers': {
'Accept': 'application/com.reloadly.topups-v1+json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/countries',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/com.reloadly.topups-v1+json',
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/countries"
payload={}
headers = {
'Accept': 'application/com.reloadly.topups-v1+json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"timestamp":"2021-05-13T23:15:31.837+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/operator/128"
}{
"id":200,
"operatorId":200,
"name":"Airtel India",
"bundle":false,
"data":false,
"pin":false,
"supportsLocalAmounts":false,
"supportsGeographicalRechargePlans":true,
"denominationType":"FIXED",
"senderCurrencyCode":"NGN",
"senderCurrencySymbol":"₦",
"destinationCurrencyCode":"INR",
"destinationCurrencySymbol":"₹",
"commission":17.0,
"internationalDiscount":17.0,
"localDiscount":0.5,
"mostPopularAmount":null,
"mostPopularLocalAmount":null,
"minAmount":null,
"maxAmount":null,
"localMinAmount":null,
"localMaxAmount":null,
"country":{
"isoName":"IN",
"name":"India"
},
"fx":{
"rate":0.14094,
"currencyCode":"INR"
},
"logoUrls":[
"https://s3.amazonaws.com/rld-operator/48a34cc8-a395-43b2-848d-8caa7af71649-size-1.png",
"https://s3.amazonaws.com/rld-operator/48a34cc8-a395-43b2-848d-8caa7af71649-size-2.png",
"https://s3.amazonaws.com/rld-operator/48a34cc8-a395-43b2-848d-8caa7af71649-size-3.png"
],
"fixedAmounts":[
],
"fixedAmountsDescriptions":{
},
"localFixedAmounts":[
],
"localFixedAmountsDescriptions":{
},
"suggestedAmounts":[
],
"suggestedAmountsMap":{
},
"geographicalRechargePlans":[
{
"locationCode":"ASM",
"locationName":"Assam",
"fixedAmounts":[
69.87,
139.74,
706.92,
3542.82,
7085.64,
35432.31
],
"localAmounts":[
10.00,
20.00,
100.00,
500.00,
1000.00,
5000.00
],
"fixedAmountsPlanNames":{
"0.17":"Topup Plan",
"0.34":"Topup Plan",
"1.72":"Topup Plan",
"8.62":"Topup Plan",
"17.24":"Topup Plan",
"86.21":"Topup Plan"
},
"fixedAmountsDescriptions":{
"69.87":"Get Talktime of Rs. 7.47. Validity : 0 Days. Talk time : 7.47",
"139.74":"Get Talktime of Rs. 14.95. Validity : 0 Days. Talk time : 14.95",
"706.92":"Get Talktime of Rs. 81.75. Validity : 0 Days. Talk time : 81.75",
"3542.82":"Get Talktime of Rs. 423.73. Validity : 0 Days. Talk time : 423.73",
"7085.64":"Get Talktime of Rs. 847.46. Validity : 0 Days. Talk time : 847.46",
"35432.31":"Get Talktime of Rs. 4237.29. Validity : 0 Days. Talk time : 4237.29"
},
"localFixedAmountsPlanNames":{
"10.00":"Topup Plan",
"20.00":"Topup Plan",
"100.00":"Topup Plan",
"500.00":"Topup Plan",
"1000.00":"Topup Plan",
"5000.00":"Topup Plan"
},
"localFixedAmountsDescriptions":{
"10.00":"Get Talktime of Rs. 7.47. Validity : 0 Days. Talk time : 7.47",
"20.00":"Get Talktime of Rs. 14.95. Validity : 0 Days. Talk time : 14.95",
"100.00":"Get Talktime of Rs. 81.75. Validity : 0 Days. Talk time : 81.75",
"500.00":"Get Talktime of Rs. 423.73. Validity : 0 Days. Talk time : 423.73",
"1000.00":"Get Talktime of Rs. 847.46. Validity : 0 Days. Talk time : 847.46",
"5000.00":"Get Talktime of Rs. 4237.29. Validity : 0 Days. Talk time : 4237.29"
}
},
{
"locationCode":"PUN",
"locationName":"Punjab",
"fixedAmounts":[
69.87,
139.74,
706.92,
3542.82,
7085.64,
35432.31
],
"localAmounts":[
10.00,
20.00,
100.00,
500.00,
1000.00,
5000.00
],
"fixedAmountsPlanNames":{
"0.17":"Topup Plan",
"0.34":"Topup Plan",
"1.72":"Topup Plan",
"8.62":"Topup Plan",
"17.24":"Topup Plan",
"86.21":"Topup Plan"
},
"fixedAmountsDescriptions":{
"69.87":"Get Talktime of Rs. 7.47. Validity : 0 Days. Talk time : 7.47",
"139.74":"Get Talktime of Rs. 14.95. Validity : 0 Days. Talk time : 14.95",
"706.92":"Get Talktime of Rs. 81.75. Validity : 0 Days. Talk time : 81.75",
"3542.82":"Get Talktime of Rs. 423.73. Validity : 0 Days. Talk time : 423.73",
"7085.64":"Get Talktime of Rs. 847.46. Validity : 0 Days. Talk time : 847.46",
"35432.31":"Get Talktime of Rs. 4237.29. Validity : 0 Days. Talk time : 4237.29"
},
"localFixedAmountsPlanNames":{
"10.00":"Topup Plan",
"20.00":"Topup Plan",
"100.00":"Topup Plan",
"500.00":"Topup Plan",
"1000.00":"Topup Plan",
"5000.00":"Topup Plan"
},
"localFixedAmountsDescriptions":{
"10.00":"Get Talktime of Rs. 7.47. Validity : 0 Days. Talk time : 7.47",
"20.00":"Get Talktime of Rs. 14.95. Validity : 0 Days. Talk time : 14.95",
"100.00":"Get Talktime of Rs. 81.75. Validity : 0 Days. Talk time : 81.75",
"500.00":"Get Talktime of Rs. 423.73. Validity : 0 Days. Talk time : 423.73",
"1000.00":"Get Talktime of Rs. 847.46. Validity : 0 Days. Talk time : 847.46",
"5000.00":"Get Talktime of Rs. 4237.29. Validity : 0 Days. Talk time : 4237.29"
}
}
],
"promotions":[
]
}{
"timeStamp":"2021-05-13 23:07:04",
"message":"Could not retrieve/update resources at the moment, please try again later",
"path":"/operators/1288",
"errorCode":null,
"infoLink":null,
"details":[
]
}{
"timeStamp":"2021-05-12 07:17:42",
"message":"Full authentication is required to access this resource",
"path":"/operators/128",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}curl --location --request GET 'https://topups.reloadly.com/operators/128?suggestedAmounts=true&suggestedAmountsMap=true' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/operators/128?suggestedAmounts=true&suggestedAmountsMap=true");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/operators/128?suggestedAmounts=true&suggestedAmountsMap=true"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/operators/128?suggestedAmounts=true&suggestedAmountsMap=true")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/operators/128?suggestedAmounts=true&suggestedAmountsMap=true',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/operators/128?suggestedAmounts=true&suggestedAmountsMap=true',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/operators/128?suggestedAmounts=true&suggestedAmountsMap=true"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}{
"operatorId":88,
"name":"Movistar Colombia",
{
"id":174,
"name":"Natcom Haiti",
{
"timeStamp": "2021-05-11 22:34:35",
{
"timestamp": "2021-05-11T23:46:00.418+0000",
{
"timeStamp":"2021-05-12 08:06:03",
"message":"Full authentication is required to access this resource",
"path":"",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"timestamp":"2021-05-17T14:40:02.376+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/operators/auto-detect/phon/03238482221/countries/PKcurl --location --request GET 'https://topups.reloadly.com/operators/auto-detect/phone/03238482221/countries/PK?suggestedAmountsMap=true&SuggestedAmounts=true' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/operators/auto-detect/phone/03238482221/countries/PK?suggestedAmountsMap=true&SuggestedAmounts=true");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/operators/auto-detect/phone/03238482221/countries/PK?suggestedAmountsMap=true&SuggestedAmounts=true"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/operators/auto-detect/phone/03238482221/countries/PK?suggestedAmountsMap=true&SuggestedAmounts=true")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/operators/auto-detect/phone/03238482221/countries/PK?suggestedAmountsMap=true&SuggestedAmounts=true',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/operators/auto-detect/phone/03238482221/countries/PK?suggestedAmountsMap=true&SuggestedAmounts=true',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/operators/auto-detect/phone/03238482221/countries/PK?suggestedAmountsMap=true&SuggestedAmounts=true"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"timeStamp": "2021-05-11 23:43:04",
"message": "Fx rate is currently not available for this operator, please try again later or contact support.",
"path": "/operators/fx-rate",
"errorCode": "FX_RATE_NOT_AVAILABLE",
"infoLink": null,
"details": []
}curl --location --request POST 'https://topups.reloadly.com/operators/fx-rate' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' \
--header 'Content-Type: application/json' \
--data-raw '{
"operatorId":"341",
"amount":"10"
}'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var json = JsonConvert.SerializeObject(new {
operator_id = "1",
amount = "1"
});
var message = new HttpRequestMessage(HttpMethod.Post, "https://topups.reloadly.com/operators/fx-rate");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
message.Headers.TryAddWithoutValidation("Content-Type", "application/json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/operators/fx-rate"
method := "POST"
payload := strings.NewReader(`{
"operatorId":"341",
"amount":"10"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n\t\"operatorId\":\"341\",\n\t\"amount\":\"10\"\n}");
Request request = new Request.Builder()
.url("https://topups.reloadly.com/operators/fx-rate")
.method("POST", body)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'POST',
'url': 'https://topups.reloadly.com/operators/fx-rate',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"operatorId": "341",
"amount": "10"
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/operators/fx-rate',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"operatorId":"341",
"amount":"10"
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/operators/fx-rate"
payload = json.dumps({
"operatorId": "341",
"amount": "10"
})
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text){
"content":[
{
"operator":{
"operatorId":1,
"name":"Afghan Wireless Afghanistan",
"countryCode":"AF",
"status":true,
"bundle":false
},
"percentage":10,
"internationalPercentage":10,
"localPercentage":0,
"updatedAt":"2018-06-26 03:36:16"
},
{
"operator":{
"operatorId":2,
"name":"MTN Afghanistan",
"countryCode":"AF",
"status":true,
"bundle":false
},
"percentage":10,
"internationalPercentage":10,
"localPercentage":0,
"updatedAt":"2018-06-26 03:36:16"
},
{
"operator":{
"operatorId":3,
"name":"Etisalat Afghanistan",
"countryCode":"AF",
"status":true,
"bundle":false
},
"percentage":10,
"internationalPercentage":10,
"localPercentage":0,
"updatedAt":"2018-06-26 03:36:16"
}
],
"pageable":{
"sort":{
"unsorted":true,
"sorted":false
},
"pageSize":3,
"pageNumber":0,
"offset":0,
"paged":true,
"unpaged":false
},
"totalPages":204,
"totalElements":611,
"last":false,
"sort":{
"unsorted":true,
"sorted":false
},
"first":true,
"numberOfElements":3,
"size":3,
"number":0
}{
"operatorId":88,
"name":"Movistar Colombia",
"bundle":false,
"data":false,
"pin":false,
"supportsLocalAmounts":false,
"denominationType":"RANGE",
"senderCurrencyCode":"USD",
"senderCurrencySymbol":"$",
"destinationCurrencyCode":"COP",
"destinationCurrencySymbol":"$",
"commission":4.42,
"internationalDiscount":4.42,
"localDiscount":0.00,
"mostPopularAmount":null,
"minAmount":5.00,
"maxAmount":50,
"localMinAmount":null,
"localMaxAmount":null,
"country":{
"isoName":"CO",
"name":"Colombia"
},
"fx":{
"rate":2192.1867,
"currencyCode":"COP"
},
"logoUrls":[
"https://s3.amazonaws.com/rld-operator/3f4a8bcd3268-size-1.png",
"https://s3.amazonaws.com/rld-operator/3f4a8bcd3268-size-2.png",
"https://s3.amazonaws.com/rld-operator/3f4a8bcd3268-size-3.png"
],
"fixedAmounts":[
],
"fixedAmountsDescriptions":[
],
"localFixedAmounts":[
],
"localFixedAmountsDescriptions":[
],
"suggestedAmounts":[
7,
10,
15,
20,
25,
30,
35,
40,
45,
50,
55,
60,
65
],
"suggestedAmountsMap":{
"7":19482.51,
"10":27832.16,
"15":41748.23,
"20":55664.31,
"25":69580.39,
"30":83496.46,
"35":97412.54,
"40":111328.61,
"45":125244.69,
"50":139160.77,
"55":153076.84,
"60":166992.92,
"65":180909.00
},
"promotions":[
]
}{
"content":[
{
"promotionId":1,
"operatorId":129,
"title":"Tigo El Salvador From 25 Jun 2018 00:00 To 25 July...",
"title2":"Get 500 MB and 150 minutes for USA or Canada",
"description":"For top ups of $10 or more, customer...",
"startDate":"Mon, 25 Jun 2018 06:00:00 +0000",
"endDate":"Tue, 26 Jun 2018 05:59:00 +0000",
"denominations":"USD 10 and up",
"localDenominations":null
},
{
"promotionId":2,
"operatorId":158,
"title":"Tigo Guatemala From 30 Jun 2018 00:00 To 30 Jun",
"title2":"Bonus 3x",
"description":"Calls and SMS to USA, OnNet an...",
"startDate":"Sat, 30 Jun 2018 06:00:00 +0000",
"endDate":"Sun, 01 Jul 2018 05:59:00 +0000",
"denominations":"USD 14 and up",
"localDenominations":"GTQ 100.80 and up"
}
],
"pageable":{
"sort":{
"unsorted":true,
"sorted":false
},
"pageSize":3,
"pageNumber":0,
"offset":0,
"paged":true,
"unpaged":false
},
"totalPages":15,
"totalElements":44,
"last":false,
"sort":{
"unsorted":true,
"sorted":false
},
"first":true,
"numberOfElements":3,
"size":3,
"number":0
}{
"timeStamp":"2021-06-09 23:24:30",
"message":"Full authentication is required to access this resource",
"path":"/operators/commissions",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"timestamp":"2021-06-09T23:22:56.125+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/operator/commissions"
}curl --location --request GET 'https://topups.reloadly.com/operators/commissions' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/operators/commissions");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/operators/commissions"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/operators/commissions")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/operators/commissions',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/operators/commissions',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/operators/commissions"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"timestamp":"2021-05-17T15:37:28.104+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/operator/countries/CO"
}{
"id":200,
"operatorId":200,
"name":"Airtel India",
"bundle":false,
"data":false,
"pin":false,
"supportsLocalAmounts":false,
"supportsGeographicalRechargePlans":true,
"denominationType":"FIXED",
"senderCurrencyCode":"NGN",
"senderCurrencySymbol":"₦",
"destinationCurrencyCode":"INR",
"destinationCurrencySymbol":"₹",
"commission":17.0,
"internationalDiscount":17.0,
"localDiscount":0.5,
"mostPopularAmount":null,
"mostPopularLocalAmount":null,
"minAmount":null,
"maxAmount":null,
"localMinAmount":null,
"localMaxAmount":null,
"country":{
"isoName":"IN",
"name":"India"
},
"fx":{
"rate":0.14094,
"currencyCode":"INR"
},
"logoUrls":[
"https://s3.amazonaws.com/rld-operator/48a34cc8-a395-43b2-848d-8caa7af71649-size-1.png",
"https://s3.amazonaws.com/rld-operator/48a34cc8-a395-43b2-848d-8caa7af71649-size-2.png",
"https://s3.amazonaws.com/rld-operator/48a34cc8-a395-43b2-848d-8caa7af71649-size-3.png"
],
"fixedAmounts":[
],
"fixedAmountsDescriptions":{
},
"localFixedAmounts":[
],
"localFixedAmountsDescriptions":{
},
"suggestedAmounts":[
],
"suggestedAmountsMap":{
},
"geographicalRechargePlans":[
{
"locationCode":"ASM",
"locationName":"Assam",
"fixedAmounts":[
69.87,
139.74,
706.92,
3542.82,
7085.64,
35432.31
],
"localAmounts":[
10.00,
20.00,
100.00,
500.00,
1000.00,
5000.00
],
"fixedAmountsPlanNames":{
"0.17":"Topup Plan",
"0.34":"Topup Plan",
"1.72":"Topup Plan",
"8.62":"Topup Plan",
"17.24":"Topup Plan",
"86.21":"Topup Plan"
},
"fixedAmountsDescriptions":{
"69.87":"Get Talktime of Rs. 7.47. Validity : 0 Days. Talk time : 7.47",
"139.74":"Get Talktime of Rs. 14.95. Validity : 0 Days. Talk time : 14.95",
"706.92":"Get Talktime of Rs. 81.75. Validity : 0 Days. Talk time : 81.75",
"3542.82":"Get Talktime of Rs. 423.73. Validity : 0 Days. Talk time : 423.73",
"7085.64":"Get Talktime of Rs. 847.46. Validity : 0 Days. Talk time : 847.46",
"35432.31":"Get Talktime of Rs. 4237.29. Validity : 0 Days. Talk time : 4237.29"
},
"localFixedAmountsPlanNames":{
"10.00":"Topup Plan",
"20.00":"Topup Plan",
"100.00":"Topup Plan",
"500.00":"Topup Plan",
"1000.00":"Topup Plan",
"5000.00":"Topup Plan"
},
"localFixedAmountsDescriptions":{
"10.00":"Get Talktime of Rs. 7.47. Validity : 0 Days. Talk time : 7.47",
"20.00":"Get Talktime of Rs. 14.95. Validity : 0 Days. Talk time : 14.95",
"100.00":"Get Talktime of Rs. 81.75. Validity : 0 Days. Talk time : 81.75",
"500.00":"Get Talktime of Rs. 423.73. Validity : 0 Days. Talk time : 423.73",
"1000.00":"Get Talktime of Rs. 847.46. Validity : 0 Days. Talk time : 847.46",
"5000.00":"Get Talktime of Rs. 4237.29. Validity : 0 Days. Talk time : 4237.29"
}
},
{
"locationCode":"PUN",
"locationName":"Punjab",
"fixedAmounts":[
69.87,
139.74,
706.92,
3542.82,
7085.64,
35432.31
],
"localAmounts":[
10.00,
20.00,
100.00,
500.00,
1000.00,
5000.00
],
"fixedAmountsPlanNames":{
"0.17":"Topup Plan",
"0.34":"Topup Plan",
"1.72":"Topup Plan",
"8.62":"Topup Plan",
"17.24":"Topup Plan",
"86.21":"Topup Plan"
},
"fixedAmountsDescriptions":{
"69.87":"Get Talktime of Rs. 7.47. Validity : 0 Days. Talk time : 7.47",
"139.74":"Get Talktime of Rs. 14.95. Validity : 0 Days. Talk time : 14.95",
"706.92":"Get Talktime of Rs. 81.75. Validity : 0 Days. Talk time : 81.75",
"3542.82":"Get Talktime of Rs. 423.73. Validity : 0 Days. Talk time : 423.73",
"7085.64":"Get Talktime of Rs. 847.46. Validity : 0 Days. Talk time : 847.46",
"35432.31":"Get Talktime of Rs. 4237.29. Validity : 0 Days. Talk time : 4237.29"
},
"localFixedAmountsPlanNames":{
"10.00":"Topup Plan",
"20.00":"Topup Plan",
"100.00":"Topup Plan",
"500.00":"Topup Plan",
"1000.00":"Topup Plan",
"5000.00":"Topup Plan"
},
"localFixedAmountsDescriptions":{
"10.00":"Get Talktime of Rs. 7.47. Validity : 0 Days. Talk time : 7.47",
"20.00":"Get Talktime of Rs. 14.95. Validity : 0 Days. Talk time : 14.95",
"100.00":"Get Talktime of Rs. 81.75. Validity : 0 Days. Talk time : 81.75",
"500.00":"Get Talktime of Rs. 423.73. Validity : 0 Days. Talk time : 423.73",
"1000.00":"Get Talktime of Rs. 847.46. Validity : 0 Days. Talk time : 847.46",
"5000.00":"Get Talktime of Rs. 4237.29. Validity : 0 Days. Talk time : 4237.29"
}
}
],
"promotions":[
]
}{
"timeStamp":"2021-05-17 15:51:26",
"message":"Invalid country code, see https://www.iban.com/country-codes",
"path":"/operators/countries/COT",
"errorCode":null,
"infoLink":null,
"details":[
]
}{
"timeStamp":"2021-05-12 07:17:42",
"message":"Full authentication is required to access this resource",
"path":"/operators/countries/SV",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}curl --location --request GET 'https://topups.reloadly.com/operators/countries/PK?includeBundles=true&includeData=true&includePin=true&suggestedAmounts=true&suggestedAmountsMap=true' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' \using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/operators/countries/PK?includeBundles=true&includeData=true&includePin=true&suggestedAmounts=true&suggestedAmountsMap=true");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/operators/countries/PK?includeBundles=true&includeData=true&includePin=true&suggestedAmounts=true&suggestedAmountsMap=true"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/operators/countries/PK?includeBundles=true&includeData=true&includePin=true&suggestedAmounts=true&suggestedAmountsMap=true")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/operators/countries/PK?includeBundles=true&includeData=true&includePin=true&suggestedAmounts=true&suggestedAmountsMap=true',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/operators/countries/PK?includeBundles=true&includeData=true&includePin=true&suggestedAmounts=true&suggestedAmountsMap=true',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
import json
url = "https://topups.reloadly.com/operators/countries/PK?includeBundles=true&includeData=true&includePin=true&suggestedAmounts=true&suggestedAmountsMap=true"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"timeStamp":"2021-05-11 21:14:00",
"message":"Full authentication is required to access this resource",
"path":"/promotions",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"timestamp":"2021-05-18T11:35:57.291+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/promotion"
}curl --location --request GET 'https://topups.reloadly.com/promotions' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/promotions");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/promotions"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/promotions")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/promotions',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/promotions',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
import json
url = "https://topups.reloadly.com/promotions"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"promotionId":5,
"operatorId":114,
{
"timeStamp":"2021-05-18 14:27:36",
"message":
[
{
"id":8934,
{
"timeStamp":"2021-06-09 20:13:16",
"message":
{
"content": [
{
[
{
"promotionId":7016,
{
"transactionId": 26523,
"status":
https://topups.reloadly.com/topups-async{
"transactionId": 282571
}{
"timeStamp":"2021-06-08 12:00:54",
"message":
{
"timestamp":"2021-06-08T12:20:51.818+0000",
"status"
{
"timestamp":"2021-05-18T15:29:50.022+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/promotion/6984"
}curl --location --request GET 'https://topups.reloadly.com/promotions/8652' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/promotions/8652");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/promotions/8652"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/promotions/8652")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/promotions/8652',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/promotions/8652',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/promotions/8652"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"timestamp":"2021-06-09T20:17:45.467+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/promotions/operator/344"
}curl --location --request GET 'https://topups.reloadly.com/promotions/operators/129' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/promotions/operators/129");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/promotions/operators/129"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/promotions/operators/129")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/promotions/operators/129',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/promotions/operators/129',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/promotions/operators/129"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"timeStamp":"2021-06-09 22:43:05",
"message":"Full authentication is required to access this resource",
"path":"/topups/reports/transactions",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"timestamp":"2021-06-09T22:45:07.750+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/topups/reports/transaction"
}curl --location --request GET 'https://topups.reloadly.com/topups/reports/transactions' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Post, "https://topups.reloadly.com/topups/reports/transactions");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/topups/reports/transactions"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/topups/reports/transactions")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/topups/reports/transactions',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/topups/reports/transactions',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/topups/reports/transactions"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"timeStamp":"2021-06-09 19:23:18",
"message":"Full authentication is required to access this resource",
"path":"/promotions/country-codes/NG",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"timestamp":"2021-06-09T20:19:59.418+0000",
"status":404,
"error":"Not Found",
"message":"No message available",
"path":"/promotion/country-code/NG"
}curl --location --request GET 'https://topups.reloadly.com/promotions/country-codes/SV' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/promotions/country-codes/SV");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/promotions/country-codes/SV"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/promotions/country-codes/SV")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/promotions/country-codes/SV',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/promotions/country-codes/SV',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/promotions/country-codes/SV"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"timeStamp":"2021-05-31 18:38:03",
"message":"Recipient phone number is not valid",
"path":"/topups",
"errorCode":"INVALID_RECIPIENT_PHONE",
"infoLink":null,
"details":[
]
}{
"timeStamp":"2021-05-31 17:48:18",
"message":"Full authentication is required to access this resource",
"path":"/topup",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}curl --location --request POST 'https://topups.reloadly.com/topups' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' \
--header 'Content-Type: application/json' \
--data-raw '{
"operatorId":"341",
"amount":"10",
"useLocalAmount": false,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var json = JsonConvert.SerializeObject(new {
operatorId = "341",
amount = "10",
useLocalAmount = false,
customIdentifier = "This is a sample",
recipientPhone = new {
countryCode = "NG",
number = "08147658721"
}
});
var message = new HttpRequestMessage(HttpMethod.Post, "https://topups.reloadly.com/topups"){
Content = new StringContent(json, Encoding.UTF8, "application/json")
};
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/topups"
method := "POST"
payload := strings.NewReader(`{
"operatorId":"341",
"amount":"10",
"useLocalAmount": false,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n\t\"operatorId\":\"685\",\n\t\"amount\":\"10\",\n\t\"customIdentifier\": \"This is example identifier 092\",\n\t\"recipientPhone\": {\n\t\t\"countryCode\": \"NG\",\n\t\t\"number\": \"08147658721\"\n\t},\n\t\"senderPhone\": {\n\t\t\"countryCode\": \"CA\",\n\t\t\"number\": \"1231231231\"\n\t}\n}");
Request request = new Request.Builder()
.url("https://topups.reloadly.com/topups")
.method("POST", body)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'POST',
'url': 'https://topups.reloadly.com/topups',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"operatorId": "341",
"amount": "10",
"useLocalAmount": false,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/topups',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"operatorId":"341",
"amount":"10",
"useLocalAmount": false,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/topups"
payload = json.dumps({
"operatorId": "341",
"amount": "10",
"useLocalAmount": False,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
})
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)curl --location --request POST 'https://topups.reloadly.com/topups' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' \
--header 'Content-Type: application/json' \
--data-raw '{
"operatorId":"685",
"amount":"10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "anyone@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var json = JsonConvert.SerializeObject(new {
operatorId = "685",
amount = "10",
customIdentifier = "This is a sample",
recipientEmail = "peter@nauta.com.cu"
senderPhone = new {
countryCode = "CA",
number = "1231231231"
}
});
var message = new HttpRequestMessage(HttpMethod.Post, "https://topups.reloadly.com/topups"){
Content = new StringContent(json, Encoding.UTF8, "application/json")
};
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/topups"
method := "POST"
payload := strings.NewReader(`{
"operatorId":"685",
"amount":"10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "peter@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n\t\"operatorId\":\"685\",\n\t\"amount\":\"10\",\n\t\"customIdentifier\": \"This is example identifier 092\",\n\t\"recipientEmail\": \"peter@nauta.com.cu\",\n\t\"senderPhone\": {\n\t\t\"countryCode\": \"CA\",\n\t\t\"number\": \"1231231231\"\n\t}\n}");
Request request = new Request.Builder()
.url("https://topups.reloadly.com/topups")
.method("POST", body)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'POST',
'url': 'https://topups.reloadly.com/topups',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"operatorId": "685",
"amount": "10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "peter@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/topups',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"operatorId":"685",
"amount":"10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "peter@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/topups"
payload = json.dumps({
"operatorId": "685",
"amount": "10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "peter@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
})
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)curl --location --request POST 'https://topups.reloadly.com/topups-async' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' \
--header 'Content-Type: application/json' \
--data-raw '{
"operatorId":"341",
"amount":"10",
"useLocalAmount": false,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var json = JsonConvert.SerializeObject(new {
operatorId = "341",
amount = "10",
useLocalAmount = false,
customIdentifier = "This is a sample",
recipientPhone = new {
countryCode = "NG",
number = "08147658721"
}
});
var message = new HttpRequestMessage(HttpMethod.Post, "https://topups.reloadly.com/topups-async"){
Content = new StringContent(json, Encoding.UTF8, "application/json")
};
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/topups-async"
method := "POST"
payload := strings.NewReader(`{
"operatorId":"341",
"amount":"10",
"useLocalAmount": false,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n\t\"operatorId\":\"685\",\n\t\"amount\":\"10\",\n\t\"customIdentifier\": \"This is example identifier 092\",\n\t\"recipientPhone\": {\n\t\t\"countryCode\": \"NG\",\n\t\t\"number\": \"08147658721\"\n\t},\n\t\"senderPhone\": {\n\t\t\"countryCode\": \"CA\",\n\t\t\"number\": \"1231231231\"\n\t}\n}");
Request request = new Request.Builder()
.url("https://topups.reloadly.com/topups-async")
.method("POST", body)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'POST',
'url': 'https://topups.reloadly.com/topups-async',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"operatorId": "341",
"amount": "10",
"useLocalAmount": false,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/topups-async',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"operatorId":"341",
"amount":"10",
"useLocalAmount": false,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/topups-async"
payload = json.dumps({
"operatorId": "341",
"amount": "10",
"useLocalAmount": False,
"customIdentifier": "This is example identifier 092",
"recipientPhone": {
"countryCode": "NG",
"number": "08147658721"
},
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
})
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)curl --location --request POST 'https://topups.reloadly.com/topups-async' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' \
--header 'Content-Type: application/json' \
--data-raw '{
"operatorId":"685",
"amount":"10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "peter@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}'using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var json = JsonConvert.SerializeObject(new {
operatorId = "685",
amount = "10",
customIdentifier = "This is a sample",
recipientEmail = "peter@nauta.com.cu"
senderPhone = new {
countryCode = "CA",
number = "1231231231"
}
});
var message = new HttpRequestMessage(HttpMethod.Post, "https://topups.reloadly.com/topups-async"){
Content = new StringContent(json, Encoding.UTF8, "application/json")
};
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/topups-async"
method := "POST"
payload := strings.NewReader(`{
"operatorId":"685",
"amount":"10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "peter@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n\t\"operatorId\":\"685\",\n\t\"amount\":\"10\",\n\t\"customIdentifier\": \"This is example identifier 092\",\n\t\"recipientEmail\": \"peter@nauta.com.cu\",\n\t\"senderPhone\": {\n\t\t\"countryCode\": \"CA\",\n\t\t\"number\": \"1231231231\"\n\t}\n}");
Request request = new Request.Builder()
.url("https://topups.reloadly.com/topups-async")
.method("POST", body)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'POST',
'url': 'https://topups.reloadly.com/topups-async',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"operatorId": "685",
"amount": "10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "peter@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/topups-async',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"operatorId":"685",
"amount":"10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "peter@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/topups-async"
payload = json.dumps({
"operatorId": "685",
"amount": "10",
"customIdentifier": "This is example identifier 092",
"recipientEmail": "peter@nauta.com.cu",
"senderPhone": {
"countryCode": "CA",
"number": "1231231231"
}
})
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)

{
"transactionId": 27623,
"status": "SUCCESSFUL",
"operatorTransactionId": null,
"customIdentifier": null,
"recipientPhone": "2348147658720",
"recipientEmail": null,
"senderPhone": "2341231231231",
"countryCode": "NG",
"operatorId": 341,
"operatorName": "MTN Nigeria",
"discount": 0,
"discountCurrencyCode": "NGN",
"requestedAmount": 100,
"requestedAmountCurrencyCode": "NGN",
"deliveredAmount": 100,
"deliveredAmountCurrencyCode": "NGN",
"transactionDate": "2022-02-21 04:19:26",
"pinDetail": null,
"balanceInfo": {
"oldBalance": 969849.49,
"newBalance": 969749.49,
"cost": 100,
"currencyCode": "NGN",
"currencyName": "Nigerian Naira",
"updatedAt": "2022-02-21 09:19:26"
}
}{
"timeStamp":"2021-06-09 20:59:35",
"message":"Full authentication is required to access this resource",
"path":"/topups/reports/transactions/270395",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}{
"timeStamp":"2021-06-09 20:51:40",
"message":"Airtime transaction not found",
"path":"/topups/reports/transactions/270395111",
"errorCode":null,
"infoLink":null,
"details":[
]
}curl --location --request GET 'https://topups.reloadly.com/topups/reports/transactions/1' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Post, "https://topups.reloadly.com/topups/reports/transactions/1");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/topups/reports/transactions/1"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/topups/reports/transactions/1")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/topups/reports/transactions/1',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/topups/reports/transactions/1',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/topups/reports/transactions/1"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text){
"transactionId": 26523,
"status": "SUCCESSFUL",
"operatorTransactionId": null,
"customIdentifier": "This is example identifier",
"recipientPhone": "447951631337",
"recipientEmail": null,
"senderPhone": "11231231231",
"countryCode": "GB",
"operatorId": 535,
"operatorName": "EE PIN England",
"discount": 63.37,
"discountCurrencyCode": "NGN",
"requestedAmount": 3168.4,
"requestedAmountCurrencyCode": "NGN",
"deliveredAmount": 5,
"deliveredAmountCurrencyCode": "GBP",
"transactionDate": "2022-01-26 03:19:16",
"pinDetail": {
"serial": "558111",
"info1": "DIAL *611",
"info2": "DIAL *611",
"info3": "Dial *233* and PIN #",
"value": null,
"code": "773709733097662",
"ivr": "1-888-888-8888",
"validity": "30 days"
},
"balanceInfo": {
"oldBalance": 60387.41,
"newBalance": 57282.38,
"cost": 3105.03,
"currencyCode": "NGN",
"currencyName": "Nigerian Naira",
"updatedAt": "2022-01-26 08:19:16"
}
}{
"timeStamp":"2021-06-08 16:03:24",
"message":"Transaction not found for given id",
"path":"/topups/238746/status",
"errorCode":"TRANSACTION_NOT_FOUND",
"in4foLink":null,
"details":[
]
}{
"code":null,
"message":null,
"status":"PROCESSING",
"transaction":null
}{
"code": "SERVICE_TO_OPERATOR_TEMPORARILY_UNAVAILABLE",
"message": "The transaction failed due to an outage and / or connection issue with the operator",
"status": "REFUNDED",
"transaction": null
}{
"code":"PROVIDER_INTERNAL_ERROR",
"message":"Please wait 30 minutes to purchase same product",
"status":"FAILED",
"transaction":null
}{
"timeStamp":"2021-06-08 12:00:54",
"message":"Full authentication is required to access this resource",
"path":"/topups/2/status",
"errorCode":"INVALID_TOKEN",
"infoLink":null,
"details":[
]
}curl --location -g --request GET 'https://topups.reloadly.com/topups/{{transactionId}}/status' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json' using System;
using System.Threading.Tasks;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;
namespace WebAPIClient {
class Program {
static async Task Main(string[] args) {
await ApiCall();
}
private static async Task ApiCall() {
var message = new HttpRequestMessage(HttpMethod.Get, "https://topups.reloadly.com/topups/{{transactionId}}/status");
message.Headers.TryAddWithoutValidation("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE");
message.Headers.TryAddWithoutValidation("Accept", "application/com.reloadly.topups-v1+json");
using
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(message);
var responseBody = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject < dynamic > (responseBody);
Console.WriteLine(result);
}
}
}package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://topups.reloadly.com/topups/{{transactionId}}/status"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
req.Header.Add("Accept", "application/com.reloadly.topups-v1+json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://topups.reloadly.com/topups/{{transactionId}}/status")
.method("GET", null)
.addHeader("Authorization", "Bearer YOUR_ACCESS_TOKEN_HERE")
.addHeader("Accept", "application/com.reloadly.topups-v1+json")
.build();
Response response = client.newCall(request).execute();var request = require('request');
var options = {
'method': 'GET',
'url': 'https://topups.reloadly.com/topups/{{transactionId}}/status',
'headers': {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://topups.reloadly.com/topups/%7B%7BtransactionId%7D%7D/status',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept: application/com.reloadly.topups-v1+json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;import requests
import json
url = "https://topups.reloadly.com/topups/{{transactionId}}/status"
payload={}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN_HERE',
'Accept': 'application/com.reloadly.topups-v1+json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)