Générer un rapport
curl --request POST \
--url https://apidjonanko.tech/web-merchant/reports/generate \
--header 'Content-Type: application/json' \
--header 'authenticationtoken: <api-key>' \
--data '
{
"merchant_reference": "beautyshop",
"period": "2026-08"
}
'const options = {
method: 'POST',
headers: {authenticationtoken: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({merchant_reference: 'beautyshop', period: '2026-08'})
};
fetch('https://apidjonanko.tech/web-merchant/reports/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apidjonanko.tech/web-merchant/reports/generate"
payload = {
"merchant_reference": "beautyshop",
"period": "2026-08"
}
headers = {
"authenticationtoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apidjonanko.tech/web-merchant/reports/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'merchant_reference' => 'beautyshop',
'period' => '2026-08'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authenticationtoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"period": "2026-08",
"periodLabel": "Août 2026",
"periodStart": "2023-11-07T05:31:56Z",
"periodEnd": "2023-11-07T05:31:56Z",
"status": "PENDING",
"filename": "rapport-beautyshop-2026-08.pdf",
"fileUrl": "<string>",
"fileSize": 123,
"summary": {},
"error": "<string>",
"generatedAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 400,
"message": "Le rapport d'un mois n'est disponible qu'une fois le mois terminé",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid API credentials",
"error": "Unauthorized"
}Rapports mensuels
Générer un rapport
Génère (ou regénère) le rapport d’un mois écoulé. Le mois en cours n’est pas disponible.
POST
/
web-merchant
/
reports
/
generate
Générer un rapport
curl --request POST \
--url https://apidjonanko.tech/web-merchant/reports/generate \
--header 'Content-Type: application/json' \
--header 'authenticationtoken: <api-key>' \
--data '
{
"merchant_reference": "beautyshop",
"period": "2026-08"
}
'const options = {
method: 'POST',
headers: {authenticationtoken: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({merchant_reference: 'beautyshop', period: '2026-08'})
};
fetch('https://apidjonanko.tech/web-merchant/reports/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apidjonanko.tech/web-merchant/reports/generate"
payload = {
"merchant_reference": "beautyshop",
"period": "2026-08"
}
headers = {
"authenticationtoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apidjonanko.tech/web-merchant/reports/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'merchant_reference' => 'beautyshop',
'period' => '2026-08'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authenticationtoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"period": "2026-08",
"periodLabel": "Août 2026",
"periodStart": "2023-11-07T05:31:56Z",
"periodEnd": "2023-11-07T05:31:56Z",
"status": "PENDING",
"filename": "rapport-beautyshop-2026-08.pdf",
"fileUrl": "<string>",
"fileSize": 123,
"summary": {},
"error": "<string>",
"generatedAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 400,
"message": "Le rapport d'un mois n'est disponible qu'une fois le mois terminé",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid API credentials",
"error": "Unauthorized"
}Authorizations
JWT obtenu via POST /user/login-merchant. À passer tel quel, sans préfixe Bearer.
Body
application/json
Response
Rapport généré.
Mois couvert, au format YYYY-MM.
Example:
"2026-08"
Example:
"Août 2026"
Available options:
PENDING, READY, FAILED Example:
"rapport-beautyshop-2026-08.pdf"
Chiffres clés du mois (montant total, nombre de paiements, répartition par opérateur…).
