Get a customer
curl --request GET \
--url https://api.test.doola.com/v1/partner/customers/{customerId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.test.doola.com/v1/partner/customers/{customerId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.test.doola.com/v1/partner/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.test.doola.com/v1/partner/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 => [
"Authorization: <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.test.doola.com/v1/partner/customers/{customerId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.test.doola.com/v1/partner/customers/{customerId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.test.doola.com/v1/partner/customers/{customerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"doolaCustomerId": "<string>",
"email": "founder@example.com",
"firstName": "Ada",
"lastName": "Lovelace",
"countryOfResidence": "USA",
"phoneNumber": "+12125550100",
"source": "MCP",
"created": true,
"companies": [
{
"doolaCompanyId": "<string>",
"name": "Acme Labs LLC",
"entityType": "LLC",
"state": "DE"
}
]
}Customers
Get a customer
Returns a single customer by doola customer ID, including the companies that customer owns.
GET
/
v1
/
partner
/
customers
/
{customerId}
Get a customer
curl --request GET \
--url https://api.test.doola.com/v1/partner/customers/{customerId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.test.doola.com/v1/partner/customers/{customerId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.test.doola.com/v1/partner/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.test.doola.com/v1/partner/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 => [
"Authorization: <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.test.doola.com/v1/partner/customers/{customerId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.test.doola.com/v1/partner/customers/{customerId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.test.doola.com/v1/partner/customers/{customerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"doolaCustomerId": "<string>",
"email": "founder@example.com",
"firstName": "Ada",
"lastName": "Lovelace",
"countryOfResidence": "USA",
"phoneNumber": "+12125550100",
"source": "MCP",
"created": true,
"companies": [
{
"doolaCompanyId": "<string>",
"name": "Acme Labs LLC",
"entityType": "LLC",
"state": "DE"
}
]
}Authorizations
Partner API key. Send the raw key as the Authorization header value — e.g. dk_test_… in sandbox or dk_live_… in production. Generate and rotate keys in the doola Partner Portal.
Path Parameters
doola customer ID (KSUID).
Response
200 - */*
OK
A partner customer.
doola customer ID (KSUID).
Customer email address.
Example:
"founder@example.com"
Example:
"Ada"
Example:
"Lovelace"
ISO 3166-1 alpha-3 country of residence (e.g. USA).
Example:
"USA"
Example:
"+12125550100"
How the customer was created.
Available options:
MCP, PARTNER_API, WHOP_APP, DOOLA_DASHBOARDS True if this request created the customer; false if it already existed.
Companies owned by this customer. Returned only on the get endpoint.
Show child attributes
Show child attributes