/v1/declining-balance
Declining-balance depreciation
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/depreciation-api/v1/declining-balance" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/depreciation-api/v1/declining-balance", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/depreciation-api/v1/declining-balance");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/depreciation-api/v1/declining-balance",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Declining-balance: each year depreciates book × (factor/life); factor 2 is double-declining. Capped so book value never drops below salvage.",
"inputs": {
"cost": 10000,
"life": 5,
"factor": 2,
"salvage": 1000
},
"method": "declining-balance",
"schedule": [
{
"year": 1,
"book_value": 6000,
"accumulated": 4000,
"depreciation": 4000
},
{
"year": 2,
"book_value": 3600,
"accumulated": 6400,
"depreciation": 2400
},
{
"year": 3,
"book_value": 2160,
"accumulated": 7840,
"depreciation": 1440
},
{
"year": 4,
"book_value": 1296,
"accumulated": 8704,
"depreciation": 864
},
{
"year": 5,
"book_value": 1000,
"accumulated": 9000,
"depreciation": 296
}
],
"depreciation_rate": 0.4,
"total_depreciation": 9000
},
"meta": {
"timestamp": "2026-06-04T18:38:16.197Z",
"request_id": "cf1fcfaa-0c96-42fc-84bf-b43de8720352"
},
"status": "ok",
"message": "Declining-balance",
"success": true
}