Business v1 / Firme
Invoice skeleton
The company's details pre-filled in the shape e-Factura expects: name, tax ID, registration number, address, VAT standing. It goes straight into building an invoice.
GET
https://oneapi.ro/api/business/v1/firme/{cui}/factura-schelet
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
- Returns the company's data shaped for an invoice header (supplier or client): name, tax ID, headquarters, VAT. It pairs naturally with the e-Invoicing module, which builds the CIUS-RO XML.
What it is for
- Pre-filling an invoice header with the partner's official data.
- Feeding the e-Invoicing module directly, which expects exactly this shape.
- Cutting typing errors when billing data is entered by hand.
Response structure
All fields below live inside data.
FieldTypeDescription
cui
integer
The tax ID.
denumire
string
The name.
nr_reg_com
string
The trade register order number.
platitor_tva
boolean
VAT-registered as of the last sync.
adresa.judet
string
The county.
adresa.localitate
string
The locality.
adresa.strada
string
The street.
adresa.numar
string
The street number.
adresa.cod_postal
string
The postal code.
Response examples
GEThttps://oneapi.ro/api/business/v1/firme/6719278/factura-schelet
{
"data": {
"cui": 6719278,
"denumire": "MEGA IMAGE SRL",
"nr_reg_com": "J1994027872407",
"platitor_tva": true,
"adresa": {
"judet": "Bucureşti",
"localitate": "Bucureşti Sectorul 6",
"strada": "Timişoara",
"numar": "26",
"cod_postal": "61331"
}
}
}
GEThttps://oneapi.ro/api/business/v1/firme/14399840/factura-schelet
{
"data": {
"cui": 14399840,
"denumire": "DANTE INTERNATIONAL SA",
"nr_reg_com": "J2002000372404",
"platitor_tva": true,
"adresa": {
"judet": "Bucureşti",
"localitate": "Bucureşti Sectorul 6",
"strada": "Şos. VIRTUŢII",
"numar": "148",
"cod_postal": "60787"
}
}
}
GEThttps://oneapi.ro/api/business/v1/firme/2054341/factura-schelet
{
"data": {
"cui": 2054341,
"denumire": "SMIRODAVA S.A.",
"nr_reg_com": "J27/24/1991",
"platitor_tva": true,
"adresa": {
"judet": "Neamţ",
"localitate": "Municipiul Roman",
"strada": "B-dul REPUBLICII",
"numar": "123-125",
"cod_postal": "5550"
}
}
}
GEThttps://oneapi.ro/api/business/v1/firme/24890577/factura-schelet
{
"data": {
"cui": 24890577,
"denumire": "UNIVERS-ALL DISTRIBUTION SRL",
"nr_reg_com": "J19/1161/2008",
"platitor_tva": true,
"adresa": {
"judet": "Harghita",
"localitate": "Municipiul Gheorgheni",
"strada": "POMPIERILOR",
"numar": "118",
"cod_postal": "535500"
}
}
}
Error codes
| Code | Slug | When it occurs |
|---|---|---|
| 401 | neautentificat | Token missing, invalid, expired or revoked. |
| 403 | feature_indisponibil | The current plan does not include the feature the route depends on. |
| 404 | negasit | Company [{cui}] not found. |
| 422 | validare | The route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored. |
| 429 | cota_depasita | The 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."
]
}
}
}