Skip to main content
GET
/
customers
/
{customerId}
Get customer by ID
curl --request GET \
  --url https://provider.api.nadles.com/v0/customers/{customerId} \
  --header 'nadles-provider-key: <api-key>'
import requests

url = "https://provider.api.nadles.com/v0/customers/{customerId}"

headers = {"nadles-provider-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'nadles-provider-key': '<api-key>'}};

fetch('https://provider.api.nadles.com/v0/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://provider.api.nadles.com/v0/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 => [
"nadles-provider-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://provider.api.nadles.com/v0/customers/{customerId}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("nadles-provider-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://provider.api.nadles.com/v0/customers/{customerId}")
.header("nadles-provider-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://provider.api.nadles.com/v0/customers/{customerId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["nadles-provider-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "name": "<string>",
  "email": "<string>",
  "external_id": "<string>",
  "billing_address_line1": "<string>",
  "billing_address_line2": "<string>",
  "billing_address_city": "<string>",
  "billing_address_country_code": "<string>",
  "billing_address_zip_code": "<string>",
  "billing_address_region": "<string>",
  "is_business": true,
  "business_name": "<string>",
  "company_number": "<string>",
  "tax_identifier": "<string>"
}

Authorizations

nadles-provider-key
string
header
required

API key provided in the admin portal

Path Parameters

customerId
string
required

The ID of the customer.

Response

200 - application/json

OK

id
string
name
string | null
email
string | null
external_id
string | null
billing_address_line1
string | null
billing_address_line2
string | null
billing_address_city
string | null
billing_address_country_code
string | null
billing_address_zip_code
string | null
billing_address_region
string | null
is_business
boolean
business_name
string | null
company_number
string | null
tax_identifier
string | null