List reminders to do
curl --request GET \
--url https://api.leanpay.fr/v1/public/reminders/todo \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/reminders/todo"
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/reminders/todo', 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/reminders/todo",
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/reminders/todo"
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/reminders/todo")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/reminders/todo")
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": "c76d65d7-766a-49d0-92ed-bb5db2c4fee8",
"tenantId": "510b7326-6200-4bb4-8a5c-9d3f1aa7849a",
"recipient": {
"type": "group",
"id": "0ed8b2e1-2b70-44c9-a56b-8362730cde79",
"name": "Acme Group",
"externalId": null
},
"documentTag": null,
"scheduleDate": "2026-10-15T00:00:00.000Z",
"channel": "phone_call",
"level": "4",
"amount": 342000,
"currency": "EUR",
"auto": false
}
],
"count": 1,
"total": 1,
"page": 1,
"pageCount": 1
}reminders
List reminders to do
List the next reminders to do for the clients and client groups, overdue ones included.
Not included
- The content of a reminder: email body, letter.
See also
GET /reminders/doneto list the reminders already done.GET /client-groupsto list the client groups that receive reminders.
GET
/
reminders
/
todo
List reminders to do
curl --request GET \
--url https://api.leanpay.fr/v1/public/reminders/todo \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/reminders/todo"
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/reminders/todo', 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/reminders/todo",
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/reminders/todo"
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/reminders/todo")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/reminders/todo")
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": "c76d65d7-766a-49d0-92ed-bb5db2c4fee8",
"tenantId": "510b7326-6200-4bb4-8a5c-9d3f1aa7849a",
"recipient": {
"type": "group",
"id": "0ed8b2e1-2b70-44c9-a56b-8362730cde79",
"name": "Acme Group",
"externalId": null
},
"documentTag": null,
"scheduleDate": "2026-10-15T00:00:00.000Z",
"channel": "phone_call",
"level": "4",
"amount": 342000,
"currency": "EUR",
"auto": false
}
],
"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 |
recipientId | uuid | $eq $ne $in $notin |
recipientType | enum: client · group | $eq $ne $in $notin |
channel | enum: email · mail · registered_mail · phone_call · sms · internal_action | $eq $ne $in $notin |
level | enum: notification · 1 · 2 · 3 · 4 · 5 · 6+ | $eq $ne $in $notin $isnull $notnull |
auto | boolean | $eq $ne |
scheduleDate | date-time | $gt $gte $lt $lte $between |
- Manual reminders due by June 30:
{"scheduleDate":{"$lte":"2026-06-30"},"auto":false} - Reminders to client groups:
{"recipientType":"group"} - Emails and SMS of one client:
{"recipientId":"03142370-15e5-468f-9224-d490d13432b8","channel":{"$in":["email","sms"]}}
Example:
"{\"scheduleDate\":{\"$lte\":\"2026-06-30\"},\"auto\":false}"
Response
200 - application/json
One page of reminders to do.
