Get Organization Prefix Mappings v2
curl --request GET \
--url https://checkout-staging.embedly.ng/api/v1/prefix-map/me \
--header 'x-api-key: <api-key>'import requests
url = "https://checkout-staging.embedly.ng/api/v1/prefix-map/me"
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://checkout-staging.embedly.ng/api/v1/prefix-map/me', 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://checkout-staging.embedly.ng/api/v1/prefix-map/me",
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://checkout-staging.embedly.ng/api/v1/prefix-map/me"
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://checkout-staging.embedly.ng/api/v1/prefix-map/me")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-staging.embedly.ng/api/v1/prefix-map/me")
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{
"statusCode": 200,
"message": "success",
"data": [
{
"id": "8b4432bc-f3c7-4055-b5e5-e232707e79af",
"secondaryPrefix": "56",
"primaryPrefixId": "2c316406-87ee-494b-a43a-d24629f4eeea",
"organizationId": "02600494-1a3c-11f0-a818-6045bd97b81d",
"alias": "Embedly Check Demo",
"organizationName": "Gentlemens Club",
"organizationIsActive": "active"
}
],
"pagination": {
"currentPage": 1,
"pageSize": 10,
"totalCount": 1,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false
}
}
{
"code": "401",
"success": false,
"message": "x-api-key is missing in the header",
"data": null
}
{
"statusCode": 403,
"message": "Access denied. The API key provided is for another organization. You can only access your organization's wallets.",
"data": null
}
Checkout
Get Organization Prefix Mappings
Retrieves all paginated organization prefix mappings for the specified organization. Supports search by secondary prefix, alias, organization name, or primary prefix code. Admin access required.
GET
/
api
/
v1
/
prefix-map
/
me
Get Organization Prefix Mappings v2
curl --request GET \
--url https://checkout-staging.embedly.ng/api/v1/prefix-map/me \
--header 'x-api-key: <api-key>'import requests
url = "https://checkout-staging.embedly.ng/api/v1/prefix-map/me"
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://checkout-staging.embedly.ng/api/v1/prefix-map/me', 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://checkout-staging.embedly.ng/api/v1/prefix-map/me",
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://checkout-staging.embedly.ng/api/v1/prefix-map/me"
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://checkout-staging.embedly.ng/api/v1/prefix-map/me")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-staging.embedly.ng/api/v1/prefix-map/me")
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{
"statusCode": 200,
"message": "success",
"data": [
{
"id": "8b4432bc-f3c7-4055-b5e5-e232707e79af",
"secondaryPrefix": "56",
"primaryPrefixId": "2c316406-87ee-494b-a43a-d24629f4eeea",
"organizationId": "02600494-1a3c-11f0-a818-6045bd97b81d",
"alias": "Embedly Check Demo",
"organizationName": "Gentlemens Club",
"organizationIsActive": "active"
}
],
"pagination": {
"currentPage": 1,
"pageSize": 10,
"totalCount": 1,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false
}
}
{
"code": "401",
"success": false,
"message": "x-api-key is missing in the header",
"data": null
}
{
"statusCode": 403,
"message": "Access denied. The API key provided is for another organization. You can only access your organization's wallets.",
"data": null
}
string
required
Example:
02600494-1a3c-11f0-a818-6045bd97b81dnumber
Example:
1number
Example:
10string
Example:
123{
"statusCode": 200,
"message": "success",
"data": [
{
"id": "8b4432bc-f3c7-4055-b5e5-e232707e79af",
"secondaryPrefix": "56",
"primaryPrefixId": "2c316406-87ee-494b-a43a-d24629f4eeea",
"organizationId": "02600494-1a3c-11f0-a818-6045bd97b81d",
"alias": "Embedly Check Demo",
"organizationName": "Gentlemens Club",
"organizationIsActive": "active"
}
],
"pagination": {
"currentPage": 1,
"pageSize": 10,
"totalCount": 1,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false
}
}
{
"code": "401",
"success": false,
"message": "x-api-key is missing in the header",
"data": null
}
{
"statusCode": 403,
"message": "Access denied. The API key provided is for another organization. You can only access your organization's wallets.",
"data": null
}
⌘I