Lister les documents d'un dossier
curl --request GET \
--url https://api.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/', 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.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/",
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: Bearer <token>"
],
]);
$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.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": "1a2b3c4d-5e6f-4708-9a0b-1c2d3e4f5a6b",
"merchant_kyc": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
"document_type": "ID_CARD",
"label": "Recto CNI",
"file_url": "https://cdn.saspay.me/kyc/8f2c1e9a-6b4d-4a3f-9c1e-2b3d4e5f6a7b.jpg",
"created_at": "2026-08-10T09:05:00Z"
},
{
"id": "2b3c4d5e-6f70-4819-8a0b-2c3d4e5f6a7b",
"merchant_kyc": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
"document_type": "BUSINESS_REGISTRATION",
"label": "",
"file_url": "https://cdn.saspay.me/kyc/b7a6f5e4d3b2-e1c9-f3a4-d4b6-a9e1c2f8.pdf",
"created_at": "2026-08-10T09:07:00Z"
}
]
}KYC
Lister les documents d'un dossier
Toutes les pièces déjà attachées à un dossier KYC
GET
/
merchant-kyc
/
{kyc_id}
/
documents
/
Lister les documents d'un dossier
curl --request GET \
--url https://api.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/', 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.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/",
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: Bearer <token>"
],
]);
$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.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saspay.me/api/v1/merchant-kyc/{kyc_id}/documents/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": "1a2b3c4d-5e6f-4708-9a0b-1c2d3e4f5a6b",
"merchant_kyc": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
"document_type": "ID_CARD",
"label": "Recto CNI",
"file_url": "https://cdn.saspay.me/kyc/8f2c1e9a-6b4d-4a3f-9c1e-2b3d4e5f6a7b.jpg",
"created_at": "2026-08-10T09:05:00Z"
},
{
"id": "2b3c4d5e-6f70-4819-8a0b-2c3d4e5f6a7b",
"merchant_kyc": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
"document_type": "BUSINESS_REGISTRATION",
"label": "",
"file_url": "https://cdn.saspay.me/kyc/b7a6f5e4d3b2-e1c9-f3a4-d4b6-a9e1c2f8.pdf",
"created_at": "2026-08-10T09:07:00Z"
}
]
}Sur un dossier n’appartenant pas à votre marchand, cet endpoint renvoie
200 avec une liste vide plutôt qu’un 404 (contrairement au POST sur ce même chemin, qui lui renvoie bien 404). Ne vous fiez pas à une liste vide pour conclure qu’un dossier n’existe pas.Authorizations
Clé API secrète du marchand — header Authorization: Bearer sk_live_xxx (ou sk_test_xxx en environnement de test).
Path Parameters
Identifiant du dossier KYC
Query Parameters
Taille de page, 100 maximum
Required range:
x <= 100Response
200 - application/json
Liste paginée des documents du dossier
⌘I