---
title: "Restanțe la buget (ANAF, lista datornicilor) — fără credit"
method: GET
path: "/api/v1/company/{cui}/debts"
tags: ["Firme (gratuit)"]
---

# Restanțe la buget (ANAF, lista datornicilor) — fără credit

`GET /api/v1/company/{cui}/debts`

## Request

- Base URL: `https://firmoscop.ro`
- URL: `https://firmoscop.ro/api/v1/company/{cui}/debts`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `fs_session`

Din lista trimestrială ANAF a datornicilor. `hasDebt:false` = nu figurează (fără restanțe raportate peste pragul ANAF).

## Path parameters

- `cui` string, required

## Response `200`

Restanțe (sau hasDebt:false).

- FiscalDebt
  - `cui` string
  - `hasDebt` boolean
  - `category` 'mari' | 'mijlocii' | 'mici'
  - `totalOwed` integer: Principal + accesorii (lei), fără partea contestată.
  - `totalPrincipal` integer
  - `totalAccessory` integer
  - `totalContested` integer
  - `byBudget` object
    - `stat` integer
    - `asigurariSociale` integer
    - `somaj` integer
    - `sanatate` integer
  - `asOf` string, date, nullable

## Other responses

- `401`: Eroare — corp JSON { error, message } în limbaj natural.
- `429`: Eroare — corp JSON { error, message } în limbaj natural.

---

[API](https://skmtc.dev/firmoscop/apis/firmoscop-api.md) · [All operations](https://skmtc.dev/firmoscop/apis/firmoscop-api/llms.txt) · [OpenAPI document](https://skmtc.dev/firmoscop/apis/firmoscop-api/revisions/58c82b29bbfc?raw)
