Μετάβαση στο περιεχόμενο
GET /v1/depreciation

Depreciation schedule

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/financecalc-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/financecalc-api/v1/depreciation" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/financecalc-api/v1/depreciation", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/financecalc-api/v1/depreciation");
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/financecalc-api/v1/depreciation",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "cost": 10000,
        "life": 5,
        "method": "straight_line",
        "salvage": 1000,
        "schedule": [
            {
                "year": 1,
                "book_value": 8200,
                "accumulated": 1800,
                "depreciation": 1800
            },
            {
                "year": 2,
                "book_value": 6400,
                "accumulated": 3600,
                "depreciation": 1800
            },
            {
                "year": 3,
                "book_value": 4600,
                "accumulated": 5400,
                "depreciation": 1800
            },
            {
                "year": 4,
                "book_value": 2800,
                "accumulated": 7200,
                "depreciation": 1800
            },
            {
                "year": 5,
                "book_value": 1000,
                "accumulated": 9000,
                "depreciation": 1800
            }
        ],
        "total_depreciation": 9000
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:08.222Z",
        "request_id": "62327f2d-b582-4dc2-8603-f41f0e84360a"
    },
    "status": "ok",
    "message": "Depreciation",
    "success": true
}