> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.shimi.cash/api-reference/shimi-api/customers/fetch-single-customer/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.shimi.cash/_mcp/server. # Fetch Single Customer GET https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/{customer} Fetch one customer that belongs to your company by their customer ID. **Path parameter:** `customer` (string, required) - the customer ID, **or** the customer's email address. Any value containing `@` is treated as an email. **Behaviour notes** - `bankAccount` is `null` until **Generate Customer Account** succeeds. - `bankAccount.balance` is in Naira (float). - An unknown customer does **not** return 404: you get `200` with `"data": null`. - BVN is never returned. Reference: https://docs.shimi.cash/api-reference/shimi-api/customers/fetch-single-customer ## Authentication - `Authorization` header (bearer token, required) — Access token from Generate Access Token (valid 15 minutes). ## Request ### Path parameters - `customer` (string, required) — The customer ID returned by Create Customer. ## Response ### 200 Success / Success (no account generated yet) / Customer not found - `status` (string, optional) - `data` (CustomerCustomerGetResponsesContentApplicationJsonSchemaData, optional, nullable) ## Errors ### 401 Unauthorized Error Unauthorized - `message` (string, optional) ### 403 Forbidden Error Invalid or expired access token / KYB not approved / Account deactivated - `message` (string, optional) - `code` (string, optional) - `kybStatus` (string, optional) ## Types ### CustomerCustomerGetResponsesContentApplicationJsonSchemaData - `id` (string, optional) - `firstName` (string, optional) - `lastName` (string, optional) - `email` (string, optional) - `dob` (string, optional) - `otherName` (string, optional, nullable) - `gender` (string, optional, nullable) - `mobileNo` (string, optional) - `bankAccount` (CustomerCustomerGetResponsesContentApplicationJsonSchemaDataBankAccount, optional, nullable) ### CustomerCustomerGetResponsesContentApplicationJsonSchemaDataBankAccount - `balance` (integer, optional) - `accountNumber` (string, optional) - `accountName` (string, optional) - `status` (string, optional) - `bank` (CustomerCustomerGetResponsesContentApplicationJsonSchemaDataBankAccountBank, optional) ### CustomerCustomerGetResponsesContentApplicationJsonSchemaDataBankAccountBank - `name` (string, optional) - `code` (string, optional) ## Examples ### 200 Success **Response** ```json { "status": "success", "data": { "id": "cmg8x2k4p0001qz7h3n9d5v2a", "firstName": "Chiamaka", "lastName": "Okonkwo", "email": "chiamaka.okonkwo@example.com", "dob": "1992-03-14", "otherName": null, "gender": null, "mobileNo": "+2348031234567", "bankAccount": { "balance": 125000, "accountNumber": "8012345671", "accountName": "SHIMI / CHIAMAKA OKONKWO", "status": "ACTIVE", "bank": { "name": "SAFE HAVEN MICROFINANCE BANK", "code": "090286" } } } } ``` **SDK Code** ```python 200 Success import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 Success const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 Success package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 Success require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 Success import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Success request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Success using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Success import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### 200 Success (no account generated yet) **Response** ```json { "status": "success", "data": { "id": "cmg8x2k4p0001qz7h3n9d5v2a", "firstName": "Chiamaka", "lastName": "Okonkwo", "email": "chiamaka.okonkwo@example.com", "dob": "1992-03-14", "otherName": null, "gender": null, "mobileNo": "+2348031234567", "bankAccount": null } } ``` **SDK Code** ```python 200 Success (no account generated yet) import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 Success (no account generated yet) const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 Success (no account generated yet) package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 Success (no account generated yet) require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 Success (no account generated yet) import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Success (no account generated yet) request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Success (no account generated yet) using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Success (no account generated yet) import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### 200 Customer not found **Response** ```json { "status": "success", "data": null } ``` **SDK Code** ```python 200 Customer not found import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 Customer not found const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 Customer not found package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 Customer not found require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 Customer not found import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Customer not found request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Customer not found using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Customer not found import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/customer/customer")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```