API REST

Une API déterministe pour la fiscalité

Intégrez PCGM, TVA, IS, IR dans vos applications. JSON Schema stricts, réponses déterministes, SLA entreprise.

< 200ms
Latence moyenne
99.99%
Uptime
100%
Conformité DGI

Endpoints

5 endpoints REST

POST/v1/tva/calculerCalculer la TVA (taux 7, 10, 14 ou 20)
curl -X POST https://api.fiscalys.ma/v1/tva/calculer \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"montant_ht": 10000, "taux": 20}'
POST/v1/is/estimerEstimer l'IS et la cotisation minimale
curl -X POST https://api.fiscalys.ma/v1/is/estimer \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"produits": 500000, "charges": 320000}'
POST/v1/ir/calculerCalculer l'IR (auto-entrepreneur ou indépendant)
curl -X POST https://api.fiscalys.ma/v1/ir/calculer \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"revenu": 240000, "type": "auto-entrepreneur", "activite": "services"}'
GET/v1/cgnc/comptesLister le plan comptable CGNC (classe 1 à 9)
curl -X GET "https://api.fiscalys.ma/v1/cgnc/comptes?classe=3" \
  -H "Authorization: Bearer $API_KEY"
GET/v1/cgnc/comptes/{code}Récupérer un compte CGNC par son code
curl -X GET https://api.fiscalys.ma/v1/cgnc/comptes/3421 \
  -H "Authorization: Bearer $API_KEY"

Standards

Fiscalité marocaine native

CGNCXML DGITVA 20/14/10/7%IS 20-35%IR ProgressifICETPIGREDISIMPL-ISLiasse FiscaleCotisation Minimale

L'accès à l'API est accordé sur approbation. Déposez une demande (motif, usage prévu, contact) depuis l'espace développeurs : la clé vous est transmise une fois la demande approuvée.

Demander un accès API