generate_financial_report
POST  -- Génère le rapport financier d'un bénéficiaire pour un mois donné
| Argument | Description | Type - Taille | Exemple | Obligatoire |
|---|---|---|---|---|
| beneficiary_reference | La référence du bénéficiaire | String - 64 | OUI | |
| file_type | Type du fichier | String | OUI | |
| year | L'année du rapport financier | String - 4 | OUI | |
| month | Le mois du rapport financier | String - 2 | OUI |
Requête
POST /xxxx/generate_financial_report HTTP/1.1
Host: xxx.xxxxxxxx.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json
{
"beneficiary_reference": "xxxxxxxx",
"file_type": "pdf",
"year": "2023",
"month": "07"}
Réponse
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": true,
"file_encoded": "xxxxxxxxxxxxxxxxx"
}
Réponse
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": false,
"code": "EXIST_004",
"message": "beneficiary not exists"
}
{
"result": false,
"error": "xxxxxxxxxxxxxxxxx"
}