curl --request GET \
--url https://api.leanpay.fr/v1/public/links \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/links"
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/links', 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/links",
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/links"
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/links")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/links")
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": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creditNoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"date": "2023-12-25",
"externalId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"count": 123,
"total": 123,
"page": 123,
"pageCount": 123
}List links
curl --request GET \
--url https://api.leanpay.fr/v1/public/links \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/links"
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/links', 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/links",
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/links"
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/links")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/links")
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": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creditNoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"date": "2023-12-25",
"externalId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"count": 123,
"total": 123,
"page": 123,
"pageCount": 123
}Authorizations
Query Parameters
Filter links with a JSON-encoded condition passed as a string in the URL — ?s={"field":{"$operator":value}} — and combine conditions with $and / $or.
Operators — $eq equals · $ne not equals · $gt $gte $lt $lte range · $between [min, max] · $cont $starts $ends text match · $in $notin value list · $isnull $notnull null check. Append L for case-insensitive text match ($contL, $startsL, …). Shorthand: {"field": value} is the same as {"field": {"$eq": value}}. Dates accept YYYY-MM-DD or full ISO 8601 (2026-06-01T00:00:00.000Z); filtering an unlisted field returns 400.
Filterable fields
| Field | Type | Common operators |
|---|---|---|
id | uuid | $eq $in |
invoiceId | uuid | $eq $in |
creditNoteId | uuid | $eq $in |
externalId | string | $eq $cont $starts $ends $in |
currencyAmount | number | $eq $gt $gte $lt $lte $between |
date | date | $gt $gte $lt $lte $between |
createdAt | date | $gt $gte $lt $lte $between |
updatedAt | date | $gt $gte $lt $lte $between |
currencyAmount is exposed as amount in responses — filter on currencyAmount.
Examples
{ "invoiceId": { "$eq": "00000000-0000-0000-0000-000000000000" } }
{ "creditNoteId": { "$eq": "00000000-0000-0000-0000-000000000000" } }
{ "updatedAt": { "$gte": "2026-06-01T00:00:00.000Z" } }
"{\"invoiceId\":{\"$eq\":\"00000000-0000-0000-0000-000000000000\"}}"
The page number to retrieve starting at 1
Sort the results as field,DIRECTION, where DIRECTION is ASC or DESC — ?sort=updatedAt,DESC. Repeat the parameter to sort by several fields, applied in order. When omitted, results are sorted by updatedAt,DESC. Sorting on an unlisted field returns 400.
Sortable fields
id · createdAt · updatedAt
"updatedAt,DESC"
