Retrieve Currencies
curl --request GET \
--url https://waas-staging.embedly.ng/api/v1/utilities/currencies/get \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/api/v1/utilities/currencies/get"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://waas-staging.embedly.ng/api/v1/utilities/currencies/get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://waas-staging.embedly.ng/api/v1/utilities/currencies/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://waas-staging.embedly.ng/api/v1/utilities/currencies/get"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://waas-staging.embedly.ng/api/v1/utilities/currencies/get")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/utilities/currencies/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "00",
"success": true,
"message": "Retrieved Successfully",
"data": [
{
"id": "6eeb54c8-24d7-11f0-a818-6045bd97b81d",
"name": "Canadian Dollars4",
"shortName": "CD4"
},
{
"id": "82647b29-1302-11f0-a8a9-6045bd97b81d",
"name": "RAND",
"shortName": "ZAR"
},
{
"id": "98d64583-fb7e-11ef-a8a9-6045bd97b81d",
"name": "Canadian Dollars",
"shortName": "CAD"
},
{
"id": "af8c9168-fdc5-11ef-a8a9-6045bd97b81d",
"name": "Canadian Dollars3",
"shortName": "CD3"
},
{
"id": "c8fe419f-fb7e-11ef-a8a9-6045bd97b81d",
"name": "Canadian Dollars2",
"shortName": "CD2"
},
{
"id": "d98ba5ab-fb78-11ef-a8a9-6045bd97b81d",
"name": "Tanzania Shillings",
"shortName": "TZS"
},
{
"id": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9",
"name": "Nigeria Naira",
"shortName": "NGN"
}
]
}
{
"code": "401",
"success": false,
"message": "Invalid Key for admin APIs",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
Utils
Retrieve Currencies
The endpoint retrieves a list of available currencies on the Embedly platform.
GET
/
utilities
/
currencies
/
get
Retrieve Currencies
curl --request GET \
--url https://waas-staging.embedly.ng/api/v1/utilities/currencies/get \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/api/v1/utilities/currencies/get"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://waas-staging.embedly.ng/api/v1/utilities/currencies/get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://waas-staging.embedly.ng/api/v1/utilities/currencies/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://waas-staging.embedly.ng/api/v1/utilities/currencies/get"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://waas-staging.embedly.ng/api/v1/utilities/currencies/get")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/utilities/currencies/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "00",
"success": true,
"message": "Retrieved Successfully",
"data": [
{
"id": "6eeb54c8-24d7-11f0-a818-6045bd97b81d",
"name": "Canadian Dollars4",
"shortName": "CD4"
},
{
"id": "82647b29-1302-11f0-a8a9-6045bd97b81d",
"name": "RAND",
"shortName": "ZAR"
},
{
"id": "98d64583-fb7e-11ef-a8a9-6045bd97b81d",
"name": "Canadian Dollars",
"shortName": "CAD"
},
{
"id": "af8c9168-fdc5-11ef-a8a9-6045bd97b81d",
"name": "Canadian Dollars3",
"shortName": "CD3"
},
{
"id": "c8fe419f-fb7e-11ef-a8a9-6045bd97b81d",
"name": "Canadian Dollars2",
"shortName": "CD2"
},
{
"id": "d98ba5ab-fb78-11ef-a8a9-6045bd97b81d",
"name": "Tanzania Shillings",
"shortName": "TZS"
},
{
"id": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9",
"name": "Nigeria Naira",
"shortName": "NGN"
}
]
}
{
"code": "401",
"success": false,
"message": "Invalid Key for admin APIs",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
{
"code": "00",
"success": true,
"message": "Retrieved Successfully",
"data": [
{
"id": "6eeb54c8-24d7-11f0-a818-6045bd97b81d",
"name": "Canadian Dollars4",
"shortName": "CD4"
},
{
"id": "82647b29-1302-11f0-a8a9-6045bd97b81d",
"name": "RAND",
"shortName": "ZAR"
},
{
"id": "98d64583-fb7e-11ef-a8a9-6045bd97b81d",
"name": "Canadian Dollars",
"shortName": "CAD"
},
{
"id": "af8c9168-fdc5-11ef-a8a9-6045bd97b81d",
"name": "Canadian Dollars3",
"shortName": "CD3"
},
{
"id": "c8fe419f-fb7e-11ef-a8a9-6045bd97b81d",
"name": "Canadian Dollars2",
"shortName": "CD2"
},
{
"id": "d98ba5ab-fb78-11ef-a8a9-6045bd97b81d",
"name": "Tanzania Shillings",
"shortName": "TZS"
},
{
"id": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9",
"name": "Nigeria Naira",
"shortName": "NGN"
}
]
}
{
"code": "401",
"success": false,
"message": "Invalid Key for admin APIs",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
⌘I