Get Customer by ID
curl --request GET \
--url https://waas-staging.embedly.ng/api/v1/customers/get/id/{customerId} \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/api/v1/customers/get/id/{customerId}"
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/customers/get/id/{customerId}', 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/customers/get/id/{customerId}",
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/customers/get/id/{customerId}"
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/customers/get/id/{customerId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/customers/get/id/{customerId}")
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{
"data": {
"id": "7119da47-7903-11f0-a7cf-0274f77d4a81",
"organizationId": "0075b72d-6648-11f0-a7cf-0274f77d4a81",
"firstName": "Jesam",
"lastName": "ofem",
"middleName": "Ofem",
"dob": "1964-08-04T00:00:00",
"customerTypeId": "f671da57-e281-4b40-965f-a96f4205405e",
"customerTierId": 2,
"alias": null,
"countryId": "c15ad9ae-c4d7-4342-b70f-de5508627e3b",
"city": "Mushin area",
"address": "4 ogunsanya",
"mobileNumber": "08062190561",
"emailAddress": "godok84@yop.com",
"dateCreated": null,
"isCorporateVerified": ""
},
"status": 200,
"message": ""
}
Individual
Get Customer by ID
This endpoint retrieves customer using their unique identifier
GET
/
customers
/
get
/
id
/
{customerId}
Get Customer by ID
curl --request GET \
--url https://waas-staging.embedly.ng/api/v1/customers/get/id/{customerId} \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/api/v1/customers/get/id/{customerId}"
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/customers/get/id/{customerId}', 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/customers/get/id/{customerId}",
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/customers/get/id/{customerId}"
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/customers/get/id/{customerId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/customers/get/id/{customerId}")
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{
"data": {
"id": "7119da47-7903-11f0-a7cf-0274f77d4a81",
"organizationId": "0075b72d-6648-11f0-a7cf-0274f77d4a81",
"firstName": "Jesam",
"lastName": "ofem",
"middleName": "Ofem",
"dob": "1964-08-04T00:00:00",
"customerTypeId": "f671da57-e281-4b40-965f-a96f4205405e",
"customerTierId": 2,
"alias": null,
"countryId": "c15ad9ae-c4d7-4342-b70f-de5508627e3b",
"city": "Mushin area",
"address": "4 ogunsanya",
"mobileNumber": "08062190561",
"emailAddress": "godok84@yop.com",
"dateCreated": null,
"isCorporateVerified": ""
},
"status": 200,
"message": ""
}
string
required
The unique identifier for the customer. Example:
‘f6210a05-fb5b-11ef-a8a9-6045bd97b81d’
{
"data": {
"id": "7119da47-7903-11f0-a7cf-0274f77d4a81",
"organizationId": "0075b72d-6648-11f0-a7cf-0274f77d4a81",
"firstName": "Jesam",
"lastName": "ofem",
"middleName": "Ofem",
"dob": "1964-08-04T00:00:00",
"customerTypeId": "f671da57-e281-4b40-965f-a96f4205405e",
"customerTierId": 2,
"alias": null,
"countryId": "c15ad9ae-c4d7-4342-b70f-de5508627e3b",
"city": "Mushin area",
"address": "4 ogunsanya",
"mobileNumber": "08062190561",
"emailAddress": "godok84@yop.com",
"dateCreated": null,
"isCorporateVerified": ""
},
"status": 200,
"message": ""
}
⌘I