Endpoint
- Route: POST /api/calculator
- Authentication: none (public access)
- Content-Type: application/json
Use this endpoint to run zakat calculations from your own systems. All amounts are currently expressed in Moroccan Dirham (MAD).
{
"salary": 12000,
"expenses": 6500,
"nisab": 50000
}{
"ok": true,
"data": {
"currency": "MAD",
"inputs": { "salary": 12000, "expenses": 6500, "nisab": 50000 },
"result": {
"monthlySaving": 5500,
"annualSaving": 66000,
"zakatAmount": 1650,
"status": "eligible"
}
},
"meta": {
"rateLimit": { "limit": 5, "remaining": 4, "windowMs": 60000 }
}
}