oneapi
Sign in
Business v1 / Firme

Change history

The history of the company's changes (names, statuses and so on) — the field changed with its old and new value, most recent first. Paginated.

GET
https://oneapi.ro/api/business/v1/firme/{cui}/istoric

Path parameters

NameTypeDescriptionExample
cuirequired string The company tax identification number, without the RO prefix (e.g. 6719278).

Query parameters

This route accepts no query parameters.

How it behaves

  • The history of the company's changes in the registry (field, old value, new value, date), paginated. Useful for tracking changes of name, headquarters, legal form.

What it is for

  • Finding the name the company had on the date of an old document.
  • Detecting changes of headquarters or legal form across a portfolio.
  • Feeding an audit trail with a partner's official changes.

Response structure

FieldTypeDescription
data[].camp string The field that changed.
data[].valoare_veche string | null The value before the change.
data[].valoare_noua string | null The value after the change.
data[].snapshot_vechi string | null The date of the snapshot before the change.
data[].snapshot_nou string | null The date of the snapshot after the change.
meta.paginare.pagina integer Pagina curentă.
meta.paginare.per_pagina integer Rezultate pe pagină.
meta.paginare.total integer Total rezultate.
meta.paginare.pagini integer Număr de pagini.

Response examples

GEThttps://oneapi.ro/api/business/v1/firme/6719278/istoric
{
    "data": [
        {
            "camp": "sediu",
            "valoare_veche": "Bucureşti Sectorul 6, B-dul Timişoara, Nr. 26, Etaj 2",
            "valoare_noua": "Bucureşti Sectorul 6, B-dul Timişoara, Nr. 26, Etaj 2, Cod poștal 61331",
            "snapshot_vechi": "2020-08-01",
            "snapshot_nou": "2020-12-08"
        }
    ],
    "meta": {
        "paginare": {
            "pagina": 1,
            "per_pagina": 20,
            "total": 1,
            "pagini": 1
        }
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
404negasitThe company with tax ID [{cui}] was not found.
422validareThe route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored.
429cota_depasitaThe plan's monthly quota has been exceeded (see Retry-After).

All errors share the same shape. eroare.cod is stable and is the value you should branch on in code — not the text in mesaj, which may change.

{
    "eroare": {
        "cod": "validare",
        "mesaj": "The route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored.",
        "detalii": {
            "cui": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}