List clients
curl --request GET \
--url https://api.leanpay.fr/v1/public/clients \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/clients"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.leanpay.fr/v1/public/clients', 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.leanpay.fr/v1/public/clients",
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.leanpay.fr/v1/public/clients"
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.leanpay.fr/v1/public/clients")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/clients")
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{
"data": [
{
"id": "9bfc607e-4e58-4f4e-a93b-cd934958933f",
"tenantId": "344ca963-6bf0-4bbb-b00f-3e377e5dc358",
"externalId": "CLI-0042",
"name": "Acme",
"createdAt": "2026-03-12T09:41:27.000Z",
"updatedAt": "2026-10-06T08:00:12.000Z"
}
],
"count": 1,
"total": 1,
"page": 1,
"pageCount": 1
}clients
List clients
List the clients.
GET
/
clients
List clients
curl --request GET \
--url https://api.leanpay.fr/v1/public/clients \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/clients"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.leanpay.fr/v1/public/clients', 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.leanpay.fr/v1/public/clients",
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.leanpay.fr/v1/public/clients"
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.leanpay.fr/v1/public/clients")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/clients")
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{
"data": [
{
"id": "9bfc607e-4e58-4f4e-a93b-cd934958933f",
"tenantId": "344ca963-6bf0-4bbb-b00f-3e377e5dc358",
"externalId": "CLI-0042",
"name": "Acme",
"createdAt": "2026-03-12T09:41:27.000Z",
"updatedAt": "2026-10-06T08:00:12.000Z"
}
],
"count": 1,
"total": 1,
"page": 1,
"pageCount": 1
}Query Parameters
JSON filter, as described in the Filtering section.
| Field | Type | Operators |
|---|---|---|
id | uuid | $eq $ne $in $notin |
externalId | string | $eq $cont $starts $ends $in |
name | string | $eq $cont $starts $ends $in |
createdAt | date-time | $gt $gte $lt $lte $between |
updatedAt | date-time | $gt $gte $lt $lte $between |
- Updated since June 1:
{"updatedAt":{"$gte":"2026-06-01"}} - One client by its external id:
{"externalId":"CLI-0042"} - Names that start with Acme:
{"name":{"$starts":"Acme"}}
Example:
"{\"updatedAt\":{\"$gte\":\"2026-06-01\"}}"
Response
200 - application/json
One page of clients.
