Skip to content
GET /v1/declining-balance

Declining-balance depreciation

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/depreciation-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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_..."}
)

Example response

A real response from this endpoint, captured by the latest 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
}