merchant: fetch by customer_id
curl --request GET \
--url https://api-staging.stablestack.com/api/customers/{customerId} \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api-staging.stablestack.com/api/customers/{customerId}"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api-staging.stablestack.com/api/customers/{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://api-staging.stablestack.com/api/customers/{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: <x-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://api-staging.stablestack.com/api/customers/{customerId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-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://api-staging.stablestack.com/api/customers/{customerId}")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.stablestack.com/api/customers/{customerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"id": "85b148ab-3f6b-4d55-917f-3c8de668a48e",
"customer_type": "business",
"email": "contact@akande.com",
"phone": "+2348098765432",
"created_at": "2025-05-01T13:47:10.689Z",
"updated_at": "2025-05-09T14:57:30.534Z",
"status": "active",
"address": {
"line_1": "789 Business Avenue",
"line_2": "Suite 500",
"city": "Lagos",
"state": "Lagos",
"postal_code": "100001",
"country": "Nigeria"
},
"personal_info": {
"first_name": null,
"middle_name": null,
"last_name": null,
"birth_date": null
},
"financial_info": {
"account_purpose": "business operations",
"employment_status": null,
"expected_monthly_income": "5000000.00",
"most_recent_occupation": null,
"source_of_funds": "business revenue"
},
"business_info": {
"business_name": "Acme Inc.",
"business_type": "Technology Solutions",
"business_website": "https://acme.example.com"
}
}
}Customers
Get Customer
API reference for retrieving a specific customer
GET
/
customers
/
{customerId}
merchant: fetch by customer_id
curl --request GET \
--url https://api-staging.stablestack.com/api/customers/{customerId} \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api-staging.stablestack.com/api/customers/{customerId}"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api-staging.stablestack.com/api/customers/{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://api-staging.stablestack.com/api/customers/{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: <x-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://api-staging.stablestack.com/api/customers/{customerId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-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://api-staging.stablestack.com/api/customers/{customerId}")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.stablestack.com/api/customers/{customerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"id": "85b148ab-3f6b-4d55-917f-3c8de668a48e",
"customer_type": "business",
"email": "contact@akande.com",
"phone": "+2348098765432",
"created_at": "2025-05-01T13:47:10.689Z",
"updated_at": "2025-05-09T14:57:30.534Z",
"status": "active",
"address": {
"line_1": "789 Business Avenue",
"line_2": "Suite 500",
"city": "Lagos",
"state": "Lagos",
"postal_code": "100001",
"country": "Nigeria"
},
"personal_info": {
"first_name": null,
"middle_name": null,
"last_name": null,
"birth_date": null
},
"financial_info": {
"account_purpose": "business operations",
"employment_status": null,
"expected_monthly_income": "5000000.00",
"most_recent_occupation": null,
"source_of_funds": "business revenue"
},
"business_info": {
"business_name": "Acme Inc.",
"business_type": "Technology Solutions",
"business_website": "https://acme.example.com"
}
}
}